gem-dependent 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -4
- data/VERSION +1 -1
- data/gem-dependent.gemspec +3 -4
- data/lib/rubygems/dependent.rb +6 -6
- metadata +6 -6
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/gem-dependent.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gem-dependent}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-05-09}
|
13
13
|
s.email = %q{grosser.michael@gmail.com}
|
14
14
|
s.files = [
|
15
15
|
"Gemfile",
|
@@ -35,14 +35,13 @@ gem install parallel
|
|
35
35
|
}
|
36
36
|
s.rdoc_options = ["--charset=UTF-8"]
|
37
37
|
s.require_paths = ["lib"]
|
38
|
-
s.rubygems_version = %q{1.
|
38
|
+
s.rubygems_version = %q{1.6.2}
|
39
39
|
s.summary = %q{See which gems depend on your gems}
|
40
40
|
s.test_files = [
|
41
41
|
"spec/dependent_spec.rb"
|
42
42
|
]
|
43
43
|
|
44
44
|
if s.respond_to? :specification_version then
|
45
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
46
45
|
s.specification_version = 3
|
47
46
|
|
48
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/rubygems/dependent.rb
CHANGED
@@ -19,13 +19,13 @@ module Gem
|
|
19
19
|
end
|
20
20
|
|
21
21
|
if options[:progress]
|
22
|
-
puts "Downloading specs for #{specs_and_sources.size} gems"
|
22
|
+
$stderr.puts "Downloading specs for #{specs_and_sources.size} gems"
|
23
23
|
end
|
24
24
|
|
25
25
|
gems_and_dependencies = fetch_all_dependencies(specs_and_sources, options) do
|
26
26
|
print_dot if options[:progress]
|
27
27
|
end
|
28
|
-
print "\n" if options[:progress]
|
28
|
+
$stderr.print "\n" if options[:progress]
|
29
29
|
|
30
30
|
select_dependent(gems_and_dependencies, gem)
|
31
31
|
end
|
@@ -61,8 +61,8 @@ module Gem
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def self.print_dot
|
64
|
-
print '.'
|
65
|
-
$
|
64
|
+
$stderr.print '.'
|
65
|
+
$stderr.flush if rand(20) == 0 # make progress visible
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.all_specs_and_sources
|
@@ -72,7 +72,7 @@ module Gem
|
|
72
72
|
prerelease = false
|
73
73
|
matcher = Gem::Dependency.new(//, Gem::Requirement.default) # any name, any version
|
74
74
|
specs_and_sources = fetcher.find_matching matcher, all, matching_platform, prerelease
|
75
|
-
uniq_by(specs_and_sources){|a| a.first.first }
|
75
|
+
uniq_by(specs_and_sources){|a| a.first.first }
|
76
76
|
end
|
77
77
|
|
78
78
|
# get unique elements from an array (last found is used)
|
@@ -104,4 +104,4 @@ module Gem
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
107
|
-
end
|
107
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-dependent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-05-09 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements: []
|
78
78
|
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.6.2
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
83
|
summary: See which gems depend on your gems
|