bump 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bump.gemspec +1 -1
- data/lib/bump/tasks.rb +2 -2
- data/spec/bump/tasks_spec.rb +10 -0
- data/spec/bump_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ef186ccfe40cf26219fa1c75d15efc1d8dafdfc
|
4
|
+
data.tar.gz: 7da83bfd2c56ea4f0c4afced03ab7d09a8ce3bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e6e0b617ef415e82dacd1607b69a16af17e692e9a0127bc0b8ecaa35945730b2c0ee3dc7b5e7dbd83e8e7216ba06e142443632082e09fcfcde2fdfb15f8caa
|
7
|
+
data.tar.gz: 021358ba88e682754d6907280dce1b69e1ff791cc93d62c3dc8fc1d5ce1e2b61c3715d42b55edb6ed117710aed96e7b81d943842e6100d116036af074e9f9c0f
|
data/Gemfile.lock
CHANGED
data/bump.gemspec
CHANGED
data/lib/bump/tasks.rb
CHANGED
data/spec/bump/tasks_spec.rb
CHANGED
@@ -16,6 +16,16 @@ describe "rake bump" do
|
|
16
16
|
`git log -1 --pretty=format:'%s'`.should == "v1.3.0"
|
17
17
|
end
|
18
18
|
|
19
|
+
it "bumps a version and can optionally tag it" do
|
20
|
+
run "rake bump:patch[true]"
|
21
|
+
`git tag`.split("\n").last.should == "v1.2.4"
|
22
|
+
end
|
23
|
+
|
24
|
+
it "does not tag by default" do
|
25
|
+
run "rake bump:patch"
|
26
|
+
`git tag`.split("\n").last.should be_nil
|
27
|
+
end
|
28
|
+
|
19
29
|
it "sets a version" do
|
20
30
|
output = run "VERSION=1.3.0 rake bump:set"
|
21
31
|
output.should include("1.3.0")
|
data/spec/bump_spec.rb
CHANGED
@@ -300,7 +300,8 @@ describe Bump do
|
|
300
300
|
write_gemspec('"1.0.0"')
|
301
301
|
write "Gemfile", <<-RUBY
|
302
302
|
source 'https://rubygems.org'
|
303
|
-
|
303
|
+
# a gem not in the Gemfile used to run this test
|
304
|
+
gem 'a1330ks_bmi', '~> 0.0.1'
|
304
305
|
gemspec
|
305
306
|
RUBY
|
306
307
|
`git add Gemfile #{gemspec}`
|
@@ -424,6 +425,7 @@ describe Bump do
|
|
424
425
|
def write_gemspec(version = '"4.2.3"')
|
425
426
|
write gemspec, <<-RUBY.sub(" "*6, "")
|
426
427
|
Gem::Specification.new do |s|
|
428
|
+
s.author = 'joe'
|
427
429
|
s.name = 'fixture'
|
428
430
|
s.version = #{version}
|
429
431
|
s.summary = 'Fixture gem'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Marcilhacy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|