busser 0.3.0 → 0.3.1

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.
@@ -1,3 +1,10 @@
1
+ ## 0.3.1 / 2013-04-10
2
+
3
+ ### Bug fixes
4
+
5
+ * If gem is installed but not on RubyGems, then pass #gem_installed?. ([@fnichol][])
6
+
7
+
1
8
  ## 0.3.0 / 2013-04-09
2
9
 
3
10
  ### New features
@@ -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
- installed.find { |spec| spec.version.to_s == version }
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)
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Busser
20
- VERSION = "0.3.0"
20
+ VERSION = "0.3.1"
21
21
  end
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.0
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