From 1d80c2f6b600c3fd8f0350d814e4e7185a0224bf Mon Sep 17 00:00:00 2001 From: Rushi Shah <2016rshah@gmail.com> Date: Sun, 8 Jan 2023 16:39:28 -0500 Subject: [PATCH 1/4] Updated dependencies to fix how we scrape github's new HTML --- Gemfile | 2 +- Gemfile.lock | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Gemfile b/Gemfile index d9a33ec..78ad5bb 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ source 'http://rubygems.org' ruby "2.6.6" gem 'sinatra' -gem 'githubchart', '>= 3.3.1' +gem 'githubchart', '>= 3.4.0' diff --git a/Gemfile.lock b/Gemfile.lock index 5f0f96a..7f90e37 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 (3.4.0) + githubstats (~> 3.3.0) + matrix (~> 0.4.2) svgplot (~> 1.0.0) - githubstats (3.2.0) + githubstats (3.3.0) basiccache (~> 1.0.0) - nokogiri (~> 1.10.8) - mini_portile2 (2.4.0) - nokogiri (1.10.10) - mini_portile2 (~> 2.4.0) + nokogiri (~> 1.13.10) + matrix (0.4.2) + mini_portile2 (2.8.1) + nokogiri (1.13.10) + mini_portile2 (~> 2.8.0) + racc (~> 1.4) + racc (1.6.2) rack (1.6.4) rack-protection (1.5.3) rack @@ -25,7 +29,7 @@ PLATFORMS ruby DEPENDENCIES - githubchart (>= 3.3.1) + githubchart (>= 3.4.0) sinatra RUBY VERSION From 6c10536bc48ef1f9b827bf8404bf13c6f9102dd3 Mon Sep 17 00:00:00 2001 From: Rushi Shah <2016rshah@gmail.com> Date: Sun, 8 Jan 2023 16:45:54 -0500 Subject: [PATCH 2/4] Reminding myself the commands needed for future reference --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 72aacb2..d23003d 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ 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. + # See also The [github repo](https://github.com/2016rshah/githubchart-api) From 3f35561f8278dbb82f287c889c567258a2e2224e Mon Sep 17 00:00:00 2001 From: Rushi Shah <2016rshah@gmail.com> Date: Wed, 19 Jul 2023 22:53:26 -0800 Subject: [PATCH 3/4] Lot of time reinstalling stuff for new laptop, but it should work now --- .ruby-version | 1 + Gemfile | 7 ++++--- Gemfile.lock | 22 ++++++++++++---------- README.md | 4 +++- 4 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .ruby-version 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 78ad5bb..d724e31 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source 'http://rubygems.org' -ruby "2.6.6" -gem 'sinatra' -gem 'githubchart', '>= 3.4.0' +ruby ">= 2.6.6" +gem 'sinatra', '~> 1.4.6' +gem 'githubchart', '>= 4.0.0' +gem 'webrick' diff --git a/Gemfile.lock b/Gemfile.lock index 7f90e37..88f8585 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,19 +2,19 @@ GEM remote: http://rubygems.org/ specs: basiccache (1.0.0) - githubchart (3.4.0) - githubstats (~> 3.3.0) + githubchart (4.0.0) + githubstats (~> 4.0.1) matrix (~> 0.4.2) svgplot (~> 1.0.0) - githubstats (3.3.0) + githubstats (4.0.1) basiccache (~> 1.0.0) - nokogiri (~> 1.13.10) + nokogiri (~> 1.15.3) matrix (0.4.2) - mini_portile2 (2.8.1) - nokogiri (1.13.10) - mini_portile2 (~> 2.8.0) + mini_portile2 (2.8.4) + nokogiri (1.15.3) + mini_portile2 (~> 2.8.2) racc (~> 1.4) - racc (1.6.2) + racc (1.7.1) rack (1.6.4) rack-protection (1.5.3) rack @@ -24,13 +24,15 @@ GEM tilt (>= 1.3, < 3) svgplot (1.0.0) tilt (2.0.1) + webrick (1.8.1) PLATFORMS ruby DEPENDENCIES - githubchart (>= 3.4.0) - sinatra + githubchart (>= 4.0.0) + sinatra (~> 1.4.6) + webrick RUBY VERSION ruby 2.6.6p146 diff --git a/README.md b/README.md index d23003d..ecb300a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,9 @@ 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 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) From 639b3ff4570126d128c287a53ab79c652f012072 Mon Sep 17 00:00:00 2001 From: Rushi Shah <2016rshah@gmail.com> Date: Wed, 19 Jul 2023 22:57:59 -0800 Subject: [PATCH 4/4] Heroku needed a later version of ruby --- Gemfile | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index d724e31..25fd24c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'http://rubygems.org' -ruby ">= 2.6.6" +ruby ">= 2.7" gem 'sinatra', '~> 1.4.6' gem 'githubchart', '>= 4.0.0' gem 'webrick' diff --git a/Gemfile.lock b/Gemfile.lock index 88f8585..449b903 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -35,7 +35,7 @@ DEPENDENCIES webrick RUBY VERSION - ruby 2.6.6p146 + ruby 3.1.2p20 BUNDLED WITH 1.17.3 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy