appium_thor 0.0.7 → 1.0.0

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
  SHA1:
3
- metadata.gz: 50b6ffdbb5b811a315cb71b3cf7b50d081e40c31
4
- data.tar.gz: e583839ebde160f7c544e58f72d9d0349512f015
3
+ metadata.gz: 71626376ee476ef30ad9220b348fc2b47a08e52c
4
+ data.tar.gz: afc422b49625d74afe75f321588c8ee39f1340b1
5
5
  SHA512:
6
- metadata.gz: 50717847face8f220298419a29642488ab6420cd336f36c4df7c06485c77c054f0b98d803a065ceecb3896ce1483b7e5dbc03a3b14ff17149d41ce802ca8cbc6
7
- data.tar.gz: 872aa18a67538845b4eacfcafa8ed7a6f7845494057b5017f46e4c37d46f664493c4bf07ebd217d1fc7e02be13abe45a11ed858c933520a94492579b529cf3c1
6
+ metadata.gz: 1f4119294b9f24c4fa3dcfb694698464924d8af3d67db31416ea22485a65917579b59e5b86aa5fdca0e90748a0362a74a5d9d14db78378e1b5ffb217eaaf75ba
7
+ data.tar.gz: 67f654dcee47477c6fe64ce04c7d9bb7c3f791209e7c86e55d94b8a9cfd9e6f3feb4bda32b97f620f07fac1aca37883c710c21b6afeec17f781bb12fc59abdac
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # appium_thor [![Gem Version](https://badge.fury.io/rb/appium_thor.svg)](http://badge.fury.io/rb/appium_thor)[![Dependency Status](https://gemnasium.com/appium/appium_thor.svg)](https://gemnasium.com/appium/appium_thor)
1
+ # appium_thor [![Gem Version](https://badge.fury.io/rb/appium_thor.svg)](https://rubygems.org/gems/appium_thor)[![Dependency Status](https://gemnasium.com/appium/appium_thor.svg)](https://gemnasium.com/appium/appium_thor)
2
2
 
3
3
 
4
4
  Appium Thor helpers for appium's gems (appium_lib, appium_capybara).
@@ -17,6 +17,18 @@ Appium::Thor::Config.set do
17
17
  run 'docs/helpers_docs.md', globs('/lib/appium_thor/helpers.rb')
18
18
  end
19
19
  end
