ios_android_toolbox 0.0.18 → 0.0.19

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.
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("-rc", "--candidate", "Increments RELEASE CANDIDATE number (default option)") do |v|
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
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- system "inc_version.rb -rc"
3
+ system "inc_version.rb -r "+ARGV.join(' ')
@@ -49,7 +49,20 @@ module IosAndroidToolbox
49
49
  end
50
50
 
51
51
  def components
52
- version.split('.')
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)
@@ -1,3 +1,3 @@
1
1
  module IosAndroidToolbox
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
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: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
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: 2012-09-25 00:00:00 Z
18
+ date: 2013-03-05 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: ""