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.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -7
- data/Gemfile +2 -0
- data/MANIFEST +1 -3
- data/README.md +1 -1
- data/bin/gemirro +1 -0
- data/gemirro.gemspec +15 -13
- data/lib/gemirro/cache.rb +3 -0
- data/lib/gemirro/cli/index.rb +2 -0
- data/lib/gemirro/cli/init.rb +4 -0
- data/lib/gemirro/cli/list.rb +2 -0
- data/lib/gemirro/cli/server.rb +10 -9
- data/lib/gemirro/cli/update.rb +2 -0
- data/lib/gemirro/cli.rb +3 -3
- data/lib/gemirro/configuration.rb +3 -1
- data/lib/gemirro/gem.rb +4 -3
- data/lib/gemirro/gem_version.rb +2 -0
- data/lib/gemirro/gem_version_collection.rb +3 -2
- data/lib/gemirro/gems_fetcher.rb +2 -0
- data/lib/gemirro/http.rb +31 -4
- data/lib/gemirro/indexer.rb +18 -12
- data/lib/gemirro/mirror_directory.rb +2 -0
- data/lib/gemirro/mirror_file.rb +2 -0
- data/lib/gemirro/server.rb +13 -11
- data/lib/gemirro/source.rb +4 -2
- data/lib/gemirro/utils.rb +6 -1
- data/lib/gemirro/version.rb +3 -1
- data/lib/gemirro/versions_fetcher.rb +2 -0
- data/lib/gemirro/versions_file.rb +2 -0
- data/lib/gemirro.rb +3 -3
- data/spec/gemirro/configuration_spec.rb +1 -0
- data/spec/gemirro/gems_fetcher_spec.rb +1 -0
- data/spec/gemirro/server_spec.rb +2 -2
- data/template/config.rb +19 -1
- data/template/public/dist/css/bootstrap.min.css +5 -3
- data/template/public/dist/js/bootstrap.min.js +6 -6
- data/views/layout.erb +12 -4
- metadata +49 -32
- data/.travis.yml +0 -7
- data/template/public/dist/js/jquery.min.js +0 -4
data/spec/gemirro/server_spec.rb
CHANGED
@@ -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', '
|
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', '
|
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', '
|
56
|
+
define_source 'rubygems', 'https://rubygems.org' do
|
39
57
|
gem 'rack', '>= 1.0.0'
|
40
58
|
end
|
41
59
|
end
|