bmp 0.8.1 → 0.8.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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDFjMDMzNjQ1YTNjMDE5MjVkNzhkZDU0YTI3MmU5ZmU1MjQ1ZjBjNQ==
5
- data.tar.gz: !binary |-
6
- YTQyM2UzYjIzNDU3YjNlM2FjOGViM2RhYWEwYzZiZWU2MDUyNDJhMQ==
2
+ SHA1:
3
+ metadata.gz: fe0d0b7bf2c48b7ab41776c278f967805f3793f0
4
+ data.tar.gz: af4235540869309d207c396929125fce02d1a859
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NmVmNzQ2Mzg1OTEwZGNkODU2ZGViOWNjNjdmODRmODhlNmE4NjQwYzg4ZGY5
10
- ODM4OWNlZjdmNzRhNmVlMWEwYTVlYWIxNWM1OTQyYTMxM2QxYTI1MmJiZWFm
11
- YTc1ODU2MDIzZjIxMDNlMjAwNjRkZTQ1NTZiNDg1ZTYxN2ZjNGE=
12
- data.tar.gz: !binary |-
13
- ODUzNzA3NGVkNTMzNmZmNDNiNDMwNDFmNjgyYzYzZWNjMDM2YzczNmNhYTgw
14
- MjNiMGM4MmE5NGE5MDMyNDU4ZTRiYTcxYmE2NDFhMTgxZDNlNmMwNzlkOTI1
15
- YzNiNTc1ODg5YjJhMjU4OGM5OGI5ODJkNzA5MDdkZTdhMTc5MmM=
6
+ metadata.gz: d85fcb45bd3cd5875eee15027a652971fb1cf706b209b09c41f4c93ff95ada48e3866112a45e865dbf679e32cee2cb65ad97a7f8182f1e7950b68cd06c06c9a2
7
+ data.tar.gz: 4303c86d6b63621975ca4eaf2a9f3d2a28e5357eacfa0852e46d29a803a40869b5956c438825f2f81c9d8ab1671aae7c957e05aaee4345d078e168af0d8dfe85
data/.bmp.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: 0.8.1
2
+ version: 0.8.2
3
3
  files:
4
4
  README.md: Bmp v%.%.%
5
5
  lib/bump/version.rb: VERSION = "%.%.%"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bmp (0.8.1)
4
+ bmp (0.8.2)
5
5
  slop (~> 3.4.7)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
- # Bmp v0.8.1
1
+ # Bmp v0.8.2
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/bmp.png)](http://badge.fury.io/rb/bmp)
4
4
  [![Build Status](https://travis-ci.org/kt3k/bmp.png)](https://travis-ci.org/kt3k/bmp)
5
5
  [![Coverage Status](https://coveralls.io/repos/kt3k/bmp/badge.png)](https://coveralls.io/r/kt3k/bmp)
6
6
  [![Code Climate](https://codeclimate.com/github/kt3k/bmp.png)](https://codeclimate.com/github/kt3k/bmp)
7
7
 
8
+ [ ![Codeship Status for kt3k/bmp](https://www.codeship.io/projects/fc1c56c0-fa28-0131-0224-76431a64aeb5/status)](https://www.codeship.io/projects/29009)
9
+
8
10
  > Bump and update version numbers in a repository
9
11
 
10
12
  `bmp` command bumps and updates the version numbers in a repository according to the yaml file `.bmp.yml`. This is convenient if you have written many version numbers in your repository. This command helps you consistently update the version information in your repository.
@@ -4,7 +4,7 @@ module Bump
4
4
 
5
5
  class VersionFactory
6
6
 
7
- VERSION_REGEXP = /^(\d).(\d).(\d)(\S*)$/
7
+ VERSION_REGEXP = /^(\d+).(\d+).(\d+)(\S*)$/
8
8
 
9
9
  def self.fromString version_string
10
10
  match = VERSION_REGEXP.match version_string
data/lib/bump/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bump
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -4,4 +4,38 @@ require 'spec_helper'
4
4
 
5
5
  describe Bump::FileRewriteRule do
6
6
 
7
+ describe '#file' do
8
+
9
+ it 'returns file property' do
10
+ rule = Bump::FileRewriteRule.new 'abc', '%.%.%', '0.0.1', '1.0.0'
11
+
12
+ expect(rule.file).to eq 'abc'
13
+ end
14
+
15
+ end
16
+
17
+ describe '#beforePattern' do
18
+
19
+ it 'returns before_pattern property' do
20
+ rule = Bump::FileRewriteRule.new 'abc', 'v%.%.%', '0.0.1', '1.0.0'
21
+
22
+ rule.prepare
23
+
24
+ expect(rule.beforePattern).to eq 'v0.0.1'
25
+ end
26
+
27
+ end
28
+
29
+ describe '#afterPattern' do
30
+
31
+ it 'returns before_pattern property' do
32
+ rule = Bump::FileRewriteRule.new 'abc', 'v%.%.%', '0.0.1', '1.0.0'
33
+
34
+ rule.prepare
35
+
36
+ expect(rule.afterPattern).to eq 'v1.0.0'
37
+ end
38
+
39
+ end
40
+
7
41
  end
@@ -28,6 +28,12 @@ describe Bump::VersionFactory do
28
28
 
29
29
  expect(version.to_s).to eq "2.0.0rc1"
30
30
 
31
+ version = Bump::VersionFactory.fromString "1.2.100abc"
32
+
33
+ version.patchBump
34
+
35
+ expect(version.to_s).to eq "1.2.101"
36
+
31
37
  end
32
38
 
33
39
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiya Hinosawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-22 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.4.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.4.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Bump version numbers in a repository
@@ -60,9 +60,9 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .bmp.yml
64
- - .gitignore
65
- - .travis.yml
63
+ - ".bmp.yml"
64
+ - ".gitignore"
65
+ - ".travis.yml"
66
66
  - Gemfile
67
67
  - Gemfile.lock
68
68
  - LICENSE.txt
@@ -104,12 +104,12 @@ require_paths:
104
104
  - lib
105
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ! '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ! '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []