ssl_routes 0.0.4 → 0.0.5

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.
@@ -44,7 +44,7 @@ module SslRoutes::Controller
44
44
  )
45
45
  current = request.protocol.split(':').first
46
46
  target = extract_protocol(options)
47
- if current != target && request.get?
47
+ if current != target && !request.xhr? && request.get?
48
48
  flash.keep
49
49
  redirect_to "#{target}://#{request.host_with_port + request.request_uri}"
50
50
  return false
@@ -8,8 +8,9 @@ ActionController::Base.class_eval do
8
8
  end
9
9
 
10
10
  # Fix protocol in S3 urls.
11
- module Paperclip::Storage::S3
11
+ Paperclip::Storage::S3.module_eval do
12
12
  def s3_protocol
13
+ debugger
13
14
  Thread.current[:protocol] ||= @s3_protocol
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  module SslRoutes
2
2
 
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssl_routes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cedric Howe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-13 00:00:00 -05:00
18
+ date: 2010-12-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency