watir-ng 2.0.0 → 2.1.0
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/.travis.yml +1 -2
- data/CHANGELOG.md +6 -0
- data/README.md +5 -4
- data/lib/watir-ng.rb +2 -2
- data/lib/watir-ng/version.rb +1 -1
- data/watir-ng.gemspec +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 877b1ed01ac27b4530e05516b6a090a1f4fe5dd2
|
|
4
|
+
data.tar.gz: 14fdf6706d49149ef0e054d36a8f181a73a03180
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43edbf67582c58833d793f7c13c697d49f871ec169c928a93560fe1bff54f2307d66616eb7b46e483ac941c881842cc00d8d90f65793e10b2553afa03ff9df52
|
|
7
|
+
data.tar.gz: 4e922bd3010d4269da84d1148efbc86df55c338136699252868949466aeba65931a791eb23796e91d624c4fc367fed2818d58fe9c3796e4ede9e55394249bb19
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.1.0 (Feb 20 2017)
|
|
4
|
+
- Use `watir` version 6.0
|
|
5
|
+
- Remove calls for deprecated `require 'watir-webdriver'`
|
|
6
|
+
- **NOTE**: Ruby 1.9.3 is not longer compatible as of this version
|
|
7
|
+
- Thanks Ian Hamilton (@RubyGemSTL) for the contribution
|
|
8
|
+
|
|
3
9
|
## v2.0.0 (Feb 24 2016)
|
|
4
10
|
- Patch browser objects with `WatirNg.patch!`
|
|
5
11
|
- Add custom directive identifiers with `WatirNg.register`
|
data/README.md
CHANGED
|
@@ -8,6 +8,8 @@ Identify [watir-webdriver](http://github.com/watir/watir-webdriver) elements wit
|
|
|
8
8
|
|
|
9
9
|
When identifying elements, use the `ng` directives like you would `id`, `class`, etc. Be sure to use underscores instead of dashes though!
|
|
10
10
|
|
|
11
|
+
As of version `2.1.0`, this gem requires Ruby >= 2.0.
|
|
12
|
+
|
|
11
13
|
```ruby
|
|
12
14
|
# To find and click this HTML element:
|
|
13
15
|
# <button ng-click="foo">Submit</button>
|
|
@@ -16,7 +18,7 @@ submit_button = @browser.button(ng_click: "foo")
|
|
|
16
18
|
submit_button.click
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
To ensure your browser objects have access to the ng identifiers, run `patch!` before instantiating.
|
|
21
|
+
To ensure your browser objects have access to the ng identifiers, run `patch!` before instantiating.
|
|
20
22
|
|
|
21
23
|
```ruby
|
|
22
24
|
require 'watir-ng'
|
|
@@ -26,7 +28,7 @@ WatirNg.patch!
|
|
|
26
28
|
@browser = Watir::Browser.new
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
You can identify elements with custom directives by registering them before patching the browser.
|
|
31
|
+
You can identify elements with custom directives by registering them before patching the browser.
|
|
30
32
|
|
|
31
33
|
```ruby
|
|
32
34
|
require 'watir-ng'
|
|
@@ -60,5 +62,4 @@ Or install it yourself with:
|
|
|
60
62
|
|
|
61
63
|
## Questions, Comments, Concerns
|
|
62
64
|
|
|
63
|
-
Find me on Twitter ([@
|
|
64
|
-
|
|
65
|
+
Find me on Twitter ([@metaxjohnson](http://twitter.com/metaxjohnson)), gitter ([@jdenen](http://gitter.im/jdenen)), or write up an [issue](https://github.com/jdenen/watir-ng/issues/new).
|
data/lib/watir-ng.rb
CHANGED
data/lib/watir-ng/version.rb
CHANGED
data/watir-ng.gemspec
CHANGED
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
spec.add_runtime_dependency
|
|
21
|
+
spec.add_runtime_dependency 'watir', '~> 6.0.0'
|
|
22
22
|
|
|
23
23
|
spec.add_development_dependency "bundler"
|
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: watir-ng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Johnson Denen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: watir
|
|
14
|
+
name: watir
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 6.0.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
26
|
+
version: 6.0.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -116,9 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
118
|
rubyforge_project:
|
|
119
|
-
rubygems_version: 2.
|
|
119
|
+
rubygems_version: 2.5.1
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Use AngularJS ng directives as element identifiers with watir-webdriver
|
|
123
123
|
test_files: []
|
|
124
|
-
has_rdoc:
|