20
+
21
+ # Must use '::' otherwise Default will point to Thor::Sandbox::Default
22
+ # Debug by calling Thor::Base.subclass_files via Pry
23
+ #
24
+ # https://github.com/erikhuda/thor/issues/484
25
+ #
26
+ class ::Default < Thor
27
+ desc 'spec', 'Run RSpec tests'
28
+ def spec
29
+ exec 'rspec spec'
30
+ end
31
+ end
20
32
  ```
21
33
 
22
34
  # Defaults
@@ -42,7 +54,7 @@ thor bump # Bump the z version number and update the date.
42
54
  thor bumpx # Bump the x version number, set y & z to zero, update the date.
43
55
  thor bumpy # Bump the y version number, set z to zero, update the date.
44
56
  thor byte # Remove non-ascii bytes from all *.rb files in the current dir
45
- thor docs # Update android and iOS docs
57
+ thor docs # Update docs
46
58
  thor gem_install # Install gem
47
59
  thor gem_uninstall # Uninstall gem
48
60
  thor info # prints config info for this gem
data/docs/helpers_docs.md CHANGED
@@ -1,4 +1,4 @@
1
- ##### [_build_gem](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L6)
1
+ ##### [_build_gem](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L6)
2
2
 
3
3
  > def _build_gem
4
4
 
@@ -7,7 +7,7 @@ Runs gem build gemspec
7
7
 
8
8
  --
9
9
 
10
- ##### [tag_exists](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L12)
10
+ ##### [tag_exists](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L12)
11
11
 
12
12
  > def tag_exists tag_name
13
13
 
@@ -15,7 +15,7 @@ Returns true if the tag exists on the master branch.
15
15
 
16
16
  --
17
17
 
18
- ##### [sh](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L18)
18
+ ##### [sh](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L18)
19
19
 
20
20
  > def sh command
21
21
 
@@ -23,7 +23,7 @@ Runs command. Raises an exception if the command doesn't execute successfully.
23
23
 
24
24
  --
25
25
 
26
- ##### [version_rgx](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L30)
26
+ ##### [version_rgx](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L30)
27
27
 
28
28
  > def version_rgx
29
29
 
@@ -31,7 +31,7 @@ Used to parse the version number from version_file
31
31
 
32
32
  --
33
33
 
34
- ##### [version](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L35)
34
+ ##### [version](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L35)
35
35
 
36
36
  > def version
37
37
 
@@ -39,7 +39,7 @@ Returns the version number from version_file as a string
39
39
 
40
40
  --
41
41
 
42
- ##### [_bump](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L46)
42
+ ##### [_bump](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L46)
43
43
 
44
44
  > def _bump value
45
45
 
@@ -55,7 +55,7 @@ __Parameters:__
55
55
 
56
56
  --
57
57
 
58
- ##### [update_release_notes](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L86)
58
+ ##### [update_release_notes](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L86)
59
59
 
60
60
  > def update_release_notes
61
61
 
@@ -64,7 +64,7 @@ Note that the first tag won't contain notes.
64
64
 
65
65
  --
66
66
 
67
- ##### [_install](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L141)
67
+ ##### [_install](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L144)
68
68
 
69
69
  > def _install
70
70
 
@@ -76,7 +76,7 @@ Installs the local gem. It's fast due to the flags
76
76
 
77
77
  --
78
78
 
79
- ##### [_uninstall](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L148)
79
+ ##### [_uninstall](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L151)
80
80
 
81
81
  > def _uninstall
82
82
 
@@ -84,7 +84,7 @@ Uninstalls all versions of the gem
84
84
 
85
85
  --
86
86
 
87
- ##### [_publish](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L159)
87
+ ##### [_publish](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L162)
88
88
 
89
89
  > def _publish
90
90
 
@@ -96,7 +96,7 @@ Publishes the gem to rubygems
96
96
 
97
97
  --
98
98
 
99
- ##### [remove_non_ascii_from_cwd](https://github.com/appium/appium_thor/blob/e36ab29971eb4ccc0b5b4527f23dbb34bf590107/lib/appium_thor/helpers.rb#L188)
99
+ ##### [remove_non_ascii_from_cwd](https://github.com/appium/appium_thor/blob/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8/lib/appium_thor/helpers.rb#L191)
100
100
 
101
101
  > def remove_non_ascii_from_cwd
102
102
 
@@ -85,8 +85,11 @@ module Appium
85
85
  # Note that the first tag won't contain notes.
86
86
  def update_release_notes
87
87
  tag_sort = ->(tag1, tag2) do
88
- tag1_numbers = tag1.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map! { |n| n.to_i }
89
- tag2_numbers = tag2.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map! { |n| n.to_i }
88
+ tag1_numbers = tag1.match(/\.?v(\d+\.\d+\.\d+)$/)
89
+ # avoid indexing into a nil match. nil[1]
90
+ tag1_numbers = tag1_numbers[1].split('.').map! { |n| n.to_i } if tag1_numbers
91
+ tag2_numbers = tag2.match(/\.?v(\d+\.\d+\.\d+)$/)
92
+ tag2_numbers = tag2_numbers[1].split('.').map! { |n| n.to_i } if tag2_numbers
90
93
  tag1_numbers <=> tag2_numbers
91
94
  end
92
95
 
@@ -199,4 +202,4 @@ module Appium
199
202
  end
200
203
  end # module Helpers
201
204
  end # module Thor
202
- end # module Appium
205
+ end # module Appium
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Thor
3
- VERSION = '0.0.7' unless defined? ::Appium::Thor::VERSION
4
- DATE = '2014-08-04' unless defined? ::Appium::Thor::DATE
3
+ VERSION = '1.0.0' unless defined? ::Appium::Thor::VERSION
4
+ DATE = '2015-06-19' unless defined? ::Appium::Thor::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,12 @@
1
+ #### v1.0.0 2015-06-19
2
+
3
+ - [4938a6a](https://github.com/appium/appium_thor/commit/4938a6adcc98a5ebbca28b96280c66bce4ee0ff8) Release 1.0.0
4
+ - [9d57bf8](https://github.com/appium/appium_thor/commit/9d57bf82f4ed60b07108ff8300eb9d51ce05474a) Fix undefined method '[]' for nil:NilClass
5
+ - [dd63db2](https://github.com/appium/appium_thor/commit/dd63db2c1cda0bd585756b852d717260ac6ded70) Use https RubyGems link
6
+ - [dfeacf5](https://github.com/appium/appium_thor/commit/dfeacf5c16d0db32130d77b809b3c2f966c74551) Document adding extra tasks (ex: spec task)
7
+ - [dd9da91](https://github.com/appium/appium_thor/commit/dd9da91377d1bfc72de5dae167444f9dea18d150) Update README.md
8
+
9
+
1
10
  #### v0.0.7 2014-08-04
2
11
 
3
12
  - [e36ab29](https://github.com/appium/appium_thor/commit/e36ab29971eb4ccc0b5b4527f23dbb34bf590107) Release 0.0.7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.6
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Thor tasks for Appium gems