bump 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bump.gemspec +1 -1
- data/lib/bump.rb +1 -1
- data/spec/bump_spec.rb +15 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/bump.gemspec
CHANGED
data/lib/bump.rb
CHANGED
data/spec/bump_spec.rb
CHANGED
@@ -106,6 +106,21 @@ describe Bump do
|
|
106
106
|
bump("patch").should include("4.2.11")
|
107
107
|
read(gemspec).should include('s.version = "4.2.11"')
|
108
108
|
end
|
109
|
+
|
110
|
+
it "should not bump multiple versions" do
|
111
|
+
version = '"4.2.3"'
|
112
|
+
write gemspec, <<-RUBY
|
113
|
+
Gem::Specification.new do |s|
|
114
|
+
s.name = 'fixture'
|
115
|
+
s.version = #{version}
|
116
|
+
s.summary = 'Fixture gem'
|
117
|
+
s.runtime_dependency 'rake', #{version}
|
118
|
+
end
|
119
|
+
RUBY
|
120
|
+
bump("patch").should include("4.2.4")
|
121
|
+
read(gemspec).should include('s.version = "4.2.4"')
|
122
|
+
read(gemspec).should include("'rake', #{version}")
|
123
|
+
end
|
109
124
|
end
|
110
125
|
|
111
126
|
context ".version in gemspec within the initializer" 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.
|
4
|
+
version: 0.4.2
|
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-
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|