show_me_the_cookies 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjEyNjJhYzcwMDI4MTc5MTQ0OWJmODEwNWMwYmQxMzI0YzY0NjhhMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzlmMDQyOTkzNzViYmQxYWEyNTQyMzVkNDE0Mzc0OTg2YjBlMmYzYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDU4NDM0MTIzYjE3MzE5MzFjYzMyNDNiNGYxNTU0NzBkOWNmNjIyNmUxYzVk
|
10
|
+
ZjBlMTEwZTcyMzgxMjhiOGEyOWE1MjM1MTNjNmQ2ZmM4YWQwNzk1NDI5MjUw
|
11
|
+
M2Q0ODk2OTM4YmM4YzJmNWEzMmJlNWRiMWQ4YzcwZGFjZjI3ODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjRlZmNlYjNhZDFmZGRlMGZjN2MzNDQwYTJkYjcwMmRkNDk3OWZmZTgyYTZl
|
14
|
+
NGVlZWY0OWZjNjU0Nzc2ZmMwMGRjYWNiY2ViYTc2YTdlOTkxNGNlNTM5N2Qy
|
15
|
+
NmZkYzBhYWE2NGUyM2NlMDAyM2NlNWVhMTRmYmVhODhiMjExNjY=
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Show me the cookies
|
2
2
|
|
3
|
+
![Build status](https://semaphoreapp.com/api/v1/projects/9a0dc444-fd04-4187-95a7-7a07abecbad7/201807/shields_badge.png)
|
4
|
+
|
3
5
|
Some helpers for poking around at your Capybara driven browser's cookies in integration tests.
|
4
6
|
|
5
7
|
Supports Capybara's bundled drivers (rack-test, Selenium Webdriver) and Poltergeist (PhantomJS).
|
@@ -18,7 +20,7 @@ You may add new drivers for your application by implementing an adapter class an
|
|
18
20
|
show_me_the_cookies
|
19
21
|
|
20
22
|
# returns an array of cookie hashes
|
21
|
-
# form: [{:name, :domain, :value, :expires, :path}]
|
23
|
+
# form: [{:name, :domain, :value, :expires, :path, :secure}]
|
22
24
|
get_me_the_cookies
|
23
25
|
|
24
26
|
# deletes the named cookie
|
data/spec/app/set_cookie.rb
CHANGED
@@ -5,7 +5,7 @@ get '/' do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
get '/set/:key/:value' do
|
8
|
-
response.set_cookie params[:key], {:value => params[:value], :path => '/'}
|
8
|
+
response.set_cookie params[:key], {:value => params[:value], :path => '/', :secure => false}
|
9
9
|
"Setting #{params[:key]}=#{params[:value]}"
|
10
10
|
end
|
11
11
|
|
@@ -18,7 +18,7 @@ shared_examples "the API" do
|
|
18
18
|
describe "get_me_the_cookie" do
|
19
19
|
it "returns the cookie hash" do
|
20
20
|
visit '/set/foo/bar'
|
21
|
-
get_me_the_cookie('foo').should include(:name => "foo", :value => "bar", :expires => nil)
|
21
|
+
get_me_the_cookie('foo').should include(:name => "foo", :value => "bar", :expires => nil, :secure => false)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -30,7 +30,7 @@ shared_examples "the API" do
|
|
30
30
|
it "returns an array of standardised cookie hashes" do
|
31
31
|
visit '/set/foo/bar'
|
32
32
|
page.should have_content("Setting foo=bar")
|
33
|
-
get_me_the_cookies.first.should include(:name => "foo", :value => "bar", :expires => nil)
|
33
|
+
get_me_the_cookies.first.should include(:name => "foo", :value => "bar", :expires => nil, :secure => false)
|
34
34
|
visit '/set/myopic/mice'
|
35
35
|
get_me_the_cookies.length.should be(2)
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: show_me_the_cookies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Rutherford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|