appium_thor 2.0.2 → 2.0.4

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: 147df63f8baa610f11489884d07570f6e77fa51bd34ea423c599e12b7756d2a8
4
- data.tar.gz: 4fbcd354fa45eaef8bada9eadd188925068c038c0058b0407867dad9a19afe24
3
+ metadata.gz: 27739eb115c90c0ff6a0b78d317710251fbd71b85b9f78ac7f23cf86bcf82248
4
+ data.tar.gz: 1fd8fa1e85e8c3260276bf37c84798dd9c95fba3802d797790152b045041db91
5
5
  SHA512:
6
- metadata.gz: 49db8c3c81366c78d5d4cf152a42bf14f059fcac8c56118009d249ad26d251d04a46a47b768732c7dd80663119b0a4e27f171a6b0f7ee9dc3885121be4331d24
7
- data.tar.gz: f3bfe90202a95485d33b72f3bb4784b3d94890b09d6b66652d95b895981981bfeb257b420142baabd251a1c63391f57a519a3008152dbe65a998962b3e4ad337
6
+ metadata.gz: 165b1043e1feb87a16e99987a7025c1192d775cb9857dd5d9923bb802bcd5909cad8b954575ec51570af3e2d7aa3082bbb1dad9be79e7b55cb5807c88106edb1
7
+ data.tar.gz: fc710717437c2f82e9be0571c38aed62dd33a0c9419e1000e540347c033bb853b640ff2cd5731c52eb7d8f424f3fc1fd527e05a38c7e9447f8cf8802ab1d925f
@@ -8,11 +8,10 @@ module Appium
8
8
  end
9
9
 
10
10
  # Returns true if the tag exists on the master branch.
11
- def tag_exists(tag_name)
12
- cmd = %Q(git branch -a --contains "#{tag_name}")
13
- stdout, status = Open3.capture2(cmd)
14
- stdout.include? "* #{branch}"
15
-
11
+ def tag_exists? tag_name
12
+ cmd = %Q(git rev-parse --verify refs/tags/"#{tag_name}")
13
+ _, _, status = Open3.capture3(cmd)
14
+ status.success?
16
15
  end
17
16
 
18
17
  # Runs command. Raises an exception if the command doesn't execute successfully.
@@ -176,7 +175,7 @@ module Appium
176
175
 
177
176
  # Commit then pull before pushing.
178
177
  tag_name = "v#{version}"
179
- raise 'Tag already exists!' if tag_exists tag_name
178
+ raise 'Tag already exists!' if tag_exists? tag_name
180
179
 
181
180
  # Commit then pull before pushing.
182
181
  sh "git commit --allow-empty -am 'Release #{version}'"
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Thor
3
- VERSION = '2.0.2' unless defined? ::Appium::Thor::VERSION
3
+ VERSION = '2.0.4' unless defined? ::Appium::Thor::VERSION
4
4
  DATE = '2024-04-26' unless defined? ::Appium::Thor::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,13 @@
1
+ #### v2.0.4 2024-04-26
2
+
3
+ - [990035d](https://github.com/appium/appium_thor/commit/990035d4a2c9dfab8757211b47d2cdf6bc5a1828) Release 2.0.4
4
+
5
+
6
+ #### v2.0.3 2024-04-26
7
+
8
+ - [aa8b6f5](https://github.com/appium/appium_thor/commit/aa8b6f51a53fd1791de11d42c4bacdf8bd25ccae) Release 2.0.3
9
+
10
+
1
11
  #### v2.0.2 2024-04-26
2
12
 
3
13
  - [8c63f32](https://github.com/appium/appium_thor/commit/8c63f32fdb00c07803de7e35d4b8d521c230092c) Release 2.0.2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com