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 +4 -4
- data/lib/appium_thor/helpers.rb +5 -6
- data/lib/appium_thor/version.rb +1 -1
- data/release_notes.md +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27739eb115c90c0ff6a0b78d317710251fbd71b85b9f78ac7f23cf86bcf82248
|
4
|
+
data.tar.gz: 1fd8fa1e85e8c3260276bf37c84798dd9c95fba3802d797790152b045041db91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165b1043e1feb87a16e99987a7025c1192d775cb9857dd5d9923bb802bcd5909cad8b954575ec51570af3e2d7aa3082bbb1dad9be79e7b55cb5807c88106edb1
|
7
|
+
data.tar.gz: fc710717437c2f82e9be0571c38aed62dd33a0c9419e1000e540347c033bb853b640ff2cd5731c52eb7d8f424f3fc1fd527e05a38c7e9447f8cf8802ab1d925f
|
data/lib/appium_thor/helpers.rb
CHANGED
@@ -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
|
12
|
-
cmd = %Q(git
|
13
|
-
|
14
|
-
|
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}'"
|
data/lib/appium_thor/version.rb
CHANGED
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
|