cookie_cutter 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/cookie_cutter.gemspec +3 -3
- data/lib/cookie_cutter/cookie.rb +5 -1
- data/lib/cookie_cutter/version.rb +1 -1
- metadata +7 -6
data/cookie_cutter.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
require File.expand_path('../lib/cookie_cutter/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["Andy Alm"]
|
6
|
-
gem.email = ["
|
5
|
+
gem.authors = ["Andy Alm", "Getty Images"]
|
6
|
+
gem.email = ["AppDev_Railgun@gettyimages.com"]
|
7
7
|
gem.description = %q{Provides a way to define the structure, lifetime, and other properties of a cookie all in one place.}
|
8
8
|
gem.summary = gem.description
|
9
|
-
gem.homepage = "http://github.com/
|
9
|
+
gem.homepage = "http://github.com/gettyimages/cookie_cutter"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/cookie_cutter/cookie.rb
CHANGED
@@ -101,7 +101,11 @@ module CookieCutter
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def value
|
104
|
-
@cookie_jar[cookie_name]
|
104
|
+
value = @cookie_jar[cookie_name]
|
105
|
+
#if the value is a hash, we need to dup it so that we are not manipulating the original instance
|
106
|
+
#we need to do this because a rails cookie_jar hangs onto the original reference in order to detect value changes
|
107
|
+
value = value.dup if value.is_a?(Hash)
|
108
|
+
value
|
105
109
|
end
|
106
110
|
|
107
111
|
def value=(val)
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookie_cutter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andy Alm
|
9
|
+
- Getty Images
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: activesupport
|
@@ -62,7 +63,7 @@ dependencies:
|
|
62
63
|
description: Provides a way to define the structure, lifetime, and other properties
|
63
64
|
of a cookie all in one place.
|
64
65
|
email:
|
65
|
-
-
|
66
|
+
- AppDev_Railgun@gettyimages.com
|
66
67
|
executables: []
|
67
68
|
extensions: []
|
68
69
|
extra_rdoc_files: []
|
@@ -83,7 +84,7 @@ files:
|
|
83
84
|
- lib/cookie_cutter/test_support/stubs.rb
|
84
85
|
- lib/cookie_cutter/version.rb
|
85
86
|
- spec/base_spec.rb
|
86
|
-
homepage: http://github.com/
|
87
|
+
homepage: http://github.com/gettyimages/cookie_cutter
|
87
88
|
licenses: []
|
88
89
|
post_install_message:
|
89
90
|
rdoc_options: []
|
@@ -97,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
98
|
version: '0'
|
98
99
|
segments:
|
99
100
|
- 0
|
100
|
-
hash:
|
101
|
+
hash: 2629765522304587425
|
101
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
103
|
none: false
|
103
104
|
requirements:
|
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
107
|
version: '0'
|
107
108
|
segments:
|
108
109
|
- 0
|
109
|
-
hash:
|
110
|
+
hash: 2629765522304587425
|
110
111
|
requirements: []
|
111
112
|
rubyforge_project:
|
112
113
|
rubygems_version: 1.8.24
|