gem_leaves 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ == 1.0.7 / 2011-04-04
2
+
3
+ * Adios, echoe! Moved to Jeweler.
4
+ * Fixed a deprecation warning with the Rubygems > 1.7
5
+ * Upped the required Rubygems version.
6
+
1
7
  == 1.0.6 / 2009-01-05
2
8
 
3
9
  * Fixed doubling documentation in the installed gem.
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 'rubygems'
2
- require 'echoe'
3
- require './lib/gem_leaves.rb'
4
-
5
- Echoe.new('gem_leaves', GemLeaves::VERSION) do |p|
6
- p.author = 'Gufo Pelato'
7
- p.summary = 'A dumb tool to list removable gems.'
8
- p.need_tar_gz = false
9
- p.project = 'gemleaves'
10
- p.gemspec_format = :yaml
11
- p.retain_gemspec = true
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
- --- !ruby/object:Gem::Specification
2
- name: gem_leaves
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.6
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
- date: 2009-01-05 00:00:00 +01:00
12
- default_executable:
13
- dependencies:
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
- extra_rdoc_files:
31
- - README.txt
32
- files:
33
- - bin/gem_leaves
34
- - gem_leaves.gemspec
35
- - History.txt
36
- - lib/gem_leaves.rb
37
- - Manifest
38
- - Rakefile
39
- - README.txt
40
- has_rdoc: true
41
- homepage: http://github.com/baldowl/gem_leaves
42
- post_install_message:
43
- rdoc_options:
44
- - --line-numbers
45
- - --inline-source
46
- - --title
47
- - Gem_leaves
48
- - --main
49
- - README.txt
50
- require_paths:
51
- - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- version:
58
- required_rubygems_version: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "1.2"
63
- version:
64
- requirements: []
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.from_installed_gems
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
- version: 1.0.6
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: 2009-01-05 00:00:00 +01:00
13
- default_executable:
18
+ date: 2011-04-04 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
- name: echoe
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
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
25
- description: A dumb tool to list removable gems.
26
- email: ""
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
- - README.txt
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
- - Gem_leaves
76
+ - GemLeaves 1.0.7
49
77
  - --main
50
- - README.txt
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
- version: "1.2"
64
- version:
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.3.1
104
+ rubygems_version: 1.7.1
69
105
  signing_key:
70
- specification_version: 2
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
@@ -1,7 +0,0 @@
1
- bin/gem_leaves
2
- gem_leaves.gemspec
3
- History.txt
4
- lib/gem_leaves.rb
5
- Manifest
6
- Rakefile
7
- README.txt
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.