watir_drops 0.5.8 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/LICENSE.txt +1 -1
- data/lib/watir_drops.rb +0 -1
- data/lib/watir_drops/page_object.rb +1 -8
- data/lib/watir_drops/training_wheels.rb +11 -0
- data/watir_drops.gemspec +2 -3
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a6fc6ba65c8a72ab5b5c274d045d9933f0dca9
|
4
|
+
data.tar.gz: 0fe039699fd17e9e947c79fa7184064ad343cf21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb4ffbf9546e95cbb389539529e6c7a53c73eef7a5d808385b7f502d5813b8597b3ff904661aedbd157e1cdb12355d241b5a617736ba069bcca785b939c4371
|
7
|
+
data.tar.gz: 815df8aa86b4d207bae45dcaff865ec0b75f58010f9fcaaabed38e570e04eb6a24b77fa62d0785b5efb1c0b1e5026fb061d3f419db2a34f5156c03abcbd2e659
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 0.6.0 (2017-01-04)
|
2
|
+
|
3
|
+
* move support for passing blocks into `#visit` from `PageObject` to `TrainingWheels`
|
4
|
+
* move support for `#use` (prefer the `#new` method) from `PageObject` to `TrainingWheels`
|
5
|
+
* require training_wheels file separately to use `TrainingWheels`
|
6
|
+
|
1
7
|
### 0.5.8 (2016-12-30)
|
2
8
|
|
3
9
|
* fix #fill_form issue for TextArea (thanks Tony Godwin!)
|
data/LICENSE.txt
CHANGED
data/lib/watir_drops.rb
CHANGED
@@ -61,14 +61,7 @@ module WatirDrops
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def visit(*args)
|
64
|
-
new.tap
|
65
|
-
page.goto(*args)
|
66
|
-
yield if block_given?
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
def use
|
71
|
-
new.tap { yield if block_given? }
|
64
|
+
new.tap { |page| page.goto(*args) }
|
72
65
|
end
|
73
66
|
|
74
67
|
def browser=(browser_input)
|
@@ -47,5 +47,16 @@ module WatirDrops
|
|
47
47
|
|
48
48
|
alias_method :populate_page_with, :fill_form
|
49
49
|
|
50
|
+
def visit(*args)
|
51
|
+
new.tap do |page|
|
52
|
+
page.goto(*args)
|
53
|
+
yield if block_given?
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def use
|
58
|
+
new.tap { yield if block_given? }
|
59
|
+
end
|
60
|
+
|
50
61
|
end
|
51
62
|
end
|
data/watir_drops.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'watir_drops'
|
5
|
-
spec.version = '0.
|
5
|
+
spec.version = '0.6.0'
|
6
6
|
spec.authors = ['Titus Fortner']
|
7
7
|
spec.email = ['titusfortner@gmail.com']
|
8
8
|
|
@@ -15,8 +15,7 @@ application information, allowing it to be decoupled from the tests}
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.require_paths = ['lib']
|
17
17
|
|
18
|
-
spec.add_runtime_dependency '
|
19
|
-
spec.add_runtime_dependency 'watir', '~> 6.0.0'
|
18
|
+
spec.add_runtime_dependency 'watir', '~> 6.0'
|
20
19
|
|
21
20
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
22
21
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_drops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: watir
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.0
|
19
|
+
version: '6.0'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: 6.0
|
26
|
+
version: '6.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|