gemirro 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,7 @@ module Gemirro
125
125
  end
126
126
 
127
127
  it 'should try to download gems.' do
128
- source = Gemirro::Source.new('test', 'http://rubygems.org')
128
+ source = Gemirro::Source.new('test', 'https://rubygems.org')
129
129
 
130
130
  versions_fetcher = Gemirro::VersionsFetcher.new(source)
131
131
  allow(versions_fetcher).to receive(:fetch).once.and_return(true)
@@ -166,7 +166,7 @@ module Gemirro
166
166
  end
167
167
 
168
168
  it 'should catch exceptions' do
169
- source = Gemirro::Source.new('test', 'http://rubygems.org')
169
+ source = Gemirro::Source.new('test', 'https://rubygems.org')
170
170
 
171
171
  versions_fetcher = Gemirro::VersionsFetcher.new(source)
172
172
  allow(versions_fetcher).to receive(:fetch).once.and_return(true)
data/template/config.rb CHANGED
@@ -32,10 +32,28 @@ Gemirro.configuration.configure do
32
32
  #
33
33
  # fetch_gem false
34
34
 
35
+ # If upstream repository requires authentication
36
+ # upstream_user 'username'
37
+ # upstream_password 'password'
38
+ # upstream_domain 'https://internal.com'
39
+
40
+ # Enforce the the base_auth
41
+ # basic_auth true
42
+
43
+ # Set the proxy server if behind the firewall
44
+ # proxy 'http://proxy.internal.com:80'
45
+
46
+ # Root CA cert location if additional root ca is added
47
+ # This will overwrite verfiy_mode. use PEER as default
48
+ # rootca '/etc/root_ca.crt'
49
+
50
+ # Not verify certificate in case the proxy has self-signed cert
51
+ # verify_mode false
52
+
35
53
  # You must define a source which where gems will be downloaded.
36
54
  # All gem in the block will be downloaded with the update command.
37
55
  # Other gems will be downloaded with the server.
38
- define_source 'rubygems', 'http://rubygems.org' do
56
+ define_source 'rubygems', 'https://rubygems.org' do
39
57
  gem 'rack', '>= 1.0.0'
40
58
  end
41
59
  end