rubygems-mirror 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/rubygems/mirror.rb
CHANGED
@@ -11,7 +11,7 @@ class Gem::Commands::MirrorCommand < Gem::Command
|
|
11
11
|
|
12
12
|
def description # :nodoc:
|
13
13
|
<<-EOF
|
14
|
-
The mirror command uses the ~/.
|
14
|
+
The mirror command uses the ~/.gem/.mirrorrc config file to mirror remote gem
|
15
15
|
repositories to a local path. The config file is a YAML document that looks
|
16
16
|
like this:
|
17
17
|
|
@@ -0,0 +1,70 @@
|
|
1
|
+
= rubygems-mirror
|
2
|
+
|
3
|
+
http://github.com/rubygems/rubygems-mirror
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
This is an update to the old `gem mirror` command. It uses net/http/persistent
|
8
|
+
and threads to grab the mirror set a little faster than the original.
|
9
|
+
Eventually it will replace `gem mirror` completely. Right now the API is not
|
10
|
+
completely stable (it will change several times before release), however, I
|
11
|
+
will maintain stability in master.
|
12
|
+
|
13
|
+
== FEATURES/PROBLEMS:
|
14
|
+
|
15
|
+
* Fast mirroring
|
16
|
+
* Limited tests - just functional
|
17
|
+
|
18
|
+
== REQUIREMENTS:
|
19
|
+
|
20
|
+
* rubygems
|
21
|
+
* net/http/persistent
|
22
|
+
|
23
|
+
== USAGE
|
24
|
+
|
25
|
+
* In a file at ~/.gem/.mirrorrc add a config that looks like the following:
|
26
|
+
|
27
|
+
---
|
28
|
+
- from: http://rubygems.org
|
29
|
+
to: /data/rubygems
|
30
|
+
|
31
|
+
* Either install the gem, then run `gem mirror`, or
|
32
|
+
* Clone then run `rake mirror:update`
|
33
|
+
|
34
|
+
== INSTALL:
|
35
|
+
|
36
|
+
* gem install rubygems-mirror
|
37
|
+
|
38
|
+
== RESOURCES
|
39
|
+
|
40
|
+
* {Website}[http://rubygems.org/]
|
41
|
+
* {Documentation}[http://rubygems.rubyforge.org/rubygems-mirror/README_rdoc.html]
|
42
|
+
* {Wiki}[http://wiki.github.com/rubygems/rubygems-mirror/]
|
43
|
+
* {Source Code}[http://github.com/rubygems/rubygems-mirror/]
|
44
|
+
* {Issues}[http://github.com/rubygems/rubygems-mirror/issues]
|
45
|
+
* {Rubyforge}[http://rubyforge.org/projects/rubygems]
|
46
|
+
|
47
|
+
== LICENSE:
|
48
|
+
|
49
|
+
(The MIT License)
|
50
|
+
|
51
|
+
Copyright (c) 2010 James Tucker, The RubyGems Team
|
52
|
+
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
54
|
+
a copy of this software and associated documentation files (the
|
55
|
+
'Software'), to deal in the Software without restriction, including
|
56
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
57
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
58
|
+
permit persons to whom the Software is furnished to do so, subject to
|
59
|
+
the following conditions:
|
60
|
+
|
61
|
+
The above copyright notice and this permission notice shall be
|
62
|
+
included in all copies or substantial portions of the Software.
|
63
|
+
|
64
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
65
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
66
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
67
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
68
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
69
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
70
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-mirror
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Tucker
|
@@ -127,6 +127,8 @@ extra_rdoc_files:
|
|
127
127
|
- Manifest.txt
|
128
128
|
- CHANGELOG.rdoc
|
129
129
|
- pkg/rubygems-mirror-1.0.0/CHANGELOG.rdoc
|
130
|
+
- pkg/rubygems-mirror-1.0.0/pkg/rubygems-mirror-1.0.0/CHANGELOG.rdoc
|
131
|
+
- pkg/rubygems-mirror-1.0.0/pkg/rubygems-mirror-1.0.0/README.rdoc
|
130
132
|
- pkg/rubygems-mirror-1.0.0/README.rdoc
|
131
133
|
- README.rdoc
|
132
134
|
files:
|
@@ -143,6 +145,8 @@ files:
|
|
143
145
|
- lib/rubygems_plugin.rb
|
144
146
|
- test/test_gem_mirror.rb
|
145
147
|
- pkg/rubygems-mirror-1.0.0/CHANGELOG.rdoc
|
148
|
+
- pkg/rubygems-mirror-1.0.0/pkg/rubygems-mirror-1.0.0/CHANGELOG.rdoc
|
149
|
+
- pkg/rubygems-mirror-1.0.0/pkg/rubygems-mirror-1.0.0/README.rdoc
|
146
150
|
- pkg/rubygems-mirror-1.0.0/README.rdoc
|
147
151
|
- .gemtest
|
148
152
|
homepage: http://github.com/rubygems/rubygems-mirror
|