bump 0.4.2 → 0.4.3

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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.4.2)
4
+ bump (0.4.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.4.2"
2
+ s.version = "0.4.3"
3
3
  s.author = "Gregory Marcilhacy"
4
4
  s.email = "g.marcilhacy@gmail.com"
5
5
  s.homepage = "https://github.com/gregorym/bump"
@@ -95,9 +95,9 @@ module Bump
95
95
 
96
96
  def self.current_info
97
97
  version, file = (
98
+ version_from_version ||
98
99
  version_from_version_rb ||
99
100
  version_from_gemspec ||
100
- version_from_version ||
101
101
  version_from_lib_rb ||
102
102
  version_from_chef ||
103
103
  raise(UnfoundVersionFileError)
@@ -215,12 +215,12 @@ describe Bump do
215
215
  end
216
216
 
217
217
  it "should bump if a gemspec & version.rb exists and leave it alone" do
218
- write_gemspec "File.read('VERSION')"
218
+ write_gemspec "'1.2.0'"
219
219
  write_version_file "File.read('VERSION')"
220
220
  bump("minor").should include("1.3.0")
221
221
  read("VERSION").should include("1.3.0")
222
222
  read(version_file).should include("VERSION = File.read('VERSION')")
223
- read(gemspec).should include("version = File.read('VERSION')")
223
+ read(gemspec).should include("version = '1.2.0'")
224
224
  end
225
225
 
226
226
  context "with pre-release identifier" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-22 00:00:00.000000000 Z
12
+ date: 2013-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake