tophold_rack 0.2.1 → 0.3

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.
@@ -0,0 +1 @@
1
+ tophold_rack
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p448
@@ -17,7 +17,7 @@ module TopholdRack
17
17
  def call env
18
18
  unless Rails.configuration.tophold_rack_disabled
19
19
  request = Rack::Request.new env
20
- if request.get?
20
+ if request.get? && !request.xhr?
21
21
  path, query = request.path, request.query_string
22
22
  if scope = env["rack.session"]["warden.user.#{Rails.configuration.tophold_rack_devise_scope}.key"]
23
23
  user_id = scope[1][0].to_s =~ /\d+/ ? scope[1][0] : scope[0][0]
@@ -1,3 +1,3 @@
1
1
  module TopholdRack
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tophold_rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: '0.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-19 00:00:00.000000000 Z
12
+ date: 2013-11-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A rack based middleware to redispatch requested uri path to 3rd party
15
15
  tracking server
@@ -20,6 +20,8 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - .gitignore
23
+ - .ruby-gemset
24
+ - .ruby-version
23
25
  - Gemfile
24
26
  - LICENSE.txt
25
27
  - README.md