Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/backlogs_printable_cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def self.update
'maco-us-templates.xml', 'misc-iso-templates.xml', 'misc-other-templates.xml', 'misc-us-templates.xml', 'pearl-iso-templates.xml',
'uline-us-templates.xml', 'worldlabel-us-templates.xml', 'zweckform-iso-templates.xml'].each {|filename|

uri = URI.parse("http://git.gnome.org/browse/glabels/plain/templates/#{filename}")
uri = URI.parse("https://git.gnome.org/browse/glabels/plain/templates/#{filename}")
labels = nil

if ! ENV['http_proxy'].blank?
Expand All @@ -144,7 +144,7 @@ def self.update
else
user = pass = nil
end
labels = Net::HTTP::Proxy(proxy.host, proxy.port, user, pass).start(uri.host) {|http| http.get(uri.path)}.body
labels = Net::HTTP::Proxy(proxy.host, proxy.port, user, pass).start(uri.host, uri.port, use_ssl: uri.scheme == 'https') {|http| http.get(uri.path)}.body
rescue URI::Error => e
puts "Setup proxy failed: #{e}"
labels = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/install.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace :redmine do
puts "Installing to the #{ENV['RAILS_ENV']} environment."

if ! ['no', 'false'].include?("#{ENV['labels']}".downcase)
print "Fetching card labels from http://git.gnome.org..."
print "Fetching card labels from https://git.gnome.org..."
STDOUT.flush
begin
BacklogsPrintableCards::CardPageLayout.update
Expand Down