appium_thor 2.0.1 → 2.0.4

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
  SHA256:
3
- metadata.gz: f010047f801d945595ef7c30962f5786504a366f027dd6a400b529ccc75da189
4
- data.tar.gz: 1a18da01653a6231d2509ea8fcbe9b4c2be029dad9a5c56d2c59a35b32e76bf6
3
+ metadata.gz: 27739eb115c90c0ff6a0b78d317710251fbd71b85b9f78ac7f23cf86bcf82248
4
+ data.tar.gz: 1fd8fa1e85e8c3260276bf37c84798dd9c95fba3802d797790152b045041db91
5
5
  SHA512:
6
- metadata.gz: 796ad8085c6abf3b5510f142ceababfd613ad0ffbc1e8f11aa606978cbdaac755105500f1635c8afae5a8a5560eff16f4420aa2a1b36a816d7fb80b6bb7f0935
7
- data.tar.gz: 3f454f49e0e74a0281ef997edc7a6758a62d74c621023779646043fc25be6f11e6a60d5c0734880f2a42e6f00bf2777f6a195e819bc348819a0a83a529ab789c
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.1' 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,18 @@
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
+
11
+ #### v2.0.2 2024-04-26
12
+
13
+ - [8c63f32](https://github.com/appium/appium_thor/commit/8c63f32fdb00c07803de7e35d4b8d521c230092c) Release 2.0.2
14
+
15
+
1
16
  #### v2.0.1 2024-04-26
2
17
 
3
18
  - [12d7e59](https://github.com/appium/appium_thor/commit/12d7e59aa1cb41dcb0731e94bb183daead92c9ba) Release 2.0.1
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.1
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com