lapis_lazuli 1.0.2 → 1.0.3

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: acc1b88aff0413c88e8412acb1711d658ed95296
4
- data.tar.gz: 975355ed0485937425bf8c7587f8307dc5f0c325
3
+ metadata.gz: 3f6f0c091156719d54f992f82af15fecd3a51977
4
+ data.tar.gz: 7f5fb5a95f8d09a0d97b3bdddf679ab885a6e0fa
5
5
  SHA512:
6
- metadata.gz: e88f50559f3920ef4a84eed8e9814f1f0e74a0bfaff0ed6ff145d5acd56ae2fe09e5a57bf8c37590bc314c7bb5a362c47c076323850af07ec7be149b35030550
7
- data.tar.gz: 07c4635c25047b9aeabe94826b8d4472178630dd8f878c953f3dc757105b540b9785fcd142607ffebd1f956bbf67dae5eb6b0d4dfad91455197d3e32c49b003e
6
+ metadata.gz: e2b52796ae5d9822b48622d31f65e083c44044578c776afbc1c77731acdcf5589e65a9ad35915816fd4af389e92957b74871400ed82b242f3a73bf171c154fce
7
+ data.tar.gz: c6d0cd5590d38a6e5f344867d0a9d87a32b3e38dff55e10e0150cc6b78eb9483381662d973a32f1ef179d4735f61b7ce8a0e03e44396c1faf68a1b35f3192930
data/.gitignore CHANGED
@@ -17,3 +17,5 @@ tmp
17
17
  test/storage
18
18
  .*.sw*
19
19
  .idea
20
+ Gemfile.lock
21
+ test/Gemfile
data/lapis_lazuli.gemspec CHANGED
@@ -34,24 +34,16 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "bundler", "~> 1.6"
35
35
  spec.add_development_dependency "rake", "~> 12.0"
36
36
  spec.add_development_dependency "simplecov", "~> 0.12"
37
-
38
- spec.add_dependency "thor", "~> 0.19"
39
- spec.add_dependency "facets", "~> 3.1"
40
- spec.add_dependency "json", "~> 2.0"
41
- spec.add_dependency "faraday", "~> 0.9"
37
+
42
38
  spec.add_dependency "faraday_middleware", "~> 0.10"
43
39
  spec.add_dependency "faraday_json", "~> 0.1"
44
40
  spec.add_dependency "multi_xml", "~> 0.6"
45
41
  spec.add_dependency "teelogger", "~> 0.5"
46
42
  spec.add_dependency "minitest", "~> 5.10"
47
- spec.add_dependency "ffi", "~> 1.9"
48
- spec.add_dependency "rspec", "~> 3.5"
49
43
 
50
44
  # webdriver specifics
51
- spec.add_dependency "selenium-webdriver", ">= 2"
45
+ spec.add_dependency "selenium-webdriver", "~> 3"
52
46
  spec.add_dependency "watir", "~> 6"
53
47
  spec.add_dependency "cucumber", "~> 2"
54
48
 
55
- # Debugging tool
56
- spec.add_dependency "byebug", "~> 9"
57
49
  end
@@ -114,9 +114,9 @@ module BrowserModule
114
114
  # Catch the default error and add the selectors to it.
115
115
  unless throw === false
116
116
  # Only raise an error if :throw is not false
117
- raise LapisLazuli::TimeoutError, "#{e.message} with selectors: #{options[:selectors]}"
117
+ raise Watir::Wait::TimeoutError, "#{e.message} with selectors: #{options[:selectors]}"
118
118
  end
119
- rescue LapisLazuli::TimeoutError => err
119
+ rescue Watir::Wait::TimeoutError => err
120
120
  options[:exception] = err
121
121
  options[:message] = optional_message('Error in wait', options)
122
122
  world.error(options)
@@ -36,7 +36,7 @@ Then(/^the user should be on page "(.*?)"$/) do |page|
36
36
 
