galakei 0.5.0 → 0.5.1

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.
@@ -16,7 +16,7 @@ module Galakei::SessionIdParameter::InUrl
16
16
  private
17
17
 
18
18
  def inject_session_id_parameter?(options)
19
- return false unless options.is_a?(Hash)
19
+ return false unless options.is_a?(Hash) && request
20
20
  return true if request.imode_browser_1_0?
21
21
 
22
22
  # au and softbank have two forms of cookies depending on if it is
@@ -1,3 +1,3 @@
1
1
  module Galakei
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -19,6 +19,7 @@ app.config.galakei.session_id_parameter = true
19
19
  app.initialize!
20
20
 
21
21
  app.routes.draw do
22
+ match 'session_generation' => "sessions#session_generation"
22
23
  match ':controller(/:action(/:id))'
23
24
  end
24
25
  class ApplicationController < ActionController::Base; end
@@ -59,6 +59,10 @@ class SessionsController < ApplicationController
59
59
  Session Param: #{params.key?(:_myapp_session)}
60
60
  EOD
61
61
  end
62
+
63
+ def session_generation
64
+ render :head => :ok
65
+ end
62
66
  end
63
67
 
64
68
 
@@ -132,4 +136,9 @@ feature 'session' do
132
136
  click_on 'insecure_link'
133
137
  page.should have_content("Session Param: false")
134
138
  end
139
+
140
+ scenario 'route generation in tests' do
141
+ # request is not available in this context
142
+ visit session_generation_path
143
+ end
135
144
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 0
9
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul McMahon