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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a61b3ff0ce74f62050af6db2e58870eea435f15
4
- data.tar.gz: 119e575e58675abcac2920ab8316bf688a913981
3
+ metadata.gz: 5a931fab98c0b77adbd93d419a208be124d3777a
4
+ data.tar.gz: a25db8fe648e413a944a42e7ebd2397f0c4452d9
5
5
  SHA512:
6
- metadata.gz: 619aa4bbbb4a6897d04292337b2e1f81acba21d5346a0f7e9d11350ffdd868648cd1009bbd416c4f85de040d957b5f3a4e55937545c88ae53db858dc31652bdc
7
- data.tar.gz: 296feb56d1e75d9f83c40d69e3e21c3f22aeff6ec0071d54c2d477e9fa6c9fa42a758221a0f2552db38c21937a501d4c38a32b04c9f8f78a9727c3bf5898b88a
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.8.1"
2
+ VERSION = "2.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson