busser 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/lib/busser/rubygems.rb +5 -1
- data/lib/busser/version.rb +1 -1
- metadata +1 -4
data/CHANGELOG.md
CHANGED
data/lib/busser/rubygems.rb
CHANGED
@@ -28,7 +28,11 @@ module Busser
|
|
28
28
|
installed = Array(Gem::Specification.find_all_by_name(name, version))
|
29
29
|
version = latest_gem_version(name) if version.nil?
|
30
30
|
|
31
|
-
|
31
|
+
if version.nil?
|
32
|
+
! installed.empty?
|
33
|
+
else
|
34
|
+
installed.find { |spec| spec.version.to_s == version }
|
35
|
+
end
|
32
36
|
end
|
33
37
|
|
34
38
|
def install_gem(gem, version)
|
data/lib/busser/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: busser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -343,9 +343,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
- - ! '>='
|
344
344
|
- !ruby/object:Gem::Version
|
345
345
|
version: '0'
|
346
|
-
segments:
|
347
|
-
- 0
|
348
|
-
hash: -1092429557824524753
|
349
346
|
requirements: []
|
350
347
|
rubyforge_project:
|
351
348
|
rubygems_version: 1.8.24
|