Skip to content

Commit

Permalink
use https instead of http for rubygems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
darix committed Nov 10, 2016
1 parent e9601db commit 304e55e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/gem2rpm
Expand Up @@ -111,7 +111,7 @@ gemfile = rest[0]

if fetch
gem_uri = ''
open("http://rubygems.org/api/v1/gems/#{gemfile}.json") do |f|
open("https://rubygems.org/api/v1/gems/#{gemfile}.json") do |f|
gem_uri = f.read.match(/"gem_uri":\s*"(.*?)",/m)[1]
gemfile = URI.parse(gem_uri).path.split('/').last
open(gemfile, 'w') do |gf|
Expand Down
2 changes: 1 addition & 1 deletion templates/opensuse.spec.erb
Expand Up @@ -76,7 +76,7 @@ Url: <%= spec.homepage %>
<% if config[:sourceurl] -%>
Source: <%= config[:sourceurl] %>
<% else -%>
Source: http://rubygems.org/gems/%{mod_full_name}.gem
Source: https://rubygems.org/gems/%{mod_full_name}.gem
<% end -%>
<% if config[:sources]
config[:sources].each_with_index do |src, i| -%>
Expand Down

0 comments on commit 304e55e

Please sign in to comment.