gem-versions 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/gem-versions.gemspec +1 -1
- data/lib/rubygems/commands/versions_command.rb +6 -3
- metadata +4 -4
data/.gitignore
CHANGED
data/gem-versions.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'gem-versions'
|
6
|
-
s.version = '1.0.
|
6
|
+
s.version = '1.0.1'
|
7
7
|
s.authors = [ 'Andy Stewart' ]
|
8
8
|
s.email = 'boss@airbladesoftware.com'
|
9
9
|
s.homepage = 'https://github.com/airblade/gem-versions'
|
@@ -40,9 +40,12 @@ class Gem::Commands::VersionsCommand < Gem::Command
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def local_versions(name)
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
specs = if Gem::Specification.respond_to? :find_all_by_name
|
44
|
+
Gem::Specification.find_all_by_name name
|
45
|
+
else
|
46
|
+
dep = Gem::Dependency.new name, Gem::Requirement.default
|
47
|
+
Gem.source_index.search dep
|
48
|
+
end
|
46
49
|
specs.map { |spec| spec.version.to_s }
|
47
50
|
end
|
48
51
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-versions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Stewart
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-23 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|