ocean-rails 2.8.1 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean-rails.rb +2 -1
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a931fab98c0b77adbd93d419a208be124d3777a
|
4
|
+
data.tar.gz: a25db8fe648e413a944a42e7ebd2397f0c4452d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8a941fb42ab893e71e5f7211c1b807c2551a882fe448fd6fa7caf1608b48004f6f14bd549102034bd565044cc6fd847c909f617de7f6477b102842a331abcc
|
7
|
+
data.tar.gz: afe18d5dedc343d1b7e6a0221cfc512d15ed9e04a4bbeeb86fbb80811cfbe393935a01d23333724246654274ccda2d0bc0836ae21492094d5e27d17f743b601a
|
data/lib/ocean-rails.rb
CHANGED
@@ -40,12 +40,13 @@ end
|
|
40
40
|
# be specified: this will restrict all SQL queries accordingly.
|
41
41
|
#
|
42
42
|
def permit_with(status, user_id: 123, creator_uri: "https://api.example.com/v1/api_users/#{user_id}",
|
43
|
-
right: nil)
|
43
|
+
right: nil, group_names: [])
|
44
44
|
Api.stub(:permitted?).
|
45
45
|
and_return(double(:status => status,
|
46
46
|
:body => {'authentication' =>
|
47
47
|
{'user_id' => user_id,
|
48
48
|
'right' => right,
|
49
|
+
'group_names' => group_names,
|
49
50
|
'_links' => { 'creator' => {'href' => creator_uri,
|
50
51
|
'type' => 'application/json'}}}}))
|
51
52
|
end
|
data/lib/ocean/version.rb
CHANGED