appium_thor 2.0.2 → 2.0.5
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/appium_thor.gemspec +2 -3
- data/lib/appium_thor/helpers.rb +8 -8
- data/lib/appium_thor/version.rb +2 -2
- data/release_notes.md +16 -0
- metadata +5 -24
- data/docs/helpers_docs.md +0 -107
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee9d98dd9580c6e34de4fc00d790eac29e663ff06362bd521d4364c4b99e7cd8
|
4
|
+
data.tar.gz: cdea189bb448794d7def0de8f903a54f6c6bca4107dc8334f8c74cbd96b0fbc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50c376f8ddf59e25c5632e48a6ef0219b78b8acc11be0c4d77b0f35d17e4b10b3dc771d9bd8313c7ce9f79657f858ac34c6afff69b11f286523675ba0a279cfc
|
7
|
+
data.tar.gz: c4af242a5edfdd6a2505d14de5799732d2ef415a12a1aeec319b7095d9210598efdd1a3adfa5f2682c5395d7bbfbc71b553cf06628cd631022144c7b9147bbe3
|
data/appium_thor.gemspec
CHANGED
@@ -8,11 +8,10 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.date = Appium::Thor::DATE
|
9
9
|
s.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
10
10
|
s.description = s.summary = 'Thor tasks for Appium gems.'
|
11
|
-
s.authors =
|
11
|
+
s.authors = ['code@bootstraponline.com', 'Kazuaki Matsuo']
|
12
|
+
s.email = %w(code@bootstraponline.com fly.49.89.over@gmail.com)
|
12
13
|
s.homepage = 'https://github.com/appium/appium_thor'
|
13
14
|
s.require_paths = ['lib']
|
14
15
|
|
15
|
-
s.add_runtime_dependency 'redcarpet', '~> 3.1', '>= 3.1.2'
|
16
|
-
|
17
16
|
s.files = `git ls-files`.split "\n"
|
18
17
|
end
|
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.
|
@@ -56,10 +55,11 @@ module Appium
|
|
56
55
|
new_num = old_num.split('.')
|
57
56
|
new_num[-1] = new_num[-1].to_i + 1
|
58
57
|
|
59
|
-
|
58
|
+
case value
|
59
|
+
when :y
|
60
60
|
new_num[-1] = 0 # x.y.Z -> x.y.0
|
61
61
|
new_num[-2] = new_num[-2].to_i + 1 # x.Y -> x.Y+1
|
62
|
-
|
62
|
+
when :x
|
63
63
|
new_num[-1] = 0 # x.y.Z -> x.y.0
|
64
64
|
new_num[-2] = 0 # x.Y.z -> x.0.z
|
65
65
|
new_num[-3] = new_num[-3].to_i + 1
|
@@ -176,7 +176,7 @@ module Appium
|
|
176
176
|
|
177
177
|
# Commit then pull before pushing.
|
178
178
|
tag_name = "v#{version}"
|
179
|
-
raise 'Tag already exists!' if tag_exists tag_name
|
179
|
+
raise 'Tag already exists!' if tag_exists? tag_name
|
180
180
|
|
181
181
|
# Commit then pull before pushing.
|
182
182
|
sh "git commit --allow-empty -am 'Release #{version}'"
|
data/lib/appium_thor/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Thor
|
3
|
-
VERSION = '2.0.
|
4
|
-
DATE = '2024-04-
|
3
|
+
VERSION = '2.0.5' unless defined? ::Appium::Thor::VERSION
|
4
|
+
DATE = '2024-04-27' unless defined? ::Appium::Thor::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
#### v2.0.5 2024-04-27
|
2
|
+
|
3
|
+
- [31e6d74](https://github.com/appium/appium_thor/commit/31e6d7494e0402604e3ce8b10d426684e05c16a9) Release 2.0.5
|
4
|
+
- [bbf0b07](https://github.com/appium/appium_thor/commit/bbf0b07eecbb11e9d02e5b772ec3601f140f44f4) chore: cleanup further (#9)
|
5
|
+
|
6
|
+
|
7
|
+
#### v2.0.4 2024-04-26
|
8
|
+
|
9
|
+
- [990035d](https://github.com/appium/appium_thor/commit/990035d4a2c9dfab8757211b47d2cdf6bc5a1828) Release 2.0.4
|
10
|
+
|
11
|
+
|
12
|
+
#### v2.0.3 2024-04-26
|
13
|
+
|
14
|
+
- [aa8b6f5](https://github.com/appium/appium_thor/commit/aa8b6f51a53fd1791de11d42c4bacdf8bd25ccae) Release 2.0.3
|
15
|
+
|
16
|
+
|
1
17
|
#### v2.0.2 2024-04-26
|
2
18
|
|
3
19
|
- [8c63f32](https://github.com/appium/appium_thor/commit/8c63f32fdb00c07803de7e35d4b8d521c230092c) Release 2.0.2
|
metadata
CHANGED
@@ -1,38 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_thor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
|
+
- Kazuaki Matsuo
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: redcarpet
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.1'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 3.1.2
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.1'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 3.1.2
|
12
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
33
14
|
description: Thor tasks for Appium gems.
|
34
15
|
email:
|
35
16
|
- code@bootstraponline.com
|
17
|
+
- fly.49.89.over@gmail.com
|
36
18
|
executables: []
|
37
19
|
extensions: []
|
38
20
|
extra_rdoc_files: []
|
@@ -43,7 +25,6 @@ files:
|
|
43
25
|
- README.md
|
44
26
|
- Thorfile
|
45
27
|
- appium_thor.gemspec
|
46
|
-
- docs/helpers_docs.md
|
47
28
|
- lib/appium_thor.rb
|
48
29
|
- lib/appium_thor/commands/commands.rb
|
49
30
|
- lib/appium_thor/commands/init.rb
|
data/docs/helpers_docs.md
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
##### [_build_gem](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L6) common
|
2
|
-
|
3
|
-
> def _build_gem
|
4
|
-
|
5
|
-
Sets the permissions on the gem credentials
|
6
|
-
Runs gem build gemspec
|
7
|
-
|
8
|
-
--
|
9
|
-
|
10
|
-
##### [tag_exists](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L12) common
|
11
|
-
|
12
|
-
> def tag_exists(tag_name)
|
13
|
-
|
14
|
-
Returns true if the tag exists on the master branch.
|
15
|
-
|
16
|
-
--
|
17
|
-
|
18
|
-
##### [sh](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L18) common
|
19
|
-
|
20
|
-
> def sh(command)
|
21
|
-
|
22
|
-
Runs command. Raises an exception if the command doesn't execute successfully.
|
23
|
-
|
24
|
-
--
|
25
|
-
|
26
|
-
##### [version_rgx](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L30) common
|
27
|
-
|
28
|
-
> def version_rgx
|
29
|
-
|
30
|
-
Used to parse the version number from version_file
|
31
|
-
|
32
|
-
--
|
33
|
-
|
34
|
-
##### [version](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L35) common
|
35
|
-
|
36
|
-
> def version
|
37
|
-
|
38
|
-
Returns the version number from version_file as a string
|
39
|
-
|
40
|
-
--
|
41
|
-
|
42
|
-
##### [_bump](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L46) common
|
43
|
-
|
44
|
-
> def _bump(value)
|
45
|
-
|
46
|
-
Updates the date and version in version_file.
|
47
|
-
Prints the new version and date to the console.
|
48
|
-
The date is not printed if it hasn't changed.
|
49
|
-
|
50
|
-
x.y.z
|
51
|
-
|
52
|
-
__Parameters:__
|
53
|
-
|
54
|
-
[symbol] value - value is either :x, :y, or :z. Default is z.
|
55
|
-
|
56
|
-
--
|
57
|
-
|
58
|
-
##### [update_release_notes](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L86) common
|
59
|
-
|
60
|
-
> def update_release_notes
|
61
|
-
|
62
|
-
Creates release_notes.md based on changes between tags.
|
63
|
-
Note that the first tag won't contain notes.
|
64
|
-
|
65
|
-
--
|
66
|
-
|
67
|
-
##### [_install](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L150) common
|
68
|
-
|
69
|
-
> def _install
|
70
|
-
|
71
|
-
Installs the local gem. It's fast due to the flags
|
72
|
-
|
73
|
-
--no-rdoc = skip rdoc
|
74
|
-
--no-ri = skip ri
|
75
|
-
--local = only install from the local disk
|
76
|
-
|
77
|
-
--
|
78
|
-
|
79
|
-
##### [_uninstall](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L157) common
|
80
|
-
|
81
|
-
> def _uninstall
|
82
|
-
|
83
|
-
Uninstalls all versions of the gem
|
84
|
-
|
85
|
-
--
|
86
|
-
|
87
|
-
##### [_publish](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L168) common
|
88
|
-
|
89
|
-
> def _publish
|
90
|
-
|
91
|
-
Publishes the master branch to github
|
92
|
-
Creates a version tag
|
93
|
-
Updates release notes and documentation
|
94
|
-
Builds the gem
|
95
|
-
Publishes the gem to rubygems
|
96
|
-
|
97
|
-
--
|
98
|
-
|
99
|
-
##### [remove_non_ascii_from_cwd](https://github.com/appium/appium_thor/blob/5c7025a14e9a6dba1ff0f69b733983d965e9c2ee/lib/appium_thor/helpers.rb#L200) common
|
100
|
-
|
101
|
-
> def remove_non_ascii_from_cwd
|
102
|
-
|
103
|
-
Remove non-ascii bytes from all rb files in the current working directory.
|
104
|
-
Used to purge byte order marks that mess up YARD
|
105
|
-
|
106
|
-
--
|
107
|
-
|