rails_sso 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 827dcf8df94e72558a6c6b7f27bd1f5225e2f566
4
- data.tar.gz: c28c7ed22fb2c1c9dbe93542719011bedb206356
3
+ metadata.gz: a5d61a6fa9dbbf679f3fd524a03aaec86ccadf29
4
+ data.tar.gz: 13e029f0d8b91172d7050c65d05325037535e1c9
5
5
  SHA512:
6
- metadata.gz: ace8922ff5e43178f0590822cf5d355c8b97a1c2ec4f68fe6473f9f97a7690d76884da509836088fdfe7a6b3c86a17c830f4da7cb11338eadb6a4b3b66c24854
7
- data.tar.gz: d1c903d90101cf1be1e854bd59d7924c8708cb6d4c8e91dca6455de5ab4af90ba60d2c155895ce945999b17a0b32075578125e3d9d04364dcadc5288128b74eb
6
+ metadata.gz: 8346bc9351a918268854113fee277f8dd012c7fc677657446ef57930a30fcd9df98e88d6272274f222835c6ddda5147ad8ad757250129a924e740c0c73f03b51
7
+ data.tar.gz: d5cb4ca63ace626562bcd945ce600a8bf8df746330565f053d5c03e626c727ebc95c01cdf0c8b9be401a21452fd560c22b00a3a15712ea7372ea784274566cea
@@ -9,7 +9,7 @@ module RailsSso
9
9
  end
10
10
 
11
11
  def respond
12
- if request.content_type == 'application/json'
12
+ if request.xhr?
13
13
  self.status = :unauthorized
14
14
  self.content_type = request.content_type
15
15
  self.response_body = ''
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Dudulski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubyforge_project:
226
- rubygems_version: 2.4.5.1
226
+ rubygems_version: 2.5.1
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: SSO Rails Engine