bump 0.5.1 → 0.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 684a5f35304f061967dbd9da3375f547f75ceac1
4
- data.tar.gz: ad9f3cc5edff19bfd4b283c0a9583ddbf6c9399e
3
+ metadata.gz: 6ef186ccfe40cf26219fa1c75d15efc1d8dafdfc
4
+ data.tar.gz: 7da83bfd2c56ea4f0c4afced03ab7d09a8ce3bab
5
5
  SHA512:
6
- metadata.gz: 5a5895ff98cd5312df1bc60d9cc006dca39533a8ab79c0cb6634b3801e1f575de6189fae57fcedc615889c8b6894f5dc5429643f80af0956d5c2b62074a5108a
7
- data.tar.gz: 8860225e3a74b8de124dff1e49f6f758f1cd801ffcb4d3b48784bbaab196184b206061b31791b77b33737a7060bc8773fba7e0ba5840cc3561ffde389e9481df
6
+ metadata.gz: e1e6e0b617ef415e82dacd1607b69a16af17e692e9a0127bc0b8ecaa35945730b2c0ee3dc7b5e7dbd83e8e7216ba06e142443632082e09fcfcde2fdfb15f8caa
7
+ data.tar.gz: 021358ba88e682754d6907280dce1b69e1ff791cc93d62c3dc8fc1d5ce1e2b61c3715d42b55edb6ed117710aed96e7b81d943842e6100d116036af074e9f9c0f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.5.1)
4
+ bump (0.5.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/bump.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.5.1"
2
+ s.version = "0.5.2"
3
3
  s.author = "Gregory Marcilhacy"
4
4
  s.email = "g.marcilhacy@gmail.com"
5
5
  s.homepage = "https://github.com/gregorym/bump"
data/lib/bump/tasks.rb CHANGED
@@ -14,8 +14,8 @@ namespace :bump do
14
14
  desc "Bump #{bump} part of gem version"
15
15
  end
16
16
 
17
- task bump do
18
- run_bump.call(bump, {})
17
+ task bump, :tag do |_task, args|
18
+ run_bump.call(bump, :tag => args[:tag])
19
19
  end
20
20
  end
21
21
 
@@ -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
- gem "parallel" # a gem not in the Gemfile used to run this test
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.1
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: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake