rubygems-mirror 1.2.0 → 1.3.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/Manifest.txt +1 -1
- data/Rakefile +2 -15
- data/lib/rubygems/mirror.rb +2 -3
- data/lib/rubygems/mirror/fetcher.rb +8 -1
- data/lib/rubygems/mirror/version.rb +5 -0
- data/pkg/rubygems-mirror-1.2.0/CHANGELOG.rdoc +19 -0
- data/pkg/rubygems-mirror-1.2.0/README.rdoc +77 -0
- metadata +15 -9
- data/.autotest +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be33e5487811a7f54b846275c296e0aab22ef02873f8bde89551dd2dd2c9c858
|
4
|
+
data.tar.gz: e163d357e2fafb3c3cc5a25c188e2014d1a1dd9012173501880753a21dd04843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc7cdcf3afecaef08a6be58f08940d5f530b6a1f14d312d9aed5c5a42c1af11bca0b1eb0d5c5d4277a43af8a7549be8cc054501e5a68055add3e160307715cae
|
7
|
+
data.tar.gz: 982e6ab2d291f6201fe9997281f3017805b2199a5bab8de25b8b2130999f4c2430a3e26a7613d0d1de801536d22853bb6d8f244d1469e93a969edec549ef2059
|
data/Manifest.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
.autotest
|
2
1
|
CHANGELOG.rdoc
|
3
2
|
Manifest.txt
|
4
3
|
README.rdoc
|
@@ -7,6 +6,7 @@ lib/rubygems/mirror.rb
|
|
7
6
|
lib/rubygems/mirror/command.rb
|
8
7
|
lib/rubygems/mirror/fetcher.rb
|
9
8
|
lib/rubygems/mirror/pool.rb
|
9
|
+
lib/rubygems/mirror/version.rb
|
10
10
|
lib/rubygems/mirror/test_setup.rb
|
11
11
|
lib/rubygems_plugin.rb
|
12
12
|
test/test_gem_mirror.rb
|
data/Rakefile
CHANGED
@@ -1,18 +1,5 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
Hoe.spec 'rubygems-mirror' do
|
5
|
-
developer('James Tucker', 'jftucker@gmail.com')
|
6
|
-
license "MIT"
|
7
|
-
|
8
|
-
extra_dev_deps << %w[minitest ~>5.7]
|
9
|
-
extra_deps << %w[net-http-persistent ~>2.9]
|
10
|
-
|
11
|
-
self.extra_rdoc_files = FileList["**/*.rdoc"]
|
12
|
-
self.history_file = "CHANGELOG.rdoc"
|
13
|
-
self.readme_file = "README.rdoc"
|
14
|
-
self.testlib = :minitest
|
15
|
-
end
|
1
|
+
require "bundler"
|
2
|
+
Bundler::GemHelper.install_tasks
|
16
3
|
|
17
4
|
namespace :mirror do
|
18
5
|
desc "Run the Gem::Mirror::Command"
|
data/lib/rubygems/mirror.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'fileutils'
|
3
|
+
require 'rubygems/mirror/version'
|
3
4
|
|
4
5
|
class Gem::Mirror
|
5
6
|
autoload :Fetcher, 'rubygems/mirror/fetcher'
|
6
7
|
autoload :Pool, 'rubygems/mirror/pool'
|
7
8
|
|
8
|
-
VERSION = '1.2.0'
|
9
|
-
|
10
9
|
SPECS_FILES = [ "specs.#{Gem.marshal_version}", "prerelease_specs.#{Gem.marshal_version}", "latest_specs.#{Gem.marshal_version}" ]
|
11
10
|
|
12
11
|
DEFAULT_URI = 'http://production.cf.rubygems.org/'
|
@@ -34,7 +33,7 @@ class Gem::Mirror
|
|
34
33
|
|
35
34
|
specz = to(sfz)
|
36
35
|
@fetcher.fetch(from(sfz), specz)
|
37
|
-
open(to(sf), 'wb') { |f| f << Gem.gunzip(File.read(specz)) }
|
36
|
+
open(to(sf), 'wb') { |f| f << Gem::Util.gunzip(File.read(specz)) }
|
38
37
|
end
|
39
38
|
end
|
40
39
|
|
@@ -6,7 +6,14 @@ class Gem::Mirror::Fetcher
|
|
6
6
|
class Error < StandardError; end
|
7
7
|
|
8
8
|
def initialize(opts = {})
|
9
|
-
@http =
|
9
|
+
@http =
|
10
|
+
if defined?(Net::HTTP::Persistent::DEFAULT_POOL_SIZE)
|
11
|
+
Net::HTTP::Persistent.new(name: self.class.name, proxy: :ENV)
|
12
|
+
else
|
13
|
+
# net-http-persistent < 3.0
|
14
|
+
Net::HTTP::Persistent.new(self.class.name, :ENV)
|
15
|
+
end
|
16
|
+
|
10
17
|
@opts = opts
|
11
18
|
|
12
19
|
# default opts
|
@@ -0,0 +1,19 @@
|
|
1
|
+
=== 1.2.0 / 2018-05-10
|
2
|
+
|
3
|
+
* Add only-latest mode with RUBYGEMS_MIRROR_ONLY_LATEST environment variable.
|
4
|
+
* Check existence of gems whose name starts with dot
|
5
|
+
|
6
|
+
=== 1.1.0 / 2015-07-28
|
7
|
+
|
8
|
+
* Documentation corrections and updates
|
9
|
+
* Fix no longer implicit dependencies with modern rubygems and ruby versions
|
10
|
+
* Concurrency can be specified in configuration file
|
11
|
+
* Support permanent redirects
|
12
|
+
* Fixed support for system gems
|
13
|
+
* Mirroring now includes all specs files and .rz's, and /quick
|
14
|
+
|
15
|
+
=== 1.0.0 / 2011-10-01
|
16
|
+
|
17
|
+
* 1 major enhancement
|
18
|
+
|
19
|
+
* Birthday!
|
@@ -0,0 +1,77 @@
|
|
1
|
+
= rubygems-mirror
|
2
|
+
|
3
|
+
https://github.com/rubygems/rubygems-mirror
|
4
|
+
|
5
|
+
{<img src="https://badge.fury.io/rb/rubygems-mirror.svg" alt="Gem Version" />}[http://badge.fury.io/rb/rubygems-mirror]
|
6
|
+
|
7
|
+
== DESCRIPTION:
|
8
|
+
|
9
|
+
This is an update to the old `gem mirror` command. It uses net/http/persistent
|
10
|
+
and threads to grab the mirror set a little faster than the original.
|
11
|
+
Eventually it will replace `gem mirror` completely. Right now the API is not
|
12
|
+
completely stable (it will change several times before release), however, I
|
13
|
+
will maintain stability in master.
|
14
|
+
|
15
|
+
== FEATURES/PROBLEMS:
|
16
|
+
|
17
|
+
* Fast mirroring
|
18
|
+
* Limited tests - just functional
|
19
|
+
|
20
|
+
== REQUIREMENTS:
|
21
|
+
|
22
|
+
* rubygems
|
23
|
+
* net/http/persistent
|
24
|
+
* hoe
|
25
|
+
|
26
|
+
== USAGE
|
27
|
+
|
28
|
+
* In a file at ~/.gem/.mirrorrc add a config that looks like the following:
|
29
|
+
|
30
|
+
---
|
31
|
+
- from: http://rubygems.org
|
32
|
+
to: /data/rubygems
|
33
|
+
parallelism: 10
|
34
|
+
retries: 3
|
35
|
+
delete: false
|
36
|
+
skiperror: true
|
37
|
+
|
38
|
+
* Either install the gem, then run `gem mirror`, or
|
39
|
+
* Clone then run `rake mirror:update`
|
40
|
+
|
41
|
+
== INSTALL:
|
42
|
+
|
43
|
+
* gem install rubygems-mirror
|
44
|
+
|
45
|
+
== RESOURCES
|
46
|
+
|
47
|
+
* {Website}[https://rubygems.org/]
|
48
|
+
* {Documentation}[https://github.com/rubygems/rubygems-mirror/blob/master/README.rdoc]
|
49
|
+
* {Wiki}[https://wiki.github.com/rubygems/rubygems-mirror/]
|
50
|
+
* {Source Code}[https://github.com/rubygems/rubygems-mirror/]
|
51
|
+
* {Issues}[https://github.com/rubygems/rubygems-mirror/issues]
|
52
|
+
* {Rubyforge}[https://rubyforge.org/projects/rubygems]
|
53
|
+
|
54
|
+
== LICENSE:
|
55
|
+
|
56
|
+
(The MIT License)
|
57
|
+
|
58
|
+
Copyright (c) 2010 James Tucker, The RubyGems Team
|
59
|
+
|
60
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
61
|
+
a copy of this software and associated documentation files (the
|
62
|
+
'Software'), to deal in the Software without restriction, including
|
63
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
64
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
65
|
+
permit persons to whom the Software is furnished to do so, subject to
|
66
|
+
the following conditions:
|
67
|
+
|
68
|
+
The above copyright notice and this permission notice shall be
|
69
|
+
included in all copies or substantial portions of the Software.
|
70
|
+
|
71
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
72
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
73
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
74
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
75
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
76
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
77
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-mirror
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Tucker
|
8
|
+
- Hiroshi SHIBATA
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2018-
|
12
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: net-http-persistent
|
@@ -42,22 +43,22 @@ dependencies:
|
|
42
43
|
name: rdoc
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
46
|
+
- - "<"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '7'
|
45
49
|
- - ">="
|
46
50
|
- !ruby/object:Gem::Version
|
47
51
|
version: '4.0'
|
48
|
-
- - "<"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: '6'
|
51
52
|
type: :development
|
52
53
|
prerelease: false
|
53
54
|
version_requirements: !ruby/object:Gem::Requirement
|
54
55
|
requirements:
|
56
|
+
- - "<"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '7'
|
55
59
|
- - ">="
|
56
60
|
- !ruby/object:Gem::Version
|
57
61
|
version: '4.0'
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '6'
|
61
62
|
- !ruby/object:Gem::Dependency
|
62
63
|
name: hoe
|
63
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,14 +81,16 @@ description: |-
|
|
80
81
|
will maintain stability in master.
|
81
82
|
email:
|
82
83
|
- jftucker@gmail.com
|
84
|
+
- hsbt@ruby-lang.org
|
83
85
|
executables: []
|
84
86
|
extensions: []
|
85
87
|
extra_rdoc_files:
|
86
88
|
- CHANGELOG.rdoc
|
87
89
|
- Manifest.txt
|
88
90
|
- README.rdoc
|
91
|
+
- pkg/rubygems-mirror-1.2.0/CHANGELOG.rdoc
|
92
|
+
- pkg/rubygems-mirror-1.2.0/README.rdoc
|
89
93
|
files:
|
90
|
-
- ".autotest"
|
91
94
|
- CHANGELOG.rdoc
|
92
95
|
- Manifest.txt
|
93
96
|
- README.rdoc
|
@@ -97,7 +100,10 @@ files:
|
|
97
100
|
- lib/rubygems/mirror/fetcher.rb
|
98
101
|
- lib/rubygems/mirror/pool.rb
|
99
102
|
- lib/rubygems/mirror/test_setup.rb
|
103
|
+
- lib/rubygems/mirror/version.rb
|
100
104
|
- lib/rubygems_plugin.rb
|
105
|
+
- pkg/rubygems-mirror-1.2.0/CHANGELOG.rdoc
|
106
|
+
- pkg/rubygems-mirror-1.2.0/README.rdoc
|
101
107
|
- test/test_gem_mirror.rb
|
102
108
|
homepage: https://github.com/rubygems/rubygems-mirror
|
103
109
|
licenses:
|