frameworks-capybara 0.2.28 → 0.2.29

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -6,7 +6,3 @@ rvm:
6
6
  - 1.8.7
7
7
  - 1.9.2
8
8
  - 1.9.3
9
- - jruby-18mode # JRuby in 1.8 mode
10
- - jruby-19mode # JRuby in 1.9 mode
11
- # uncomment this line if your project needs to run something other than `rake`:
12
- # # script: bundle exec rspec spec
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 0.2.29
2
+ Updated add_cookie patch to use new http_cookie API, following Mechanize changes (see http://bit.ly/12Do1l7)
3
+
1
4
  0.2.28
2
5
  Updated Mechanize::CookieJar add patch to work with latest capybara-mechanize.
3
6
  Added support for httpOnly cookie flag to capybara mechanize patch
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.28)
4
+ frameworks-capybara (0.2.29)
5
5
  capybara (~> 1.1.2)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
@@ -82,14 +82,20 @@ class Capybara::Mechanize::Driver
82
82
  end
83
83
  end
84
84
 
85
- FakeURI = Struct.new(:host)
86
85
  def add_cookie(attribs)
87
- c = Mechanize::Cookie.new(attribs[:name],attribs[:value])
88
- # remember: mechanize always removes leading '.' from domains
89
- c.domain = attribs[:domain]
90
- c.path = '/'
91
- c.expires = attribs[:expires]
92
- c.secure = attribs[:secure]
93
- browser.agent.cookie_jar.add(FakeURI.new(c.domain),c)
86
+
87
+ cookie = HTTP::Cookie.new(
88
+ attribs[:name],
89
+ attribs[:value],
90
+ :domain => attribs[:domain],
91
+ :for_domain => true,
92
+ :path => '/',
93
+ :expires => attribs[:expires],
94
+ :secure => attribs[:secure],
95
+ :httponly => attribs[:httponly]
96
+ )
97
+
98
+ browser.agent.cookie_jar.add(cookie)
99
+
94
100
  end
95
101
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.28'
2
+ VERSION = '0.2.29'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 28
10
- version: 0.2.28
9
+ - 29
10
+ version: 0.2.29
11
11
  platform: ruby
12
12
  authors:
13
13
  - matt robbins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-03 00:00:00 Z
18
+ date: 2013-06-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false