cookie_monster 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/cookie_monster.gemspec +1 -1
- data/lib/cookie_monster/jar.rb +1 -1
- data/lib/cookie_monster/version.rb +1 -1
- data/test/cookie_monster/test_jar.rb +2 -2
- metadata +5 -7
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDlhOTM2ZjFmYjJlOTVlMjYzNzhhOWU1NzAwZTlhNDBlNzE2ZDlkYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NWIzZGEzMTYyMjFjYzdlZjIyN2Q0MWRmZTk4MTk3MGM4NTI0ODE5MA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzJhZTM0ZDNlOGMyYmJhYWI1YTNmZDhkMGYyMGZmMTNhZDMzNzIxMzEzNGZi
|
10
|
+
YjUzNGIxODAzNDE1MzRjOWE4Mjk3ZDQ1ODEyNzFhYWJlYzhmM2VmZTY5Y2M0
|
11
|
+
MTU1OTk0ZDM3OWY1ODhmNWQ3YjhjYzdiYjgzOTZmODBlYTg2ZTU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjhkZTIyMjdhMTE2NWVlMGYzN2UxYTg1ZWM2NDM4MjRiOWM1NDYzM2NhODM0
|
14
|
+
N2NlM2NmMmNkNmEyYTY0MDMyMGViYzYwMjEwM2YzNmY4MmE4MWZjYWJmYjQ4
|
15
|
+
NTA5MjA0MmU2NGMxM2JkZjk1MTc1NjQ3ZmQ0MDYzODZhODUyZTY=
|
data/cookie_monster.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'cookie_monster/version'
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'cookie_monster'
|
6
6
|
s.version = CookieMonster::VERSION
|
7
|
-
s.date =
|
7
|
+
s.date = Date.today
|
8
8
|
s.summary = "A simple gem to encrypt cookies for ruby applications."
|
9
9
|
s.description = "A simple gem to encrypt cookies for ruby applications."
|
10
10
|
s.authors = ["Dylan Griffin"]
|
data/lib/cookie_monster/jar.rb
CHANGED
@@ -30,7 +30,7 @@ module CookieMonster
|
|
30
30
|
def []=(key, value)
|
31
31
|
encrypted_value = Encryption.new(value).encrypt
|
32
32
|
|
33
|
-
@response.set_cookie key, {
|
33
|
+
@response.set_cookie key.to_s, {
|
34
34
|
:value => encrypted_value,
|
35
35
|
:httponly => @options[:httponly],
|
36
36
|
:expires => @options[:expires],
|
@@ -10,7 +10,7 @@ class FakeResponse
|
|
10
10
|
attr_reader :cookies
|
11
11
|
def initialize
|
12
12
|
@cookies = {
|
13
|
-
a_cookie
|
13
|
+
'a_cookie' => CookieMonster::Encryption.new('already set').encrypt
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
@@ -31,7 +31,7 @@ class JarTest < Test::Unit::TestCase
|
|
31
31
|
def test_setting_a_cookie
|
32
32
|
@jar[:hello] = 'testing a cookie'
|
33
33
|
assert_equal CookieMonster::Encryption.new('testing a cookie').encrypt,
|
34
|
-
@jar.response.cookies[
|
34
|
+
@jar.response.cookies['hello'][:value]
|
35
35
|
end
|
36
36
|
|
37
37
|
def test_reading_a_cookie_set_in_response_first
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookie_monster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dylan Griffin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: A simple gem to encrypt cookies for ruby applications.
|
15
14
|
email: dylan@dylangriff.in
|
@@ -84,26 +83,25 @@ files:
|
|
84
83
|
- test/test_helper.rb
|
85
84
|
homepage: http://dylangriff.in
|
86
85
|
licenses: []
|
86
|
+
metadata: {}
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
90
90
|
- lib
|
91
91
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
92
|
requirements:
|
94
93
|
- - ! '>='
|
95
94
|
- !ruby/object:Gem::Version
|
96
95
|
version: '0'
|
97
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
97
|
requirements:
|
100
98
|
- - ! '>='
|
101
99
|
- !ruby/object:Gem::Version
|
102
100
|
version: '0'
|
103
101
|
requirements: []
|
104
102
|
rubyforge_project:
|
105
|
-
rubygems_version:
|
103
|
+
rubygems_version: 2.0.3
|
106
104
|
signing_key:
|
107
|
-
specification_version:
|
105
|
+
specification_version: 4
|
108
106
|
summary: A simple gem to encrypt cookies for ruby applications.
|
109
107
|
test_files: []
|