smart_cookie_store 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/rails/init.rb +13 -0
  3. metadata +3 -2
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ PKG_FILES = FileList[
11
11
 
12
12
  spec = Gem::Specification.new do |s|
13
13
  s.name = "smart_cookie_store"
14
- s.version = "0.0.3"
14
+ s.version = "0.0.4"
15
15
  s.author = "Urban Hafner"
16
16
  s.email = "urban@bettong.net"
17
17
  s.homepage = "http://github.com/msales/smart_cookie_store"
data/rails/init.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'smart_cookie_store'
2
+
3
+ if Rails.version == '2.3.5'
4
+
5
+ class ActionController::Response
6
+
7
+ def convert_cookies!
8
+ cookies = Array(headers['Set-Cookie']).compact
9
+ headers['Set-Cookie'] = cookies unless cookies.empty?
10
+ end
11
+ end
12
+
13
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Urban Hafner
@@ -31,6 +31,7 @@ files:
31
31
  - Rakefile
32
32
  - README.md
33
33
  - lib/smart_cookie_store.rb
34
+ - rails/init.rb
34
35
  has_rdoc: true
35
36
  homepage: http://github.com/msales/smart_cookie_store
36
37
  licenses: []