37
37
  # Check if they are the same
38
38
  if browser.url != expected_url
39
- error("The current URL and expected URL were not the same: \n Current: #{current_url}\n Expected: #{expected_url}")
39
+ error("The current URL and expected URL were not the same: \n Current: #{browser.url}\n Expected: #{expected_url}")
40
40
  end
41
41
  end
42
42
 
@@ -64,4 +64,4 @@ Then(/^the page should display as logged (in|out) state$/) do |logged|
64
64
  :message => message
65
65
  )
66
66
  # Lapis lazuli will automatically create a screenshot if this step fails.
67
- end
67
+ end
@@ -6,4 +6,5 @@
6
6
  # All rights reserved.
7
7
  #
8
8
  module LapisLazuli
9
- VERSION = "1.0.2"end
9
+ VERSION = "1.0.3"
10
+ end
data/test/.gitignore CHANGED
@@ -6,3 +6,4 @@ tmp
6
6
  version_tmp
7
7
  screenshots
8
8
  Gemfile.lock
9
+ Gemfile
data/test/Gemfile CHANGED
@@ -6,11 +6,19 @@ platforms :mswin, :mingw do
6
6
  gem 'term-ansicolor'
7
7
  end
8
8
 
9
+ gem 'selenium-webdriver', '3.2.2'
10
+ gem 'watir', '6.1.0'
11
+
9
12
  # LapisLazul itself; test code should point to the current repo and branch
10
13
  # repo = `git config --get remote.origin.url`
11
14
  # branch = `git rev-parse --abbrev-ref HEAD`
12
- # gem 'lapis_lazuli', :git => repo, :branch => branch
13
- # gem "lapis_lazuli", '0.9.9-dev', path: 'E:\Ruby\lib\ruby\gems\2.3.0\gems\lapis-lazuli-dev'
15
+ # Local gem
16
+ # gem "lapis_lazuli", path: './../'
17
+
18
+ # Development gem
19
+ # gem 'lapis_lazuli', :git => 'https://github.com/spriteCloud/lapis-lazuli.git', :branch => 'development'
20
+
21
+ # Production gem
14
22
  gem "lapis_lazuli"
15
23
 
16
24
  # Project specific gems
@@ -18,4 +26,4 @@ gem 'watir-scroll'
18
26
  gem 'xml-simple'
19
27
  gem 'mechanize'
20
28
  gem 'simplecov'
21
- gem 'test-unit'
29
+ gem 'test-unit'
@@ -43,6 +43,7 @@ Given(/^I create a firefox browser named "(.*?)"( with proxy to "(.*?)")$/) do |
43
43
  b = nil
44
44
  if proxy
45
45
  log.debug("Starting with profile")
46
+ require 'selenium-webdriver'
46
47
  profile = Selenium::WebDriver::Firefox::Profile.new
47
48
  profile.proxy = Selenium::WebDriver::Proxy.new :http => proxy_url
48
49
  b = browser.create :firefox, :profile => profile
@@ -159,7 +159,7 @@ Then(/^within (\d+) seconds I get an error waiting for "(.*?)"( to disappear)?$/
159
159
  :screenshot => true,
160
160
  :groups => ["wait"]
161
161
  )
162
- rescue RuntimeError => err
162
+ rescue Watir::Wait::TimeoutError => err
163
163
  error_thrown = true
164
164
  end
165
165
  unless error_thrown
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapis_lazuli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onno Steenbergen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-02 00:00:00.000000000 Z
14
+ date: 2017-03-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -55,62 +55,6 @@ dependencies:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0.12'
58
- - !ruby/object:Gem::Dependency
59
- name: thor
60
- requirement: !ruby/object:Gem::Requirement
61
- requirements:
62
- - - "~>"
63
- - !ruby/object:Gem::Version
64
- version: '0.19'
65
- type: :runtime
66
- prerelease: false
67
- version_requirements: !ruby/object:Gem::Requirement
68
- requirements:
69
- - - "~>"
70
- - !ruby/object:Gem::Version
71
- version: '0.19'
72
- - !ruby/object:Gem::Dependency
73
- name: facets
74
- requirement: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - "~>"
77
- - !ruby/object:Gem::Version
78
- version: '3.1'
79
- type: :runtime
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '3.1'
86
- - !ruby/object:Gem::Dependency
87
- name: json
88
- requirement: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - "~>"
91
- - !ruby/object:Gem::Version
92
- version: '2.0'
93
- type: :runtime
94
- prerelease: false
95
- version_requirements: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '2.0'
100
- - !ruby/object:Gem::Dependency
101
- name: faraday
102
- requirement: !ruby/object:Gem::Requirement
103
- requirements:
104
- - - "~>"
105
- - !ruby/object:Gem::Version
106
- version: '0.9'
107
- type: :runtime
108
- prerelease: false
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - "~>"
112
- - !ruby/object:Gem::Version
113
- version: '0.9'
114
58
  - !ruby/object:Gem::Dependency
115
59
  name: faraday_middleware
116
60
  requirement: !ruby/object:Gem::Requirement
@@ -182,47 +126,19 @@ dependencies:
182
126
  - !ruby/object:Gem::Version
183
127
  version: '5.10'
184
128
  - !ruby/object:Gem::Dependency
185
- name: ffi
186
- requirement: !ruby/object:Gem::Requirement
187
- requirements:
188
- - - "~>"
189
- - !ruby/object:Gem::Version
190
- version: '1.9'
191
- type: :runtime
192
- prerelease: false
193
- version_requirements: !ruby/object:Gem::Requirement
194
- requirements:
195
- - - "~>"
196
- - !ruby/object:Gem::Version
197
- version: '1.9'
198
- - !ruby/object:Gem::Dependency
199
- name: rspec
129
+ name: selenium-webdriver
200
130
  requirement: !ruby/object:Gem::Requirement
201
131
  requirements:
202
132
  - - "~>"
203
133
  - !ruby/object:Gem::Version
204
- version: '3.5'
134
+ version: '3'
205
135
  type: :runtime
206
136
  prerelease: false
207
137
  version_requirements: !ruby/object:Gem::Requirement
208
138
  requirements:
209
139
  - - "~>"
210
140
  - !ruby/object:Gem::Version
211
- version: '3.5'
212
- - !ruby/object:Gem::Dependency
213
- name: selenium-webdriver
214
- requirement: !ruby/object:Gem::Requirement
215
- requirements:
216
- - - ">="
217
- - !ruby/object:Gem::Version
218
- version: '2'
219
- type: :runtime
220
- prerelease: false
221
- version_requirements: !ruby/object:Gem::Requirement
222
- requirements:
223
- - - ">="
224
- - !ruby/object:Gem::Version
225
- version: '2'
141
+ version: '3'
226
142
  - !ruby/object:Gem::Dependency
227
143
  name: watir
228
144
  requirement: !ruby/object:Gem::Requirement
@@ -251,20 +167,6 @@ dependencies:
251
167
  - - "~>"
252
168
  - !ruby/object:Gem::Version
253
169
  version: '2'
254
- - !ruby/object:Gem::Dependency
255
- name: byebug
256
- requirement: !ruby/object:Gem::Requirement
257
- requirements:
258
- - - "~>"
259
- - !ruby/object:Gem::Version
260
- version: '9'
261
- type: :runtime
262
- prerelease: false
263
- version_requirements: !ruby/object:Gem::Requirement
264
- requirements:
265
- - - "~>"
266
- - !ruby/object:Gem::Version
267
- version: '9'
268
170
  description: "\n LapisLazuli provides cucumber helper functions and scaffolding
269
171
  for easier (web)\n test automation suite development.\n\n A lot of functionality
270
172
  is aimed at dealing better with [Watir](http://watir.com/),\n such as:\n\n -