frameworks-capybara 0.3.0.rc4 → 0.3.0.rc5

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.3.0.rc4)
4
+ frameworks-capybara (0.3.0.rc5)
5
5
  capybara (>= 1.0.0)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
@@ -1,6 +1,7 @@
1
1
  require 'capybara/cucumber'
2
2
  require 'monkey-patches/webdriver-patches'
3
3
  require 'monkey-patches/capybara-patches'
4
+ require 'monkey-patches/capybara-webkit-patches'
4
5
  require 'monkey-patches/capybara-mechanize-patches'
5
6
  require 'monkey-patches/mechanize-patches'
6
7
  require 'monkey-patches/send-keys'
@@ -0,0 +1,26 @@
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
+
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.3.0.rc4'
2
+ VERSION = '0.3.0.rc5'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424045
4
+ hash: 15424047
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
10
  - rc
11
- - 4
12
- version: 0.3.0.rc4
11
+ - 5
12
+ version: 0.3.0.rc5
13
13
  platform: ruby
14
14
  authors:
15
15
  - matt robbins
@@ -193,6 +193,7 @@ files:
193
193
  - lib/frameworks/cucumber.rb
194
194
  - lib/monkey-patches/capybara-mechanize-patches.rb
195
195
  - lib/monkey-patches/capybara-patches.rb
196
+ - lib/monkey-patches/capybara-webkit-patches.rb
196
197
  - lib/monkey-patches/cucumber-patches.rb
197
198
  - lib/monkey-patches/mechanize-patches.rb
198
199
  - lib/monkey-patches/net-http-persistent-patches.rb