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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ec4eccfedfb4439c5992d1f1b68aef4d7c6c9bc0172ddc544c125964f8f441b
4
- data.tar.gz: 346c819627d1e06682a4bab819c1686cfad0ae2cd1a56f17c227fc1ae88e9af6
3
+ metadata.gz: d10c831ad81b6181aaa64e639436d80ee85a467ab14688e984d0af6110e031d1
4
+ data.tar.gz: a2ef0b65a10422bbf0f6071707be07ed0627929cad9def3f1550b1bb78ba11c0
5
5
  SHA512:
6
- metadata.gz: 72055e00a839c206acd9865d74751091b0aed518801bacba788293866b24612a9ac012efa29e8d1bb1a0c411d16f60dd446d19ba88d359f6da14bea70201178b
7
- data.tar.gz: 2da237a783db8a4f69aa38d74642277878bf0eed5bace48313c3db3a492de3bdf5fd0ef30bebeb1d1b7b443192a80db8b4496dcfbe79024ecfcdc12675cf7b5f
6
+ metadata.gz: b4a827eb2e0aa6ccaee34e98e70190133a8fef7ff5c047932a8967b91cb00b67cd2d045b29ccdd0ffbc3cc26f96aff68517bfcb5b63558bf58297e9d0694d008
7
+ data.tar.gz: f81e7b9506fdab1b81348776d390c3633fcf4ac0108efd3a9db28a9abcef6fa150de0da4608abe010442107d12b3443b2543057428b3e4b5e1bd5f4692622822
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octopus_auth (0.1.2)
4
+ octopus_auth (0.1.3)
5
5
  activerecord (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -6,7 +6,7 @@ module OctopusAuth
6
6
  end
7
7
 
8
8
  def valid?(*required_scopes)
9
- access_all_scopes? || required_scopes.all? { |scope| access_scopes.include?(scope.to_s) }
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)
@@ -1,3 +1,3 @@
1
1
  module OctopusAuth
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler