ask-auth 0.2.1 → 0.2.3
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/ask/auth/providers/env.rb +2 -0
- data/lib/ask/auth/providers/file.rb +1 -0
- data/lib/ask/auth/version.rb +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: 268475822d2ec9d8bc5ab6d195f4ea3825e0aff7791ff47a74ea8f659171a75b
|
|
4
|
+
data.tar.gz: f6b5c88522979f20a4abab042318c563cea020be1d158e5e44f8a8185e54a682
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4668da8f0e6cd3785047da39491b9dfea164c498520b0865e5c31cf5d7e3150c0dfab75fb3db24fd09f091550b830bd10d20ccd83c746f2921b68104b65c1658
|
|
7
|
+
data.tar.gz: 1ba6532f00081411fdedfd54ca8926f4bacdafd8ae7b5952aafc5c84232c4fd8e7f883d3b89e50ef5a7d4df7251055ef3b8489c1a216f8728f033470c9e1cc28
|
|
@@ -12,6 +12,8 @@ module Ask
|
|
|
12
12
|
class Env
|
|
13
13
|
# Returns the credential value from ENV, or nil if not found.
|
|
14
14
|
def call(name, user: nil)
|
|
15
|
+
return nil unless name.is_a?(String) || name.is_a?(Symbol)
|
|
16
|
+
|
|
15
17
|
conventions(name).each do |key|
|
|
16
18
|
value = ENV[key.to_s]
|
|
17
19
|
return value unless value.nil?
|
data/lib/ask/auth/version.rb
CHANGED