fastlane-plugin-rome 0.3.4 → 0.3.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
  SHA256:
3
- metadata.gz: 9da7ef20dae2bf83a284d2fe616ef8484c5c49a80c17e2b4c65e6f96abcb2e71
4
- data.tar.gz: c834d7a931833ffcf2a14065c83e03b9bceacfede1581d9aac9cfdaab385cd07
3
+ metadata.gz: 8359b925a29f887cc062df11e63fbe79498e992a42e262005f3a1b9d19fec100
4
+ data.tar.gz: 42d1dc1e6499d934606d53fe3d8307b079d7b23e9b12f8e9c59faeab229ba2ef
5
5
  SHA512:
6
- metadata.gz: ed77ca48c8850523f68f3210fc4bce3ccbbb73fbedc508274d03d974f14d7c573e5451aaa3563e2b14c63451d956841af440436eb6b167745d33c49520494db1
7
- data.tar.gz: f33a186f0fd07b275fe793b436ec840154fafe141911541212a7e5435e09b77c51290394972dd8b864c1abe67aca1d6a1f2f4d6a6b08663cfb500d2ff9e3e526
6
+ metadata.gz: 99dc9ea1381d4b8ddcdcccf42c410fc540472c645fac06e5512f599dfecc361b0a048146a57e603ad7aad3999747859c4bf8076d2ab73e0325fd2b2a59be2a19
7
+ data.tar.gz: 83bcfa0d8bd507b166e31fe3bf3f69f36eea566aad4978da282bc81ed98ef27a182bec5eb65121b2178e0d4f4bfd497c03f2d4df6cd7b768a848261ea45ebd88
@@ -38,12 +38,22 @@ module Fastlane
38
38
  version = Actions.sh("#{binary_path} --version") # i.e. 0.12.0.31 - Romam uno die non fuisse conditam.
39
39
  version_number = version.split(' - ')[0]
40
40
 
41
- minimum_version_parts = minimum_version.split('.')
42
- version_parts = version_number.split('.')
43
- for i in 0..version_parts.length do
44
- part = version_parts[i]
45
- min_part = minimum_version_parts[i]
46
- if part.to_i < min_part.to_i
41
+ return version_is_greater_or_equal(version_number, minimum_version)
42
+ end
43
+
44
+ def self.version_is_greater_or_equal(lhs_version, rhs_version)
45
+
46
+ lhs_parts = lhs_version.split('.')
47
+ rhs_parts = rhs_version.split('.')
48
+
49
+ for i in 0..lhs_parts.length do
50
+ part = lhs_parts[i] || "0"
51
+ min_part = rhs_parts[i] || "0"
52
+
53
+ if part.to_i > min_part.to_i
54
+ return true
55
+ elsif part.to_i == min_part.to_i
56
+ else part.to_i < min_part.to_i
47
57
  return false
48
58
  end
49
59
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Rome
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - François Benaiteau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-09 00:00:00.000000000 Z
12
+ date: 2018-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry