File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed
Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change 77latest_release = current_json . compact . keys . max_by ( &:to_f )
88donor = current_json [ latest_release ]
99
10- # Until irb releases a new version (current 1.15.1)
11- donor [ "variants" ] . delete_if { |v | v . include? ( "bullseye" ) }
12-
1310uri = URI ( "https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.json" )
1411res = Net ::HTTP . get_response ( uri )
1512raise StandardError , "Got status code #{ res . code } : #{ res . body } " unless res . code == "200"
Original file line number Diff line number Diff line change 55json = JSON . parse ( File . read ( "docker-ruby/versions.json" ) )
66latest_release = json . compact . keys . max_by ( &:to_f )
77
8- # Until irb releases a new version (current 1.15.1)
9- json [ latest_release ] [ "variants" ] . delete_if { |v | v . include? ( "bullseye" ) }
10-
118puts json [ latest_release ] [ "variants" ] . to_json
You can’t perform that action at this time.
0 commit comments