gem_leaves 1.0.6 → 1.0.7
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.
- data/{History.txt → History.rdoc} +6 -0
- data/LICENSE.rdoc +23 -0
- data/README.rdoc +41 -0
- data/Rakefile +30 -13
- data/VERSION +1 -0
- data/gem_leaves.gemspec +50 -67
- data/lib/gem_leaves.rb +1 -1
- metadata +59 -23
- data/Manifest +0 -7
- data/README.txt +0 -55
data/LICENSE.rdoc
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
= LICENSE
|
2
|
+
|
3
|
+
(The MIT License)
|
4
|
+
|
5
|
+
Copyright (c) 2007, 2008, 2009 Gufo Pelato
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the 'Software'), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
= GemLeaves
|
2
|
+
|
3
|
+
gem_leaves is a rather dumb tool which lists the _leaves_ of your system. I
|
4
|
+
call _leaves_ the gems with no reverse dependency which can be safely removed
|
5
|
+
without breaking anything.
|
6
|
+
|
7
|
+
== FEATURES/PROBLEMS:
|
8
|
+
|
9
|
+
* User can customize the tool's behaviour with a simple, YAML configuration
|
10
|
+
file.
|
11
|
+
* The tool can generate/regenerate its own configuration file.
|
12
|
+
|
13
|
+
== SYNOPSIS:
|
14
|
+
|
15
|
+
$ gem_leaves
|
16
|
+
|
17
|
+
For options' list see output of
|
18
|
+
|
19
|
+
$ gem_leaves -h
|
20
|
+
|
21
|
+
== REQUIREMENTS:
|
22
|
+
|
23
|
+
* RubyGems
|
24
|
+
|
25
|
+
== INSTALL:
|
26
|
+
|
27
|
+
$ sudo gem install gem_leaves
|
28
|
+
|
29
|
+
== Contributing
|
30
|
+
|
31
|
+
If you want to help:
|
32
|
+
|
33
|
+
* fork the project[http://github.com/baldowl/gem_leaves] on GitHub;
|
34
|
+
* work in a topic branch;
|
35
|
+
* add features/specs for your additions or bug fixes;
|
36
|
+
* write your additions/bug fixes;
|
37
|
+
* commit;
|
38
|
+
* send me a pull request for the topic branch.
|
39
|
+
|
40
|
+
If you have any issue, please post them on the {project's issue
|
41
|
+
list}[http://github.com/baldowl/gem_leaves] on GitHub.
|
data/Rakefile
CHANGED
@@ -1,14 +1,31 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
p.rdoc_pattern = /^README|^LICENSE/
|
13
|
-
p.url = 'http://github.com/baldowl/gem_leaves'
|
1
|
+
require 'rake/clean'
|
2
|
+
require 'rake/rdoctask'
|
3
|
+
require 'jeweler'
|
4
|
+
|
5
|
+
version = File.exists?('VERSION') ? File.read('VERSION').strip : ''
|
6
|
+
|
7
|
+
Rake::RDocTask.new :doc do |rdoc|
|
8
|
+
rdoc.rdoc_dir = 'doc'
|
9
|
+
rdoc.title = "GemLeaves #{version}"
|
10
|
+
rdoc.rdoc_files.include('README.rdoc', 'LICENSE.rdoc', 'History.rdoc')
|
11
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
14
12
|
end
|
13
|
+
|
14
|
+
Jeweler::Tasks.new do |gem|
|
15
|
+
gem.name = 'gem_leaves'
|
16
|
+
gem.summary = 'A dumb tool to list removable gems'
|
17
|
+
gem.description = 'A dumb tool to list removable gems'
|
18
|
+
gem.license = 'MIT'
|
19
|
+
gem.authors = 'Gufo Pelato'
|
20
|
+
gem.email = 'gufo.pelato@gmail.com'
|
21
|
+
gem.homepage = 'http://github.com/baldowl/gem_leaves'
|
22
|
+
gem.rubyforge_project = 'gemleaves'
|
23
|
+
gem.add_development_dependency 'cucumber', '>= 0.1.13'
|
24
|
+
gem.add_development_dependency 'rspec'
|
25
|
+
gem.required_rubygems_version = '>= 1.7.0'
|
26
|
+
gem.rdoc_options << '--line-numbers' << '--inline-source' << '--title' <<
|
27
|
+
"GemLeaves #{version}" << '--main' << 'README.rdoc'
|
28
|
+
gem.test_files.clear
|
29
|
+
end
|
30
|
+
|
31
|
+
Jeweler::GemcutterTasks.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.7
|
data/gem_leaves.gemspec
CHANGED
@@ -1,70 +1,53 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Gufo Pelato
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: echoe
|
16
|
-
type: :development
|
17
|
-
version_requirement:
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: "0"
|
23
|
-
version:
|
24
|
-
description: A dumb tool to list removable gems.
|
25
|
-
email: ""
|
26
|
-
executables:
|
27
|
-
- gem_leaves
|
28
|
-
extensions: []
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{gem_leaves}
|
8
|
+
s.version = "1.0.7"
|
29
9
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.7.0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Gufo Pelato"]
|
12
|
+
s.date = %q{2011-04-04}
|
13
|
+
s.description = %q{A dumb tool to list removable gems}
|
14
|
+
s.email = %q{gufo.pelato@gmail.com}
|
15
|
+
s.executables = ["gem_leaves"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.rdoc",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"History.rdoc",
|
22
|
+
"LICENSE.rdoc",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"bin/gem_leaves",
|
27
|
+
"gem_leaves.gemspec",
|
28
|
+
"lib/gem_leaves.rb"
|
29
|
+
]
|
30
|
+
s.homepage = %q{http://github.com/baldowl/gem_leaves}
|
31
|
+
s.licenses = ["MIT"]
|
32
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "GemLeaves 1.0.7", "--main", "README.rdoc"]
|
33
|
+
s.require_paths = ["lib"]
|
34
|
+
s.rubyforge_project = %q{gemleaves}
|
35
|
+
s.rubygems_version = %q{1.7.1}
|
36
|
+
s.summary = %q{A dumb tool to list removable gems}
|
37
|
+
|
38
|
+
if s.respond_to? :specification_version then
|
39
|
+
s.specification_version = 3
|
40
|
+
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
+
s.add_development_dependency(%q<cucumber>, [">= 0.1.13"])
|
43
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
44
|
+
else
|
45
|
+
s.add_dependency(%q<cucumber>, [">= 0.1.13"])
|
46
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
47
|
+
end
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<cucumber>, [">= 0.1.13"])
|
50
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
51
|
+
end
|
52
|
+
end
|
65
53
|
|
66
|
-
rubyforge_project: gemleaves
|
67
|
-
rubygems_version: 1.3.1
|
68
|
-
specification_version: 2
|
69
|
-
summary: A dumb tool to list removable gems.
|
70
|
-
test_files: []
|
data/lib/gem_leaves.rb
CHANGED
@@ -106,7 +106,7 @@ class GemLeaves
|
|
106
106
|
# Looks at the installed gems to find the _leaves_.
|
107
107
|
def find_leaves
|
108
108
|
root = Gem::Dependency.new //, Gem::Requirement.default
|
109
|
-
srcindex = Gem::SourceIndex.
|
109
|
+
srcindex = Gem::SourceIndex.new(Gem::SourceIndex.installed_spec_directories)
|
110
110
|
@gems = srcindex.search root
|
111
111
|
srcindex = prune(srcindex)
|
112
112
|
@leaves = srcindex.search(root).select {|s| s.dependent_gems.empty?}
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_leaves
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 7
|
10
|
+
version: 1.0.7
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Gufo Pelato
|
@@ -9,65 +15,95 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
18
|
+
date: 2011-04-04 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
21
|
+
name: cucumber
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 1
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 1
|
32
|
+
- 13
|
33
|
+
version: 0.1.13
|
17
34
|
type: :development
|
18
|
-
|
19
|
-
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
20
41
|
requirements:
|
21
42
|
- - ">="
|
22
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
23
47
|
version: "0"
|
24
|
-
|
25
|
-
|
26
|
-
|
48
|
+
type: :development
|
49
|
+
version_requirements: *id002
|
50
|
+
description: A dumb tool to list removable gems
|
51
|
+
email: gufo.pelato@gmail.com
|
27
52
|
executables:
|
28
53
|
- gem_leaves
|
29
54
|
extensions: []
|
30
55
|
|
31
56
|
extra_rdoc_files:
|
32
|
-
-
|
57
|
+
- LICENSE.rdoc
|
58
|
+
- README.rdoc
|
33
59
|
files:
|
60
|
+
- History.rdoc
|
61
|
+
- LICENSE.rdoc
|
62
|
+
- README.rdoc
|
63
|
+
- Rakefile
|
64
|
+
- VERSION
|
34
65
|
- bin/gem_leaves
|
35
66
|
- gem_leaves.gemspec
|
36
|
-
- History.txt
|
37
67
|
- lib/gem_leaves.rb
|
38
|
-
- Manifest
|
39
|
-
- Rakefile
|
40
|
-
- README.txt
|
41
|
-
has_rdoc: true
|
42
68
|
homepage: http://github.com/baldowl/gem_leaves
|
69
|
+
licenses:
|
70
|
+
- MIT
|
43
71
|
post_install_message:
|
44
72
|
rdoc_options:
|
45
73
|
- --line-numbers
|
46
74
|
- --inline-source
|
47
75
|
- --title
|
48
|
-
-
|
76
|
+
- GemLeaves 1.0.7
|
49
77
|
- --main
|
50
|
-
- README.
|
78
|
+
- README.rdoc
|
51
79
|
require_paths:
|
52
80
|
- lib
|
53
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
54
83
|
requirements:
|
55
84
|
- - ">="
|
56
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
57
89
|
version: "0"
|
58
|
-
version:
|
59
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
60
92
|
requirements:
|
61
93
|
- - ">="
|
62
94
|
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
95
|
+
hash: 11
|
96
|
+
segments:
|
97
|
+
- 1
|
98
|
+
- 7
|
99
|
+
- 0
|
100
|
+
version: 1.7.0
|
65
101
|
requirements: []
|
66
102
|
|
67
103
|
rubyforge_project: gemleaves
|
68
|
-
rubygems_version: 1.
|
104
|
+
rubygems_version: 1.7.1
|
69
105
|
signing_key:
|
70
|
-
specification_version:
|
71
|
-
summary: A dumb tool to list removable gems
|
106
|
+
specification_version: 3
|
107
|
+
summary: A dumb tool to list removable gems
|
72
108
|
test_files: []
|
73
109
|
|
data/Manifest
DELETED
data/README.txt
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
gem_leaves
|
2
|
-
by Gufo Pelato
|
3
|
-
|
4
|
-
== DESCRIPTION:
|
5
|
-
|
6
|
-
gem_leaves is a rather dumb tool which lists the _leaves_ of your system. I
|
7
|
-
call _leaves_ the gems with no reverse dependency which can be safely
|
8
|
-
removed without breaking anything.
|
9
|
-
|
10
|
-
== FEATURES/PROBLEMS:
|
11
|
-
|
12
|
-
* User can customize the tool's behaviour with a simple, YAML configuration
|
13
|
-
file.
|
14
|
-
* The tool can generate/regenerate its own configuration file.
|
15
|
-
|
16
|
-
== SYNOPSIS:
|
17
|
-
|
18
|
-
$ gem_leaves
|
19
|
-
|
20
|
-
For options' list see output of
|
21
|
-
|
22
|
-
$ gem_leaves -h
|
23
|
-
|
24
|
-
== REQUIREMENTS:
|
25
|
-
|
26
|
-
* RubyGems
|
27
|
-
|
28
|
-
== INSTALL:
|
29
|
-
|
30
|
-
$ sudo gem install gem_leaves
|
31
|
-
|
32
|
-
== LICENSE:
|
33
|
-
|
34
|
-
(The MIT License)
|
35
|
-
|
36
|
-
Copyright (c) 2007, 2008, 2009 Gufo Pelato
|
37
|
-
|
38
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
39
|
-
a copy of this software and associated documentation files (the
|
40
|
-
'Software'), to deal in the Software without restriction, including
|
41
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
42
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
43
|
-
permit persons to whom the Software is furnished to do so, subject to
|
44
|
-
the following conditions:
|
45
|
-
|
46
|
-
The above copyright notice and this permission notice shall be
|
47
|
-
included in all copies or substantial portions of the Software.
|
48
|
-
|
49
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
50
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
51
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
52
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
53
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
54
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
55
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|