diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..ef538c2 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.2 diff --git a/Gemfile b/Gemfile index d9a33ec..25fd24c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source 'http://rubygems.org' -ruby "2.6.6" -gem 'sinatra' -gem 'githubchart', '>= 3.3.1' +ruby ">= 2.7" +gem 'sinatra', '~> 1.4.6' +gem 'githubchart', '>= 4.0.0' +gem 'webrick' diff --git a/Gemfile.lock b/Gemfile.lock index 5f0f96a..449b903 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,15 +2,19 @@ GEM remote: http://rubygems.org/ specs: basiccache (1.0.0) - githubchart (3.3.1) - githubstats (~> 3.2.0) + githubchart (4.0.0) + githubstats (~> 4.0.1) + matrix (~> 0.4.2) svgplot (~> 1.0.0) - githubstats (3.2.0) + githubstats (4.0.1) basiccache (~> 1.0.0) - nokogiri (~> 1.10.8) - mini_portile2 (2.4.0) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) + nokogiri (~> 1.15.3) + matrix (0.4.2) + mini_portile2 (2.8.4) + nokogiri (1.15.3) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + racc (1.7.1) rack (1.6.4) rack-protection (1.5.3) rack @@ -20,16 +24,18 @@ GEM tilt (>= 1.3, < 3) svgplot (1.0.0) tilt (2.0.1) + webrick (1.8.1) PLATFORMS ruby DEPENDENCIES - githubchart (>= 3.3.1) - sinatra + githubchart (>= 4.0.0) + sinatra (~> 1.4.6) + webrick RUBY VERSION - ruby 2.6.6p146 + ruby 3.1.2p20 BUNDLED WITH 1.17.3 diff --git a/README.md b/README.md index 72aacb2..ecb300a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ We also support custom color schemes! You can provide any base color and we will If you see anything that can be improved send in an issue/PR. +To get the code up and running, make sure ruby, etc. is properly installed, then run `bundle install`, then run `ruby app.rb` and visit `localhost:4567` in your browser. + +To deploy, make sure heroku cli is installed, login, add the heroku remote, and run `git push heroku master`. + # See also The [github repo](https://github.com/2016rshah/githubchart-api)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: