gem-orphan 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/gem-orphan.gemspec +2 -2
- data/lib/rubygems/commands/orphan_command.rb +6 -2
- metadata +24 -45
data/Rakefile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'rubygems/package_task'
|
2
2
|
require 'rake/clean'
|
3
3
|
|
4
4
|
spec = Gem::Specification.load('gem-orphan.gemspec')
|
5
5
|
|
6
|
-
|
6
|
+
Gem::PackageTask.new(spec) do |t|
|
7
7
|
t.need_zip = true
|
8
8
|
t.need_tar = true
|
9
9
|
end
|
data/gem-orphan.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'gem-orphan'
|
3
3
|
s.author = 'OZAWA Sakuro'
|
4
|
-
s.
|
4
|
+
s.email = 'sakuro@2238club.org'
|
5
5
|
s.rubyforge_project = ''
|
6
6
|
s.homepage = 'https://github.com/sakuro/gem-orphan'
|
7
7
|
s.platform = Gem::Platform::RUBY
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
gem-orphan is a naive implementation of the 'orphan' subcommand.
|
11
11
|
It finds gems on which no other gems are depending and lists such gems.
|
12
12
|
EOF
|
13
|
-
s.version = '0.0.
|
13
|
+
s.version = '0.0.3'
|
14
14
|
s.files = <<-FILES.split
|
15
15
|
lib/rubygems/commands/orphan_command.rb
|
16
16
|
lib/rubygems_plugin.rb
|
@@ -8,8 +8,12 @@ class Gem::Commands::OrphanCommand < Gem::Command
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def execute
|
11
|
-
|
12
|
-
|
11
|
+
if Gem::Specification.respond_to?(:all)
|
12
|
+
specs = Gem::Specification.all
|
13
|
+
else
|
14
|
+
index = Gem::SourceIndex.from_installed_gems
|
15
|
+
specs = index.map {|name, spec| spec }
|
16
|
+
end
|
13
17
|
dependencies = specs.map(&:dependencies).flatten.uniq
|
14
18
|
runtime_dependencies = dependencies.select {|dep| dep.type == :runtime }
|
15
19
|
|
metadata
CHANGED
@@ -1,75 +1,54 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-orphan
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- OZAWA Sakuro
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2010-11-19 00:00:00 +09:00
|
19
|
-
default_executable:
|
12
|
+
date: 2011-05-07 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
14
|
+
description: ! 'gem-orphan is a naive implementation of the ''orphan'' subcommand.
|
21
15
|
|
22
|
-
description: |
|
23
|
-
gem-orphan is a naive implementation of the 'orphan' subcommand.
|
24
16
|
It finds gems on which no other gems are depending and lists such gems.
|
25
17
|
|
26
|
-
|
18
|
+
'
|
19
|
+
email: sakuro@2238club.org
|
27
20
|
executables: []
|
28
|
-
|
29
21
|
extensions: []
|
30
|
-
|
31
22
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
files:
|
23
|
+
files:
|
34
24
|
- lib/rubygems/commands/orphan_command.rb
|
35
25
|
- lib/rubygems_plugin.rb
|
36
26
|
- Rakefile
|
37
27
|
- gem-orphan.gemspec
|
38
28
|
- MIT-LICENSE
|
39
29
|
- README.md
|
40
|
-
has_rdoc: true
|
41
30
|
homepage: https://github.com/sakuro/gem-orphan
|
42
31
|
licenses: []
|
43
|
-
|
44
32
|
post_install_message:
|
45
33
|
rdoc_options: []
|
46
|
-
|
47
|
-
require_paths:
|
34
|
+
require_paths:
|
48
35
|
- lib
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
37
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
56
|
-
- 0
|
57
|
-
version: "0"
|
58
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
43
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
segments:
|
65
|
-
- 0
|
66
|
-
version: "0"
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
67
48
|
requirements: []
|
68
|
-
|
69
|
-
|
70
|
-
rubygems_version: 1.3.7
|
49
|
+
rubyforge_project: ''
|
50
|
+
rubygems_version: 1.8.1
|
71
51
|
signing_key:
|
72
52
|
specification_version: 3
|
73
53
|
summary: A RubyGems plugin to show orphaned gems.
|
74
54
|
test_files: []
|
75
|
-
|