xcodebump 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71d6211892fcba7ef52ead72a9035681f8cb9242
4
- data.tar.gz: 65d9a325467bc4aadbeb7c20ee8515538fbe5f61
3
+ metadata.gz: 349ab117a826d7f07061ddca9e020ffeb98fbea0
4
+ data.tar.gz: aa7606ae6bb98d25877c20c8c3e445fe3fb3bfdc
5
5
  SHA512:
6
- metadata.gz: 6ffef58ed282f3e7744e2a86cfffa8e2a5ade42b07edfb667fff69edd11c2065fb0cdf0beee90af35c97ec744277dd9280a62fab3adda6070bed3892cd753b8f
7
- data.tar.gz: 234d4f3721dd0ac8573d4632f5abd3ddaa22e3780063d8be91063f536c3172a6dfa3ea4484fba4d3c1882f6f1c91ac12ed04a3df967e64abe4898c6196ccdab6
6
+ metadata.gz: 8c747511670bf0e9e725e67505d7e1862fb87f328ca862f2bb00058675baf11f6858be5812c63a1261db37de5b615bc3473359a578ef8a1985742dd2439c5431
7
+ data.tar.gz: d151e778decef49ff6ff860e4822d70255277d10aa085a31020879b4bf4da2b62b9d75f701889756dbf8af52bc58418d1f6e2a6ce2ebca5c15efdb8c178248e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcodebump (0.0.3)
4
+ xcodebump (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -19,6 +19,11 @@ To bump a version number, you want to pass in one of the three flags in the pare
19
19
  * `-m` will bump the Minor number, or the 2 above.
20
20
  * `-p` will bump the Patch number, or the 3 above.
21
21
 
22
+ Additionally, you can pass in `-g` to commit the bump, add a git tag for the newer version number and push both. This looks like so, if you are bumping to a new patch number:
23
+
24
+ ```bash
25
+ $ xcodebump bump -p -g
26
+ ```
22
27
 
23
28
  ## Contributing
24
29
 
@@ -69,9 +69,16 @@ module Xcodebump
69
69
  while v_components.size < 3
70
70
  v_components << '0'
71
71
  end
72
- v_components[0] = (v_components[0].to_i + 1).to_s if release
73
- v_components[1] = (v_components[1].to_i + 1).to_s if minor
74
- v_components[2] = (v_components[2].to_i + 1).to_s if patch
72
+ if release
73
+ v_components[0] = (v_components[0].to_i + 1).to_s
74
+ v_components[1] = '0'
75
+ v_components[2] = '0'
76
+ elsif minor
77
+ v_components[1] = (v_components[1].to_i + 1).to_s
78
+ v_components[2] = '0'
79
+ elsif patch
80
+ v_components[2] = (v_components[2].to_i + 1).to_s if patch
81
+ end
75
82
  return v_components.join('.')
76
83
  end
77
84
  end
@@ -1,3 +1,3 @@
1
1
  module Xcodebump
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodebump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bennyguitar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler