wordjelly-auth 1.5.6 → 1.5.7

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: cb4536ea505f333787469baa514310da654bee56
4
- data.tar.gz: 83d02eb82a686cd873ec22270823d0434ac752ea
3
+ metadata.gz: df4832de0bbfda0dc48e6f1c939321a85d780113
4
+ data.tar.gz: 85d6e0d4b1494ad79b1e46f36dd85aa11330fce0
5
5
  SHA512:
6
- metadata.gz: d69fd60e2b15140154340cba2ad36618ab29cbb144e7040b52a2df62c9c7217d8664bec03f7fc234637a84fbafc4f87c7e5171a0cda0b873635246e224316541
7
- data.tar.gz: fc05f1a1731f0069b02e656777dff771b73d7d8a434a08b2f14968e1a31ce53dcd2941a9a127e3a98d84d31e5ad4c55ab04ece6b918e46bfc88c5a8182c3af84
6
+ metadata.gz: 151a9f9930a7a7e24be4d55a27ff6ef98fe7478db9621233463b772ef56d3f98aee377afb8b289f61c11abf895d1387125df6df8cf487aa8e058ffa5948adc29
7
+ data.tar.gz: 2acdfb6e97c4b1c37064a30cb6a8b6547bfb23863d0d0ff2a5d975fbdd0f72aa3faeaa752ade71436ef869fa00125c285e04d08308bfee6fa8e9fc349ea5d28f
@@ -182,12 +182,16 @@ module Auth::Concerns::DeviseConcern
182
182
 
183
183
  def do_before_request
184
184
 
185
+ puts "DO BEFORE REQUEST"
185
186
  clear_client_and_redirect_url
186
-
187
+
188
+ puts "SET CLIENT"
187
189
  set_client
188
-
190
+
191
+ puts "SET REDIRECT"
189
192
  set_redirect_url
190
193
 
194
+ puts "PROTECT JSON"
191
195
  protect_json_request
192
196
 
193
197
  end
@@ -31,24 +31,24 @@ module Auth::Concerns::TokenConcern
31
31
  end
32
32
 
33
33
 
34
- #puts "the tconditions become:"
35
- #puts TCONDITIONS
34
+ puts "the tconditions become:"
35
+ puts TCONDITIONS
36
36
 
37
- #puts "the last fallback becomes:"
38
- #puts LAST_FALLBACK
37
+ puts "the last fallback becomes:"
38
+ puts LAST_FALLBACK
39
39
  #LAST_FALLBACK = :devise unless defined? LAST_FALLBACK
40
40
 
41
41
 
42
42
  if Auth.configuration.enable_token_auth
43
43
 
44
- #puts "TCONDITIONS ARE: #{TCONDITIONS}"
44
+ puts "TCONDITIONS ARE: #{TCONDITIONS}"
45
45
  ## how many models are defined in the preinitializer
46
46
  auth_resources_count = Auth.configuration.auth_resources.size
47
47
 
48
- #puts "auth_resources count:"
49
- #puts auth_resources_count.to_s
48
+ puts "auth_resources count:"
49
+ puts auth_resources_count.to_s
50
50
  res = Auth.configuration.auth_resources.keys[0]
51
- #puts "the TCONDITIONS ARE: #{self::TCONDITIONS}"
51
+ puts "the TCONDITIONS ARE: #{self::TCONDITIONS}"
52
52
  #acts_as_token_authentication_handler_for(res.constantize,Auth.configuration.auth_resources[res].merge({:fallback => self::LAST_FALLBACK}).merge(self::TCONDITIONS || {}))
53
53
 
54
54
  ## if we have more than one auth resource model.
@@ -72,10 +72,10 @@ module Auth::Concerns::TokenConcern
72
72
  else
73
73
  ## in case there is only one authentication resource, then the conditions are like the last one in case there are multiple(like above.)
74
74
  res = Auth.configuration.auth_resources.keys[0]
75
- #puts "the last resource is:"
75
+ puts "the last resource is:"
76
76
  #puts "the action is: #{action_name}"
77
- #puts res.to_s
78
- #puts "conditions are:"
77
+ puts res.to_s
78
+ puts "conditions are:"
79
79
 
80
80
  acts_as_token_authentication_handler_for(res.constantize,Auth.configuration.auth_resources[res].merge({:fallback => self::LAST_FALLBACK}).merge(self::TCONDITIONS || {}))
81
81
  #puts "crosses token auth handler"
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordjelly-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bhargav
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-30 00:00:00.000000000 Z
11
+ date: 2019-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -374,6 +374,20 @@ dependencies:
374
374
  - - '='
375
375
  - !ruby/object:Gem::Version
376
376
  version: 5.0.2
377
+ - !ruby/object:Gem::Dependency
378
+ name: sprockets
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - '='
382
+ - !ruby/object:Gem::Version
383
+ version: 3.7.2
384
+ type: :runtime
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - '='
389
+ - !ruby/object:Gem::Version
390
+ version: 3.7.2
377
391
  - !ruby/object:Gem::Dependency
378
392
  name: sinatra
379
393
  requirement: !ruby/object:Gem::Requirement
@@ -476,16 +490,16 @@ dependencies:
476
490
  name: wj-mongoid-elasticsearch
477
491
  requirement: !ruby/object:Gem::Requirement
478
492
  requirements:
479
- - - "~>"
493
+ - - ">="
480
494
  - !ruby/object:Gem::Version
481
- version: 0.0.7
495
+ version: '0'
482
496
  type: :runtime
483
497
  prerelease: false
484
498
  version_requirements: !ruby/object:Gem::Requirement
485
499
  requirements:
486
- - - "~>"
500
+ - - ">="
487
501
  - !ruby/object:Gem::Version
488
- version: 0.0.7
502
+ version: '0'
489
503
  - !ruby/object:Gem::Dependency
490
504
  name: cloudinary
491
505
  requirement: !ruby/object:Gem::Requirement