maitre_d 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ 0.1.1 - January 11th 2012
2
+ * Use Rails' cookie jar if it's available.
3
+
1
4
  0.1.0 - January 11th 2012
2
5
  * Tentative Heroku support.
3
6
 
@@ -10,10 +10,15 @@ class MaitreD::Heroku::API < Grape::API
10
10
  hash[:session] ||= {}
11
11
  hash[:session].each { |key, value| session[key] = value }
12
12
 
13
+ if env['action_dispatch.cookies']
14
+ env['action_dispatch.cookies']['heroku-nav-data'] = params['nav-data']
15
+ else
16
+ Rack::Utils.set_cookie_header! header, 'heroku-nav-data',
17
+ :value => params['nav-data']
18
+ end
19
+
13
20
  status 302
14
21
  header 'Location', hash[:uri]
15
- Rack::Utils.set_cookie_header! header, 'heroku-nav-data',
16
- :value => params['nav-data']
17
22
  end
18
23
 
19
24
  post do
@@ -1,3 +1,3 @@
1
1
  module MaitreD
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maitre_d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kensa
16
- requirement: &70319103578580 !ruby/object:Gem::Requirement
16
+ requirement: &70271648779780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70319103578580
24
+ version_requirements: *70271648779780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70319103578080 !ruby/object:Gem::Requirement
27
+ requirement: &70271648779280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.1.3
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70319103578080
35
+ version_requirements: *70271648779280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70319103577620 !ruby/object:Gem::Requirement
38
+ requirement: &70271648778820 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 2.7.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70319103577620
46
+ version_requirements: *70271648778820
47
47
  description: A Rack API (through Grape) for Heroku and Opperator add-on providers
48
48
  - which can also be attached as a Rails Engine.
49
49
  email: