bump 0.5.0 → 0.5.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 684a5f35304f061967dbd9da3375f547f75ceac1
4
+ data.tar.gz: ad9f3cc5edff19bfd4b283c0a9583ddbf6c9399e
5
+ SHA512:
6
+ metadata.gz: 5a5895ff98cd5312df1bc60d9cc006dca39533a8ab79c0cb6634b3801e1f575de6189fae57fcedc615889c8b6894f5dc5429643f80af0956d5c2b62074a5108a
7
+ data.tar.gz: 8860225e3a74b8de124dff1e49f6f758f1cd801ffcb4d3b48784bbaab196184b206061b31791b77b33737a7060bc8773fba7e0ba5840cc3561ffde389e9481df
@@ -3,11 +3,17 @@ rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
5
  - 1.9.3
6
+ - 2.0.0
7
+ - 2.1.0
6
8
  - jruby-18mode
7
9
  - jruby-19mode
8
- - rbx-18mode
9
- - rbx-19mode
10
- - ruby-head
10
+ - rbx-2.1.1
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: 2.1.0
11
14
  before_script:
12
15
  - git config --global user.email "you@example.com"
13
16
  - git config --global user.name "Your Name"
17
+ before_install:
18
+ - gem update --system 2.1.11
19
+ - gem --version
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bump (0.5.0)
4
+ bump (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Build Status](https://travis-ci.org/gregorym/bump.png)](https://travis-ci.org/gregorym/bump)
2
+ [![Gem Version](https://badge.fury.io/rb/bump.png)](http://badge.fury.io/rb/bump)
3
+
1
4
  # Introduction
2
5
  Bump is a gem that will simplify the way you build gems and chef-cookbooks.
3
6
 
@@ -37,6 +40,11 @@ If you don't want to run the `bundle` command after bumping, add the `--no-bundl
37
40
 
38
41
  bump patch --no-bundle
39
42
 
43
+ ### --commit-message [MSG]
44
+ If you want to append additional information to the commit message, pass it in using the `--commit-message [MSG]` option.
45
+
46
+ bump patch --commit-message [no-ci]
47
+
40
48
  ### Rake
41
49
 
42
50
  ```Ruby
@@ -50,8 +58,10 @@ require "bump/tasks"
50
58
  ### Ruby
51
59
  ```Ruby
52
60
  require "bump"
53
- Bump::Bump.run("patch") # -> version changed
54
61
  Bump::Bump.current # -> "1.2.3"
62
+ Bump::Bump.run("patch") # -> version changed
63
+ Bump::Bump.run("patch", commit: false, bundle:false, tag:false) # -> version changed with options
64
+ Bump::Bump.run("patch", commit_message: '[no ci]') # -> creates a commit message with 'v1.2.3 [no ci]' instead of default: 'v1.2.3'
55
65
  ```
56
66
 
57
67
  # Supported locations
@@ -67,6 +77,3 @@ Bump::Bump.current # -> "1.2.3"
67
77
  # Author
68
78
  Gregory<br/>
69
79
  License: MIT<br/>
70
- [![Build Status](https://travis-ci.org/gregorym/bump.png)](https://travis-ci.org/gregorym/bump)
71
-
72
-
data/bin/bump CHANGED
@@ -17,6 +17,7 @@ Usage:
17
17
  Options:
18
18
  BANNER
19
19
  opts.on("--no-commit", "Do not make a commit.") { options[:commit] = false }
20
+ opts.on("--commit-message [MSG]", "Append MSG to the commit message.") {|msg| options[:commit_message] = msg }
20
21
  opts.on("--no-bundle", "Do not bundle.") { options[:bundle] = false }
21
22
  opts.on("--tag", "Create git tag from version (only if commit is true).") { options[:tag] = true }
22
23
  opts.on("-h", "--help","Show this.") { puts opts; exit }
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new "bump" do |s|
2
- s.version = "0.5.0"
2
+ s.version = "0.5.1"
3
3
  s.author = "Gregory Marcilhacy"
4
4
  s.email = "g.marcilhacy@gmail.com"
5
5
  s.homepage = "https://github.com/gregorym/bump"
@@ -83,10 +83,14 @@ module Bump
83
83
  bump(file, current, next_version, options)
84
84
  end
85
85
 
86
+ def self.commit_message(version, options)
87
+ (options[:commit_message]) ? "v#{version} #{options[:commit_message]}" : "v#{version}"
88
+ end
89
+
86
90
  def self.commit(version, file, options)
87
91
  return unless File.directory?(".git")
88
92
  system("git add --update Gemfile.lock") if options[:bundle]
89
- system("git add --update #{file} && git commit -m 'v#{version}'")
93
+ system("git add --update #{file} && git commit -m '#{commit_message(version, options)}'")
90
94
  system("git tag -a -m 'Bump to v#{version}' v#{version}") if options[:tag]
91
95
  end
92
96
 
@@ -299,7 +299,7 @@ describe Bump do
299
299
  before do
300
300
  write_gemspec('"1.0.0"')
301
301
  write "Gemfile", <<-RUBY
302
- source :rubygems
302
+ source 'https://rubygems.org'
303
303
  gem "parallel" # a gem not in the Gemfile used to run this test
304
304
  gemspec
305
305
  RUBY
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gregory Marcilhacy
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 10.0.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 10.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '2.0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '2.0'
46
41
  description:
@@ -50,8 +45,8 @@ executables:
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
54
- - .travis.yml
48
+ - ".gitignore"
49
+ - ".travis.yml"
55
50
  - Gemfile
56
51
  - Gemfile.lock
57
52
  - README.md
@@ -66,27 +61,25 @@ files:
66
61
  homepage: https://github.com/gregorym/bump
67
62
  licenses:
68
63
  - MIT
64
+ metadata: {}
69
65
  post_install_message:
70
66
  rdoc_options: []
71
67
  require_paths:
72
68
  - lib
73
69
  required_ruby_version: !ruby/object:Gem::Requirement
74
- none: false
75
70
  requirements:
76
- - - ! '>='
71
+ - - ">="
77
72
  - !ruby/object:Gem::Version
78
73
  version: '0'
79
74
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
75
  requirements:
82
- - - ! '>='
76
+ - - ">="
83
77
  - !ruby/object:Gem::Version
84
78
  version: '0'
85
79
  requirements: []
86
80
  rubyforge_project:
87
- rubygems_version: 1.8.23
81
+ rubygems_version: 2.2.2
88
82
  signing_key:
89
- specification_version: 3
83
+ specification_version: 4
90
84
  summary: Bump your gem version file
91
85
  test_files: []
92
- has_rdoc: