ios_android_toolbox 0.0.44 → 0.0.45

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: 08d66b977e9505d21cd53c198998b313bf927593
4
- data.tar.gz: d0036b84eace57f572c038b8777425d0b63512d6
3
+ metadata.gz: 946278222ffc7a54e12b70ea9e1aa910b6ed1c41
4
+ data.tar.gz: e60e4ad430deaa3d4514ba293242fed935258091
5
5
  SHA512:
6
- metadata.gz: d4e5bff895d6f62fba84c7f720138c43d31117d6af52e16b91b3df14d8cf469e6692516a5a16b4df152b558e9a4fada6f83c2fbc2d6548ead000cf723a7c27e7
7
- data.tar.gz: c112bbe15ba002489ad60c5631193626d591f1400490038d21405002a4993fe2059d0344170e4a8d22d6830a442f1e1397000d4295b755b8a4dd6e0ab7646cff
6
+ metadata.gz: 53f7a91854453c11f337983d2dadc842b78a11b4a9a6ed3be5b7878c48cfedb761da2dc162afdb80f447f39c7d03edca3ac07dba6ca126a3bef9379591ed182b
7
+ data.tar.gz: a6cabd20c5bf3c1dff3b1b5e11426c31d274e9adf25ab08561a3b38750f7e4adf7eac5c9129cfc53c8d21733ac00a537bb0e51681409dac10f7580158a0fd95a
@@ -16,7 +16,7 @@ raise "Please specify the version file" if version_file.nil?
16
16
  ctrl = version_controller_for_version_file version_file
17
17
 
18
18
  if topic.nil?
19
- topic = ctrl.next_version(2).gsub(/\-.+$/,'').gsub(/\.0$/,'')
19
+ topic = ctrl.next_version!(2).gsub(/\-.+$/,'').gsub(/\.0$/,'')
20
20
  end
21
21
 
22
22
  topic.gsub!(/[\. \t\n]/, '_') if topic
@@ -39,7 +39,6 @@ g.branch(topic_branch).delete if g.branches[topic_branch]
39
39
  g.branch(topic_branch).checkout
40
40
 
41
41
  # Update the version number and commit
42
- ctrl.next_version!
43
42
  ctrl.write_to_output_file version_file
44
43
 
45
44
  # Commit the result
@@ -97,9 +97,10 @@ module IosAndroidToolbox
97
97
 
98
98
  def next_version!(inc_idx = @inc_idx)
99
99
  if inc_idx < @inc_idx
100
- @dict[BUNDLE_VERSION_KEY] = next_version(inc_idx)
100
+ @dict[BUNDLE_VERSION_KEY] = next_version(inc_idx).gsub(/\-.+$/,'')
101
+ @dict[BUILD_VERSION_KEY] = 0
101
102
  else
102
- @dict[BUILD_VERSION_KEY] = (build_number.to_i + 1).to_s
103
+ @dict[BUILD_VERSION_KEY] = (build_number.to_i + 1).to_s
103
104
  end
104
105
 
105
106
  version
@@ -1,3 +1,3 @@
1
1
  module IosAndroidToolbox
2
- VERSION = "0.0.44"
2
+ VERSION = "0.0.45"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_android_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Sales
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec