frameworks-capybara 0.3.0.rc5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +2 -6
- data/CHANGES +52 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +59 -52
- data/README.rdoc +19 -4
- data/frameworks-capybara.gemspec +7 -3
- data/lib/frameworks/capybara.rb +39 -16
- data/lib/frameworks/cucumber.rb +58 -33
- data/lib/monkey-patches/capybara-mechanize-patches.rb +30 -9
- data/lib/monkey-patches/cucumber-patches.rb +5 -1
- data/lib/monkey-patches/mechanize-patches.rb +17 -4
- data/lib/tasks/frameworks-tasks.rb +1 -1
- data/lib/version.rb +1 -1
- data/spec/capybara_mechanize_patches_spec.rb +124 -0
- data/spec/frameworks_capybara_spec.rb +127 -12
- data/spec/frameworks_cucumber_spec.rb +114 -3
- data/spec/spec_helper.rb +1 -0
- metadata +209 -179
- data/lib/monkey-patches/capybara-webkit-patches.rb +0 -26
metadata
CHANGED
@@ -1,187 +1,230 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameworks-capybara
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: 6
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 0
|
10
|
-
- rc
|
11
|
-
- 5
|
12
|
-
version: 0.3.0.rc5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
13
5
|
platform: ruby
|
14
|
-
authors:
|
6
|
+
authors:
|
15
7
|
- matt robbins
|
16
8
|
autorequire:
|
17
9
|
bindir: bin
|
18
10
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mime-types
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
24
20
|
type: :runtime
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ">="
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 23
|
31
|
-
segments:
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
- 0
|
35
|
-
version: 1.0.0
|
36
|
-
name: capybara
|
37
|
-
version_requirements: *id001
|
38
21
|
prerelease: false
|
39
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
40
34
|
type: :runtime
|
41
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 19
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 3
|
50
|
-
- 0
|
51
|
-
version: 0.3.0
|
52
|
-
name: capybara-mechanize
|
53
|
-
version_requirements: *id002
|
54
35
|
prerelease: false
|
55
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyzip
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
56
48
|
type: :runtime
|
57
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 3
|
63
|
-
segments:
|
64
|
-
- 0
|
65
|
-
version: "0"
|
66
|
-
name: capybara-webkit
|
67
|
-
version_requirements: *id003
|
68
49
|
prerelease: false
|
69
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: selenium-webdriver
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
70
62
|
type: :runtime
|
71
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
name: json
|
81
|
-
version_requirements: *id004
|
82
63
|
prerelease: false
|
83
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capybara
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.1.2
|
84
76
|
type: :runtime
|
85
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
hash: 3
|
91
|
-
segments:
|
92
|
-
- 0
|
93
|
-
version: "0"
|
94
|
-
name: headless
|
95
|
-
version_requirements: *id005
|
96
77
|
prerelease: false
|
97
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.1.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mechanize
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.7.2
|
98
90
|
type: :runtime
|
99
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
hash: 3
|
105
|
-
segments:
|
106
|
-
- 0
|
107
|
-
version: "0"
|
108
|
-
name: capybara-celerity
|
109
|
-
version_requirements: *id006
|
110
91
|
prerelease: false
|
111
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.7.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: capybara-mechanize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.3.0
|
104
|
+
- - <
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 1.0.0
|
112
107
|
type: :runtime
|
113
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
hash: 3
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
122
|
-
name: w3c_validators
|
123
|
-
version_requirements: *id007
|
124
108
|
prerelease: false
|
125
|
-
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: 0.3.0
|
114
|
+
- - <
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 1.0.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: json
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
126
124
|
type: :runtime
|
127
|
-
|
128
|
-
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: headless
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: capybara-celerity
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :runtime
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: w3c_validators
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :runtime
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ! '>='
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
138
174
|
name: cucumber
|
139
|
-
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ! '>='
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: 0.10.5
|
180
|
+
type: :runtime
|
140
181
|
prerelease: false
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
hash: 3
|
149
|
-
segments:
|
150
|
-
- 0
|
151
|
-
version: "0"
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ! '>='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.10.5
|
187
|
+
- !ruby/object:Gem::Dependency
|
152
188
|
name: rake
|
153
|
-
|
154
|
-
|
155
|
-
- !
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ! '>='
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
156
194
|
type: :development
|
157
|
-
|
158
|
-
|
159
|
-
requirements:
|
160
|
-
- -
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
|
163
|
-
|
164
|
-
- 1
|
165
|
-
- 0
|
166
|
-
- 0
|
167
|
-
version: 1.0.0
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ! '>='
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
168
202
|
name: rspec
|
169
|
-
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ! '>='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: 1.0.0
|
208
|
+
type: :development
|
170
209
|
prerelease: false
|
171
|
-
|
172
|
-
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ! '>='
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 1.0.0
|
215
|
+
description: Gem to ease the pain of managing capybara driver config and provide a
|
216
|
+
home for common utils and patches
|
217
|
+
email:
|
173
218
|
- mcrobbins@gmail.com
|
174
219
|
executables: []
|
175
|
-
|
176
220
|
extensions: []
|
177
|
-
|
178
221
|
extra_rdoc_files: []
|
179
|
-
|
180
|
-
files:
|
222
|
+
files:
|
181
223
|
- .document
|
182
224
|
- .gitignore
|
183
225
|
- .rspec
|
184
226
|
- .travis.yml
|
227
|
+
- CHANGES
|
185
228
|
- Gemfile
|
186
229
|
- Gemfile.lock
|
187
230
|
- LICENSE.txt
|
@@ -193,7 +236,6 @@ files:
|
|
193
236
|
- lib/frameworks/cucumber.rb
|
194
237
|
- lib/monkey-patches/capybara-mechanize-patches.rb
|
195
238
|
- lib/monkey-patches/capybara-patches.rb
|
196
|
-
- lib/monkey-patches/capybara-webkit-patches.rb
|
197
239
|
- lib/monkey-patches/cucumber-patches.rb
|
198
240
|
- lib/monkey-patches/mechanize-patches.rb
|
199
241
|
- lib/monkey-patches/net-http-persistent-patches.rb
|
@@ -201,47 +243,35 @@ files:
|
|
201
243
|
- lib/monkey-patches/webdriver-patches.rb
|
202
244
|
- lib/tasks/frameworks-tasks.rb
|
203
245
|
- lib/version.rb
|
246
|
+
- spec/capybara_mechanize_patches_spec.rb
|
204
247
|
- spec/frameworks_capybara_spec.rb
|
205
248
|
- spec/frameworks_cucumber_spec.rb
|
206
249
|
- spec/mock.default/prefs.js
|
207
250
|
- spec/profiles.ini
|
208
251
|
- spec/spec_helper.rb
|
209
252
|
- spec/unit_test_monkeypatches.rb
|
210
|
-
has_rdoc: true
|
211
253
|
homepage:
|
212
254
|
licenses: []
|
213
|
-
|
255
|
+
metadata: {}
|
214
256
|
post_install_message:
|
215
257
|
rdoc_options: []
|
216
|
-
|
217
|
-
require_paths:
|
258
|
+
require_paths:
|
218
259
|
- lib
|
219
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
none: false
|
230
|
-
requirements:
|
231
|
-
- - ">"
|
232
|
-
- !ruby/object:Gem::Version
|
233
|
-
hash: 25
|
234
|
-
segments:
|
235
|
-
- 1
|
236
|
-
- 3
|
237
|
-
- 1
|
238
|
-
version: 1.3.1
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ! '>='
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
239
270
|
requirements: []
|
240
|
-
|
241
271
|
rubyforge_project:
|
242
|
-
rubygems_version:
|
272
|
+
rubygems_version: 2.2.2
|
243
273
|
signing_key:
|
244
|
-
specification_version:
|
245
|
-
summary: Gem to ease the pain of managing capybara driver config and provide a home
|
274
|
+
specification_version: 4
|
275
|
+
summary: Gem to ease the pain of managing capybara driver config and provide a home
|
276
|
+
for common utils and patches
|
246
277
|
test_files: []
|
247
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'capybara-webkit'
|
2
|
-
class Capybara::Driver::Webkit
|
3
|
-
def get_cookies
|
4
|
-
scookies = []
|
5
|
-
|
6
|
-
cookies.send(:cookies).each do |cookie|
|
7
|
-
scookies.push({
|
8
|
-
:name => cookie.name,
|
9
|
-
:value => cookie.value,
|
10
|
-
:domain => cookie.domain,
|
11
|
-
:secure => cookie.secure,
|
12
|
-
:expires => cookie.expires,
|
13
|
-
:path => cookie.path
|
14
|
-
})
|
15
|
-
end
|
16
|
-
p '--cookies--'
|
17
|
-
p scookies
|
18
|
-
p '--cookies--'
|
19
|
-
scookies
|
20
|
-
end
|
21
|
-
|
22
|
-
def cookie_named(name)
|
23
|
-
get_cookies.find { |c| c[:name] == name }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|