mais-access 1.0.6 → 1.0.7
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.
- checksums.yaml +4 -4
- data/lib/mais-access/dispatcher.rb +4 -1
- data/mais-access.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4040bf29b94e114552132c19526dad52b00c1a908cc14f5723f4446d4ac1063
|
|
4
|
+
data.tar.gz: 346fe0f6e32e3a6df68d2898f1964befce19c67f1ab354c62af5e82c45e986aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05f792c13094ecc7694b48d44bb0d3fd20199887c4ffd4a9513c85f4a7796537c5b4b23faee27ef764bfaffc6afe469e23919f33fadf1286224224ff364cc9a2
|
|
7
|
+
data.tar.gz: 33057723418743e8819f6b318f7e551ef22e24e062a9969acc0b933213416e2da1d0ffbf8302fae0623cf29263db2e62d7983f0795164fec834e7a02fc6f85d3
|
|
@@ -18,13 +18,16 @@ module MaisAccess
|
|
|
18
18
|
# Parse the JSON response
|
|
19
19
|
body = JSON.parse(response.body)
|
|
20
20
|
|
|
21
|
+
Rails.logger.info(response.code)
|
|
22
|
+
Rails.logger.info(response.message)
|
|
23
|
+
Rails.logger.info(response.class.name)
|
|
24
|
+
|
|
21
25
|
# If the user is valid, set the current mais user and passes the filter action
|
|
22
26
|
if response.code == '200' && body["authenticated"]
|
|
23
27
|
@mais_user = MaisAccess::User.new(body["user"])
|
|
24
28
|
return true
|
|
25
29
|
end
|
|
26
30
|
rescue => e
|
|
27
|
-
Rails.logger.info(e)
|
|
28
31
|
# Something went wrong, so save our butts and don't them in.
|
|
29
32
|
end
|
|
30
33
|
end
|
data/mais-access.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = "mais-access"
|
|
6
|
-
spec.version = "1.0.
|
|
6
|
+
spec.version = "1.0.7"
|
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
|
8
8
|
spec.author = "Elias Gabriel"
|
|
9
9
|
spec.email = "me@eliasfgabriel.com"
|