ios_android_toolbox 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/inc_version.rb +1 -1
- data/bin/inc_version_rc.rb +1 -1
- data/lib/ios_android_toolbox/base.rb +15 -2
- data/lib/ios_android_toolbox/version.rb +1 -1
- metadata +4 -4
data/bin/inc_version.rb
CHANGED
@@ -27,7 +27,7 @@ OptionParser.new do |opts|
|
|
27
27
|
$inc_idx = 2
|
28
28
|
$max_comps = 3
|
29
29
|
end
|
30
|
-
opts.on("-
|
30
|
+
opts.on("-r", "--candidate", "Increments RELEASE CANDIDATE number (default option)") do |v|
|
31
31
|
$inc_idx = 3
|
32
32
|
$max_comps = 4
|
33
33
|
end
|
data/bin/inc_version_rc.rb
CHANGED
@@ -49,7 +49,20 @@ module IosAndroidToolbox
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def components
|
52
|
-
version
|
52
|
+
v = version
|
53
|
+
if version.match /([0-9\.]+)([a-zA-Z0-9\-]*)$/
|
54
|
+
v = $1
|
55
|
+
suffix = $2
|
56
|
+
end
|
57
|
+
v.split('.')
|
58
|
+
end
|
59
|
+
|
60
|
+
def suffix
|
61
|
+
suffix = ''
|
62
|
+
if version.match /([0-9\.]+)([a-zA-Z0-9\-]*)$/
|
63
|
+
suffix = $2
|
64
|
+
end
|
65
|
+
suffix
|
53
66
|
end
|
54
67
|
|
55
68
|
def next_version(inc_idx = nil)
|
@@ -83,7 +96,7 @@ module IosAndroidToolbox
|
|
83
96
|
|
84
97
|
comps = comps.slice(0,max_comps)
|
85
98
|
|
86
|
-
comps.join
|
99
|
+
comps.join(".") + suffix
|
87
100
|
end
|
88
101
|
|
89
102
|
def next_version!(inc_idx = nil)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ios_android_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Igor Sales
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-03-05 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: ""
|