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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e1b03e9a9684d4250351bfefb2ab56a2351fc13
4
- data.tar.gz: 0c4bc45059018b83d0baa6a09dbfcd4395bbee8b
3
+ metadata.gz: 75a6fc6ba65c8a72ab5b5c274d045d9933f0dca9
4
+ data.tar.gz: 0fe039699fd17e9e947c79fa7184064ad343cf21
5
5
  SHA512:
6
- metadata.gz: 766bd79dd80b375a49ead4dde707d56cc7da14e173021862c492cb834848819b19e9cd6d7ffc7f8f9d28ae9c93f713963436eda78b28a9c4184b638b73f39f2a
7
- data.tar.gz: 480979f6e590e8226b862c71d085ccff66308accd1f7b1e56e28ee161d43b53e7aaa67f680751a254a6e2be555aab1c8ad99098c433a0fd5c611f17939076dcd
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Titus Fortner
3
+ Copyright (c) 2015-2017 Titus Fortner
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/lib/watir_drops.rb CHANGED
@@ -1,3 +1,2 @@
1
1
  require 'watir'
2
2
  require 'watir_drops/page_object'
3
- require 'watir_drops/training_wheels'
@@ -61,14 +61,7 @@ module WatirDrops
61
61
  end
62
62
 
63
63
  def visit(*args)
64
- new.tap do |page|
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.8'
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 'activesupport'
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.5.8
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: 2016-12-31 00:00:00.000000000 Z
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.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.0
26
+ version: '6.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement