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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -0
- data/lib/xcodebump/plist.rb +10 -3
- data/lib/xcodebump/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 349ab117a826d7f07061ddca9e020ffeb98fbea0
|
4
|
+
data.tar.gz: aa7606ae6bb98d25877c20c8c3e445fe3fb3bfdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c747511670bf0e9e725e67505d7e1862fb87f328ca862f2bb00058675baf11f6858be5812c63a1261db37de5b615bc3473359a578ef8a1985742dd2439c5431
|
7
|
+
data.tar.gz: d151e778decef49ff6ff860e4822d70255277d10aa085a31020879b4bf4da2b62b9d75f701889756dbf8af52bc58418d1f6e2a6ce2ebca5c15efdb8c178248e8
|
data/Gemfile.lock
CHANGED
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
|
|
data/lib/xcodebump/plist.rb
CHANGED
@@ -69,9 +69,16 @@ module Xcodebump
|
|
69
69
|
while v_components.size < 3
|
70
70
|
v_components << '0'
|
71
71
|
end
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|
data/lib/xcodebump/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|