wordjelly-auth 1.5.8 → 1.5.9

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: a4c7a6fa2414fecf2cf21099f1feee06e5194cde
4
- data.tar.gz: 315f03e8fb5a9ae0915685ccc843b0a2664ce4f8
3
+ metadata.gz: 4f340b84740af8ff55f111656ddf05c5ece1c83e
4
+ data.tar.gz: 6fab7c11dd1f484f2f5ecb78c3855e61dbc643a8
5
5
  SHA512:
6
- metadata.gz: 142f82330d3e22094fc4ceb62cf8c60bc4badd3f975b1630e1ea7138cb281a1c6e2ccb8bcd6a9a4f639a4c1282f2f785d265060d03380b065a63b1553ff2ef84
7
- data.tar.gz: 5a4934e0d8af79042352195173f0b527e18f58e89604f6f40409ac4dad2a7d9ff6ce31bd0f001d359b09fa1f124c95e8c47fa60a93b4bc18e2e192228ee7d209
6
+ metadata.gz: 91b269077cfbd6c8833d0578ab82893a3637ff618ae5d2930440708f107309ce50b918abf33e65718409094a6f8092ce301c18cb581ca8c3527c757ae014bae7
7
+ data.tar.gz: e041a7c9b8401b3cedb3a37ae482255bcadc8c3ad07c534a1e0b43fdc335d873998a40e15cf09d785953fa3a2722e213d37d492a307012dee67433a149b3f802
@@ -1,21 +1,15 @@
1
1
  module ActionDispatch::Routing
2
2
  class Mapper
3
-
4
-
5
3
  def get_scope(model)
6
4
  scope_path = "/"
7
- ## here there is the problem of repeats
8
- ## because we have the model class as
9
- ## so how to split that for the scope
10
- ## normally i had shopping/payments/
11
- #puts Auth.configuration.send("#{model}_class").underscore.pluralize.to_s
12
-
5
+
13
6
  Auth.configuration.send("#{model}_class").underscore.pluralize.scan(/(?<scope_path>.+?)\/(?<collection>[A-Za-z_]+)$/) do
14
7
  if Regexp.last_match[:scope_path]
15
8
  scope_path = scope_path + Regexp.last_match[:scope_path]
16
9
  end
17
10
  end
18
11
 
12
+ #first run cyclically and check if the things change.
19
13
  #puts "scope path is: #{scope_path}"
20
14
  scope_path
21
15
 
@@ -33,6 +27,14 @@ module ActionDispatch::Routing
33
27
 
34
28
  end
35
29
 
30
+ ## now what flashing?
31
+ ## or what ?
32
+ ## a spec?
33
+ ## okay let me add the images
34
+ ## keep making progress
35
+ ## and then we test it later.
36
+ ## let me write flashing.
37
+
36
38
  def get_collection(model)
37
39
  collection = nil
38
40
  Auth.configuration.send("#{model}_class").underscore.pluralize.scan(/(?<scope_path>.+?)\/(?<collection>[A-Za-z_]+)$/) do
@@ -47,8 +49,6 @@ module ActionDispatch::Routing
47
49
  Auth.configuration.send("#{model}_controller")
48
50
  end
49
51
 
50
-
51
-
52
52
  ##@param app_route_resources[Hash] ->
53
53
  ##key:resource[String] -> the name of the resource for which omniauth routes are to be generated.
54
54
  ##value:opts[Hash] -> the options specifying the views, controllers etc for omniauth.
@@ -1,7 +1,7 @@
1
1
  module Auth
2
2
  module TwoFactorOtp
3
3
  # so this is complicated.
4
- TYPHOEUS_TIMEOUT = 20
4
+ TYPHOEUS_TIMEOUT = 30
5
5
  ## the currently being used resource.
6
6
  mattr_accessor :resource
7
7
 
@@ -53,6 +53,9 @@ module Auth
53
53
  From: template_sender_id,
54
54
  TemplateName: template_name,
55
55
  }.merge(var_hash)
56
+
57
+ puts "url is: #{url}"
58
+ puts "body is: #{body}"
56
59
 
57
60
  response = Typhoeus.post(
58
61
  url,
data/lib/auth/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Auth
2
- VERSION = "1.5.8"
2
+ VERSION = "1.5.9"
3
3
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordjelly-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.8
4
+ version: 1.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bhargav
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-04 00:00:00.000000000 Z
11
+ date: 2020-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: aws-sdk
14
+ name: aws-sdk-sns
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="