dwaite-cookiejar 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,9 +97,9 @@ module CookieJar
97
97
  args[:domain] = keyvalue
98
98
  when :path
99
99
  args[:path] = keyvalue
100
- when 'SECURE'
100
+ when :secure
101
101
  args[:secure] = true
102
- when 'HTTPONLY'
102
+ when :httponly
103
103
  args[:http_only] = true
104
104
  else
105
105
  args[:name] = result[1]
data/test/cookie_test.rb CHANGED
@@ -37,6 +37,11 @@ describe Cookie do
37
37
  cookie = Cookie.from_set_cookie 'http://localhost/', 'foo=bar;domain=.local'
38
38
  cookie.domain.should == '.local'
39
39
  end
40
+ it "should accept secure cookies" do
41
+ cookie = Cookie.from_set_cookie 'https://www.google.com/a/blah', 'GALX=RgmSftjnbPM;Path=/a/;Secure'
42
+ cookie.name.should == 'GALX'
43
+ cookie.secure.should be_true
44
+ end
40
45
  end
41
46
  describe '.validate_cookie' do
42
47
  localaddr = 'http://localhost/foo/bar/'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwaite-cookiejar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Waite
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-10 00:00:00 -07:00
12
+ date: 2009-09-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -30,7 +30,6 @@ files:
30
30
  - test/jar_test.rb
31
31
  has_rdoc: false
32
32
  homepage: http://alkaline-solutions.com
33
- licenses:
34
33
  post_install_message:
35
34
  rdoc_options:
36
35
  - --title
@@ -52,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
51
  requirements: []
53
52
 
54
53
  rubyforge_project:
55
- rubygems_version: 1.3.5
54
+ rubygems_version: 1.2.0
56
55
  signing_key:
57
56
  specification_version: 3
58
57
  summary: Client-side HTTP Cookie library