gem-orphan 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +17 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +1 -9
- data/gem-orphan.gemspec +26 -18
- data/lib/gem/orphan.rb +1 -0
- data/lib/gem/orphan/version.rb +5 -0
- data/lib/rubygems/commands/orphan_command.rb +2 -8
- metadata +54 -22
- data/MIT-LICENSE +0 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ca7465d2cfa9cd99c52ae9aed8076ea8d0755907
|
4
|
+
data.tar.gz: 1c8edee4dd3cf30cafaae6eac229ecf0a73b18ce
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b2cb011977f7bca1f967b53860639b257085335bf4f9ec2a04dda47f0baba549c72130d07bf0cb5f8b3916b491987a032ccca7256fb2d134bcf8039a7cb8c358
|
7
|
+
data.tar.gz: 8b36961fcc683dec5b0e35eab33e12b1554fe40ba2a1d06a0dcfad282303ced7af9a5eb714041b8fcc014c6bf302843e1e9c8203fb75be97744889e23d48b250
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2010 OZAWA Sakuro
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
CHANGED
data/gem-orphan.gemspec
CHANGED
@@ -1,22 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'gem/orphan/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'gem-orphan'
|
7
|
+
spec.version = Gem::Orphan::VERSION
|
8
|
+
spec.authors = ['OZAWA Sakuro']
|
9
|
+
spec.email = %w(sakuro@users.noreply.github.com)
|
10
|
+
|
11
|
+
spec.summary = 'A RubyGems plugin to show orphaned gems.'
|
12
|
+
spec.description = <<-EOF.gsub(/^ /, '')
|
10
13
|
gem-orphan is a naive implementation of the 'orphan' subcommand.
|
11
14
|
It finds gems on which no other gems are depending and lists such gems.
|
12
15
|
EOF
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
spec.homepage = 'https://github.com/sakuro/gem-orphan'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
if spec.respond_to?(:metadata)
|
25
|
+
spec.metadata.delete 'allowed_push_host'
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.9'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
22
30
|
end
|
data/lib/gem/orphan.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'gem/orphan/version'
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rubygems/command'
|
2
|
-
require 'rubygems/source_index'
|
3
2
|
|
4
3
|
class Gem::Commands::OrphanCommand < Gem::Command
|
5
4
|
|
@@ -8,16 +7,11 @@ class Gem::Commands::OrphanCommand < Gem::Command
|
|
8
7
|
end
|
9
8
|
|
10
9
|
def execute
|
11
|
-
|
12
|
-
specs = Gem::Specification.to_a
|
13
|
-
else
|
14
|
-
index = Gem::SourceIndex.from_installed_gems
|
15
|
-
specs = index.map {|name, spec| spec }
|
16
|
-
end
|
10
|
+
specs = Gem::Specification.to_a
|
17
11
|
dependencies = specs.map(&:dependencies).flatten.uniq
|
18
12
|
runtime_dependencies = dependencies.select {|dep| dep.type == :runtime }
|
19
13
|
|
20
|
-
specs.delete_if {|spec| runtime_dependencies.any? {|dep| dep.name == spec.name} }
|
14
|
+
specs.delete_if {|spec| spec.default_gem? || runtime_dependencies.any? {|dep| dep.name == spec.name} }
|
21
15
|
|
22
16
|
specs.each do |spec|
|
23
17
|
say "#{spec.name} (#{spec.version})"
|
metadata
CHANGED
@@ -1,54 +1,86 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-orphan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- OZAWA Sakuro
|
9
8
|
autorequire:
|
10
|
-
bindir:
|
9
|
+
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
|
15
|
-
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: |
|
42
|
+
gem-orphan is a naive implementation of the 'orphan' subcommand.
|
16
43
|
It finds gems on which no other gems are depending and lists such gems.
|
17
|
-
|
18
|
-
|
19
|
-
email: sakuro@2238club.org
|
44
|
+
email:
|
45
|
+
- sakuro@users.noreply.github.com
|
20
46
|
executables: []
|
21
47
|
extensions: []
|
22
48
|
extra_rdoc_files: []
|
23
49
|
files:
|
24
|
-
-
|
25
|
-
-
|
50
|
+
- ".gitignore"
|
51
|
+
- Gemfile
|
52
|
+
- Gemfile.lock
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
26
55
|
- Rakefile
|
27
56
|
- gem-orphan.gemspec
|
28
|
-
-
|
29
|
-
-
|
57
|
+
- lib/gem/orphan.rb
|
58
|
+
- lib/gem/orphan/version.rb
|
59
|
+
- lib/rubygems/commands/orphan_command.rb
|
60
|
+
- lib/rubygems_plugin.rb
|
30
61
|
homepage: https://github.com/sakuro/gem-orphan
|
31
|
-
licenses:
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
32
65
|
post_install_message:
|
33
66
|
rdoc_options: []
|
34
67
|
require_paths:
|
35
68
|
- lib
|
36
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
70
|
requirements:
|
39
|
-
- -
|
71
|
+
- - ">="
|
40
72
|
- !ruby/object:Gem::Version
|
41
73
|
version: '0'
|
42
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
75
|
requirements:
|
45
|
-
- -
|
76
|
+
- - ">="
|
46
77
|
- !ruby/object:Gem::Version
|
47
78
|
version: '0'
|
48
79
|
requirements: []
|
49
|
-
rubyforge_project:
|
50
|
-
rubygems_version:
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.4.5
|
51
82
|
signing_key:
|
52
|
-
specification_version:
|
83
|
+
specification_version: 4
|
53
84
|
summary: A RubyGems plugin to show orphaned gems.
|
54
85
|
test_files: []
|
86
|
+
has_rdoc:
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2010 OZAWA Sakuro
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|