rubygems_dump 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 1.0.0
@@ -0,0 +1,20 @@
1
+ require 'rubygems/command'
2
+
3
+ class Gem::Commands::DumpCommand < Gem::Command
4
+
5
+ def initialize
6
+ super 'dump', 'dump a list of rubygems formatted as gem install <gemname> <version>'
7
+ end
8
+
9
+ def execute
10
+ sudo = options[:args].delete('sudo') || ''
11
+ args = options[:args].map do |arg|
12
+ "--#{arg}"
13
+ end.join(' ')
14
+
15
+ gems = Gem.source_index.gems.values
16
+ gems.each do |gem|
17
+ say "#{sudo} gem install #{gem.name} --version #{gem.version} #{args}"
18
+ end
19
+ end
20
+ end
@@ -1,20 +1,2 @@
1
- class Gem::Commands::DumpCommand < Gem::Command
2
-
3
- def initialize
4
- super 'dump', 'dump a list of rubygems formatted as gem install <gemname> <options>'
5
- end
6
-
7
- def execute
8
- sudo = options[:args].delete('sudo') || ''
9
- args = options[:args].map do |arg|
10
- "--#{arg}"
11
- end.join(' ')
12
-
13
- gems = Gem.source_index.gems.values
14
- gems.each do |gem|
15
- say "#{sudo} gem install #{gem.name} --version #{gem.version} #{args}"
16
- end
17
- end
18
- end
19
-
1
+ require 'rubygems/command_manager'
20
2
  Gem::CommandManager.instance.register_command :dump
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubygems_dump}
8
- s.version = "0.1.0"
8
+ s.version = "1.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stefan Penner"]
12
- s.date = %q{2010-02-25}
12
+ s.date = %q{2010-06-20}
13
13
  s.description = %q{dump a usable list }
14
14
  s.email = %q{stefan.penner@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  "README.rdoc",
24
24
  "Rakefile",
25
25
  "VERSION",
26
+ "lib/rubygems/commands/dump_command.rb",
26
27
  "lib/rubygems_plugin.rb",
27
28
  "rubygems_dump.gemspec",
28
29
  "spec/rubygems_dump_spec.rb",
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
32
33
  s.homepage = %q{http://github.com/stefanpenner/rubygems_dump}
33
34
  s.rdoc_options = ["--charset=UTF-8"]
34
35
  s.require_paths = ["lib"]
35
- s.rubygems_version = %q{1.3.6}
36
+ s.rubygems_version = %q{1.3.7}
36
37
  s.summary = %q{dump a usable list of rubygems}
37
38
  s.test_files = [
38
39
  "spec/rubygems_dump_spec.rb",
@@ -43,7 +44,7 @@ Gem::Specification.new do |s|
43
44
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
45
  s.specification_version = 3
45
46
 
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
48
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
48
49
  else
49
50
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems_dump
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
- - 0
7
7
  - 1
8
8
  - 0
9
- version: 0.1.0
9
+ - 0
10
+ version: 1.0.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Stefan Penner
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-02-25 00:00:00 -06:00
18
+ date: 2010-06-20 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rspec
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 13
27
30
  segments:
28
31
  - 1
29
32
  - 2
@@ -47,6 +50,7 @@ files:
47
50
  - README.rdoc
48
51
  - Rakefile
49
52
  - VERSION
53
+ - lib/rubygems/commands/dump_command.rb
50
54
  - lib/rubygems_plugin.rb
51
55
  - rubygems_dump.gemspec
52
56
  - spec/rubygems_dump_spec.rb
@@ -62,23 +66,27 @@ rdoc_options:
62
66
  require_paths:
63
67
  - lib
64
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
65
70
  requirements:
66
71
  - - ">="
67
72
  - !ruby/object:Gem::Version
73
+ hash: 3
68
74
  segments:
69
75
  - 0
70
76
  version: "0"
71
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
72
79
  requirements:
73
80
  - - ">="
74
81
  - !ruby/object:Gem::Version
82
+ hash: 3
75
83
  segments:
76
84
  - 0
77
85
  version: "0"
78
86
  requirements: []
79
87
 
80
88
  rubyforge_project:
81
- rubygems_version: 1.3.6
89
+ rubygems_version: 1.3.7
82
90
  signing_key:
83
91
  specification_version: 3
84
92
  summary: dump a usable list of rubygems