podspec_bump 0.1.1 → 0.1.3

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: 40639b1634608a6f5550ab2f87bc8731190cb87f
4
- data.tar.gz: 299450da2da9ba016f8c7dbcfc3d8a919e1d61ad
3
+ metadata.gz: 0ddd08634aead59160eb845ef4b3ba0c2ded5fe3
4
+ data.tar.gz: 4fae293f92a01f30be0d245d54d1e76e57944c89
5
5
  SHA512:
6
- metadata.gz: d01374c06b6e585ec806b319b43e76d60341082c159f0ca04c519809dca6508007c7ba81e70a9561a75f21eda701ec9599126873fa70c06feab0fde8c84fe614
7
- data.tar.gz: 85a0c5b9e9527a0c51afd22e10fded09b4f1c3e4f32c78ed4d6e803d8ae9d6cbb61b38d0661554cfca41e6b7bcd72d1ce31263b17e6e45db30556c539eff129e
6
+ metadata.gz: 142765082d635883ad0a6d4d4ea4a561c07920d2691e3710c9f5c6d0d9a244c7c705b72095a86f5d5c3a03ec1a97db7c6d588260b094ab3f0e8946570cb472fe
7
+ data.tar.gz: 0166e3befe3e408cb2e19ebdb6de2fd7d9a0c0f702f289d2ebb69a64af05751dde9a9d517c5ef71e214f015d2fb16757b3f3b91dc3735245fcb07511915f5b2c
data/README.md CHANGED
@@ -36,6 +36,14 @@ Bump (major, minor, patch, pre)
36
36
  podspec_bump patch
37
37
  ```
38
38
 
39
+ ### Options
40
+
41
+ ### --no-commit
42
+
43
+ If you don't want to make a commit after bumping, add the `--no-commit` option.
44
+
45
+ podspec_bump patch --no-commit
46
+
39
47
  ## Contributing
40
48
 
41
49
  1. Fork it ( https://github.com/nakajijapan/podspec_bump/fork )
data/bin/podspec_bump CHANGED
@@ -12,6 +12,7 @@ Usage:
12
12
  podspec_bump minor # increase minor version of your podspec (1.X.0)
13
13
  podspec_bump major # increase major version of your podspec (X.0.0)
14
14
  BANNER
15
+ opts.on("--no-commit", "Do not make a commit.") { options[:commit] = false }
15
16
  opts.on("-h", "--help","Show this.") { puts opts; exit }
16
17
  end.parse!
17
18
 
@@ -1,3 +1,3 @@
1
1
  module PodspecBump
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/podspec_bump.rb CHANGED
@@ -9,7 +9,15 @@ module PodspecBump
9
9
  OPTIONS = BUMPS | ["current"]
10
10
  VERSION_REGEX = /(\d+\.\d+\.\d+)/
11
11
 
12
+ def self.defaults
13
+ {
14
+ :commit => true
15
+ }
16
+ end
17
+
12
18
  def self.run(bump, options={})
19
+ options = defaults.merge(options)
20
+
13
21
  case bump
14
22
  when *BUMPS
15
23
  bump_part(bump, options)
@@ -28,7 +36,7 @@ module PodspecBump
28
36
 
29
37
  def self.bump(current, next_version, options)
30
38
  replace(current, next_version)
31
- commit(next_version, options)
39
+ commit(next_version, options) if options[:commit]
32
40
  ["Bump version #{current} to #{next_version}", 0]
33
41
  end
34
42
 
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podspec_bump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nakajijapan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-23 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
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: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
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: A command line tools to bump podspec version for CocoaPods. Inspired
@@ -61,9 +61,9 @@ executables:
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
65
- - .rspec
66
- - .travis.yml
64
+ - ".gitignore"
65
+ - ".rspec"
66
+ - ".travis.yml"
67
67
  - Gemfile
68
68
  - LICENSE.txt
69
69
  - README.md
@@ -84,17 +84,17 @@ require_paths:
84
84
  - lib
85
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - '>='
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.0.14.1
97
+ rubygems_version: 2.6.11
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: A command line tools to bump podspec version for CocoaPods.