simple_token_authentication 1.15.0 → 1.15.1

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: 3954e4aa1084737bfce46e449f442d59c41a8f06
4
- data.tar.gz: 87f0de62bcce94ab8431f63f952e0a02417c7ec2
3
+ metadata.gz: d1cfc09f9666985881a980d32cbbb8d3de790d30
4
+ data.tar.gz: 118f740c8c52aa8f235b481036350dee1e0931bc
5
5
  SHA512:
6
- metadata.gz: 44c18ed1a2446f3a064ca1b40fe168a55f90f4dee0ab7feb02a76e5abe439a1d572a81d7cd78fb85f2724b252c3d63f93bca13436cf9ab2d4c00536076c9e485
7
- data.tar.gz: 5089b7ced8079351b5719e5c327ecddc006948daa9b8c604acb1df0b418260f5846cebddf728164df40db60ed4812e9f573cf2f8d2948467178ef4cd49e58271
6
+ metadata.gz: 7472c87182d13976b07b8345412ee2dfc9b4241f6e5ea057e6d9b130f9925a45e26ba92c226f4288a47d907f38bcc15b90680bdd40a5e15882045295499a8190
7
+ data.tar.gz: e06669aff3044322ee2777786f26d95f9dd7aedd1500eb7c045c2417c9f47a93688c37226dc359a768923e60a1508b5957e22a9db936a9b2a40e02a8ea39e8ec
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [1.15.1] - 2017-01-26
7
+
8
+ ## Fixed
9
+
10
+ - Work around [jbuilder][jbuilder] issues caused by the Rails API adapter - @IvRRimum with help from @Pepan
11
+
12
+ [jbuilder]: https://github.com/rails/jbuilder
13
+
6
14
  ## [1.15.0] - 2017-01-14
7
15
 
8
16
  ### Added
@@ -260,6 +268,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
260
268
  This [gist][gist] did refactor the Jose Valim's code into an `ActiveSupport::Concern`.
261
269
 
262
270
  [gist]: https://gist.github.com/gonzalo-bulnes/7659739
