vendor/jets-gems/lib/jets/gems/exist.rb in jets-1.2.1 vs vendor/jets-gems/lib/jets/gems/exist.rb in jets-1.3.0
- old
+ new
@@ -23,11 +23,11 @@
exists.values.all? {|v| v } # all_exist
end
# Example url:
- # https://gems.lambdagems.com/gems/2.5.0/byebug/byebug-9.1.0-x86_64-linux.tgz
+ # https://gems2.lambdagems.com/gems/2.5.0/byebug/byebug-9.1.0.zip
def url_exists?(url)
url = URI.parse(url)
req = Net::HTTP.new(url.host, url.port).tap do |http|
http.use_ssl = true
end
@@ -41,16 +41,16 @@
@options[:source_url] || s3_url
end
# gem_name: byebug-9.1.0
# Example url:
- # https://gems.lambdagems.com/gems/2.5.0/byebug/byebug-9.1.0-x86_64-linux.tgz
+ # https://gems2.lambdagems.com/gems/2.5.0/byebug/byebug-9.1.0.zip
def gem_url(gem_name)
folder = gem_name.gsub(/-(\d+\.\d+\.\d+.*)/,'') # folder: byebug
- "#{source_url}/gems/#{Jets::Gems.ruby_version_folder}/#{folder}/#{gem_name}-x86_64-linux.tgz"
+ "#{source_url}/gems/#{Jets::Gems.ruby_folder}/#{folder}/#{gem_name}.zip"
end
- def ruby_version_folder
- Jets::Gems.ruby_version_folder
+ def ruby_folder
+ Jets::Gems.ruby_folder
end
end
end
\ No newline at end of file