octopus_auth 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/octopus_auth/access_scope_validator.rb +1 -1
- data/lib/octopus_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d10c831ad81b6181aaa64e639436d80ee85a467ab14688e984d0af6110e031d1
|
4
|
+
data.tar.gz: a2ef0b65a10422bbf0f6071707be07ed0627929cad9def3f1550b1bb78ba11c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a827eb2e0aa6ccaee34e98e70190133a8fef7ff5c047932a8967b91cb00b67cd2d045b29ccdd0ffbc3cc26f96aff68517bfcb5b63558bf58297e9d0694d008
|
7
|
+
data.tar.gz: f81e7b9506fdab1b81348776d390c3633fcf4ac0108efd3a9db28a9abcef6fa150de0da4608abe010442107d12b3443b2543057428b3e4b5e1bd5f4692622822
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ module OctopusAuth
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def valid?(*required_scopes)
|
9
|
-
access_all_scopes? || required_scopes.
|
9
|
+
access_all_scopes? || required_scopes.any? { |scope| access_scopes.include?(scope.to_s) }
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.valid?(access_token, *required_scopes)
|
data/lib/octopus_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopus_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TINYpulse Devops
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|