271
+ [1.15.1]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.15.0...v1.15.1
263
272
  [1.15.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.14.0...v1.15.0
264
273
  [1.14.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.13.0...v1.14.0
265
274
  [1.13.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.12.0...v1.13.0
data/README.md CHANGED
@@ -384,7 +384,7 @@ License
384
384
  -------
385
385
 
386
386
  Simple Token Authentication
387
- Copyright (C) 2013, 2014, 2015, 2016 Gonzalo Bulnes Guilpain
387
+ Copyright (C) 2013, 2014, 2015, 2016, 2017 Gonzalo Bulnes Guilpain
388
388
 
389
389
  This program is free software: you can redistribute it and/or modify
390
390
  it under the terms of the GNU General Public License as published by
@@ -33,6 +33,8 @@ module SimpleTokenAuthentication
33
33
  # Returns an Array of available adapters
34
34
  def self.load_available_adapters adapters_short_names
35
35
  available_adapters = adapters_short_names.collect do |short_name|
36
+ next if short_name == 'rails' && (ActiveSupport.respond_to?(:version) && ActiveSupport.version >= Gem::Version.new('4.1.0'))
37
+ next if short_name == 'rails_api' && (ActiveSupport.respond_to?(:version) && ActiveSupport.version >= Gem::Version.new('5.0.0'))
36
38
  adapter_name = "simple_token_authentication/adapters/#{short_name}_adapter"
37
39
  if adapter_dependency_fulfilled?(short_name) && require(adapter_name)
38
40
  adapter_name.camelize.constantize
@@ -1,3 +1,3 @@
1
1
  module SimpleTokenAuthentication
2
- VERSION = "1.15.0".freeze
2
+ VERSION = "1.15.1".freeze
3
3
  end
@@ -13,7 +13,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
13
13
 
14
14
  describe ':only option', before_filter: true do
15
15
 
16
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
16
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
17
17
 
18
18
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
19
19
  some_class = @subjects.first
@@ -33,7 +33,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
33
33
 
34
34
  describe ':except option', before_filter: true do
35
35
 
36
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
36
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
37
37
 
38
38
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
39
39
  some_class = @subjects.first
@@ -53,7 +53,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
53
53
 
54
54
  describe ':if option', before_filter: true do
55
55
 
56
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
56
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
57
57
 
58
58
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
59
59
  some_class = @subjects.first
@@ -73,7 +73,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
73
73
 
74
74
  describe ':unless option', before_filter: true do
75
75
 
76
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
76
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
77
77
 
78
78
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
79
79
  some_class = @subjects.first
@@ -95,7 +95,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
95
95
 
96
96
  describe ':only option' do
97
97
 
98
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
98
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
99
99
 
100
100
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
101
101
  some_class = @subjects.first
@@ -115,7 +115,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
115
115
 
116
116
  describe ':except option' do
117
117
 
118
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
118
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
119
119
 
120
120
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
121
121
  some_class = @subjects.first
@@ -135,7 +135,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
135
135
 
136
136
  describe ':if option' do
137
137
 
138
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
138
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
139
139
 
140
140
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
141
141
  some_class = @subjects.first
@@ -155,7 +155,7 @@ describe 'ActionController', action_controller_callbacks_options: true do
155
155
 
156
156
  describe ':unless option' do
157
157
 
158
- context 'when provided to `acts_as_token_authentication_hanlder_for`' do
158
+ context 'when provided to `acts_as_token_authentication_handler_for`' do
159
159
 
160
160
  it 'is applied to the corresponding callback (1)', rspec_3_error: true, private: true do
161
161
  some_class = @subjects.first
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_token_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Bulnes Guilpain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -170,7 +170,6 @@ files:
170
170
  - gemfiles/rails_5_devise_4.gemfile
171
171
  - gemfiles/rails_5_devise_4.gemfile.lock
172
172
  - gemfiles/ruby_1.9.3_rails_3.2.gemfile
173
- - gemfiles/ruby_1.9.3_rails_3.2.gemfile.lock
174
173
  - lib/simple_token_authentication.rb
175
174
  - lib/simple_token_authentication/acts_as_token_authenticatable.rb
176
175
  - lib/simple_token_authentication/acts_as_token_authentication_handler.rb
@@ -246,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
245
  version: '0'
247
246
  requirements: []
248
247
  rubyforge_project:
249
- rubygems_version: 2.6.1
248
+ rubygems_version: 2.4.5.1
250
249
  signing_key:
251
250
  specification_version: 4
252
251
  summary: Simple (but safe) token authentication for Rails apps or API with Devise.
@@ -291,6 +290,5 @@ test_files:
291
290
  - gemfiles/ruby_1.9.3_rails_3.2.gemfile
292
291
  - gemfiles/rails_4_devise_3.gemfile.lock
293
292
  - gemfiles/rails_5_devise_4.gemfile.lock
294
- - gemfiles/ruby_1.9.3_rails_3.2.gemfile.lock
295
293
  - Appraisals
296
294
  has_rdoc:
@@ -1,151 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- simple_token_authentication (1.15.0)
5
- actionmailer (>= 3.2.6, < 6)
6
- actionpack (>= 3.2.6, < 6)
7
- devise (>= 3.2, < 6)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (3.2.22.5)
13
- actionpack (= 3.2.22.5)
14
- mail (~> 2.5.4)
15
- actionpack (3.2.22.5)
16
- activemodel (= 3.2.22.5)
17
- activesupport (= 3.2.22.5)
18
- builder (~> 3.0.0)
19
- erubis (~> 2.7.0)
20
- journey (~> 1.0.4)
21
- rack (~> 1.4.5)
22
- rack-cache (~> 1.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.2.1)
25
- activemodel (3.2.22.5)
26
- activesupport (= 3.2.22.5)
27
- builder (~> 3.0.0)
28
- activerecord (3.2.22.5)
29
- activemodel (= 3.2.22.5)
30
- activesupport (= 3.2.22.5)
31
- arel (~> 3.0.2)
32
- tzinfo (~> 0.3.29)
33
- activesupport (3.2.22.5)
34
- i18n (~> 0.6, >= 0.6.4)
35
- multi_json (~> 1.0)
36
- appraisal (2.1.0)
37
- bundler
38
- rake
39
- thor (>= 0.14.0)
40
- arel (3.0.3)
41
- bcrypt (3.1.11)
42
- builder (3.0.4)
43
- coderay (1.1.1)
44
- devise (3.5.10)
45
- bcrypt (~> 3.0)
46
- orm_adapter (~> 0.1)
47
- railties (>= 3.2.6, < 5)
48
- responders
49
- thread_safe (~> 0.1)
50
- warden (~> 1.2.3)
51
- diff-lcs (1.2.5)
52
- erubis (2.7.0)
53
- hike (1.2.3)
54
- i18n (0.7.0)
55
- inch (0.7.1)
56
- pry
57
- sparkr (>= 0.2.0)
58
- term-ansicolor
59
- yard (~> 0.8.7.5)
60
- journey (1.0.4)
61
- json (1.8.6)
62
- mail (2.5.4)
63
- mime-types (~> 1.16)
64
- treetop (~> 1.4.8)
65
- method_source (0.8.2)
66
- mime-types (1.25.1)
67
- mongoid (3.1.7)
68
- activemodel (~> 3.2)
69
- moped (~> 1.4)
70
- origin (~> 1.0)
71
- tzinfo (~> 0.3.29)
72
- moped (1.5.3)
73
- multi_json (1.12.1)
74
- origin (1.1.0)
75
- orm_adapter (0.5.0)
76
- polyglot (0.3.5)
77
- pry (0.10.4)
78
- coderay (~> 1.1.0)
79
- method_source (~> 0.8.1)
80
- slop (~> 3.4)
81
- rack (1.4.7)
82
- rack-cache (1.6.1)
83
- rack (>= 0.4)
84
- rack-ssl (1.3.4)
85
- rack
86
- rack-test (0.6.3)
87
- rack (>= 1.0)
88
- railties (3.2.22.5)
89
- actionpack (= 3.2.22.5)
90
- activesupport (= 3.2.22.5)
91
- rack-ssl (~> 1.3.2)
92
- rake (>= 0.8.7)
93
- rdoc (~> 3.4)
94
- thor (>= 0.14.6, < 2.0)
95
- rake (12.0.0)
96
- rdoc (3.12.2)
97
- json (~> 1.4)
98
- responders (1.1.2)
99
- railties (>= 3.2, < 4.2)
100
- rspec (3.5.0)
101
- rspec-core (~> 3.5.0)
102
- rspec-expectations (~> 3.5.0)
103
- rspec-mocks (~> 3.5.0)
104
- rspec-core (3.5.4)
105
- rspec-support (~> 3.5.0)
106
- rspec-expectations (3.5.0)
107
- diff-lcs (>= 1.2.0, < 2.0)
108
- rspec-support (~> 3.5.0)
109
- rspec-mocks (3.5.0)
110
- diff-lcs (>= 1.2.0, < 2.0)
111
- rspec-support (~> 3.5.0)
112
- rspec-support (3.5.0)
113
- slop (3.6.0)
114
- sparkr (0.4.1)
115
- sprockets (2.2.3)
116
- hike (~> 1.2)
117
- multi_json (~> 1.0)
118
- rack (~> 1.0)
119
- tilt (~> 1.1, != 1.3.0)
120
- term-ansicolor (1.3.2)
121
- tins (~> 1.0)
122
- thor (0.19.4)
123
- thread_safe (0.3.5)
124
- tilt (1.4.1)
125
- tins (1.6.0)
126
- treetop (1.4.15)
127
- polyglot
128
- polyglot (>= 0.3.1)
129
- tzinfo (0.3.52)
130
- warden (1.2.6)
131
- rack (>= 1.0)
132
- yard (0.8.7.6)
133
-
134
- PLATFORMS
135
- ruby
136
-
137
- DEPENDENCIES
138
- actionmailer (>= 3.2.6, < 4)
139
- actionpack (>= 3.2.6, < 4)
140
- activerecord (>= 3.2.15, < 4)
141
- appraisal (~> 2.0)
142
- inch (~> 0.4)
143
- mime-types (< 3)
144
- mongoid (>= 3.1.0, < 7)
145
- rspec (~> 3.0)
146
- simple_token_authentication!
147
- term-ansicolor (~> 1.3.0)
148
- tins (< 1.7.0)
149
-
150
- BUNDLED WITH
151
- 1.13.6