ocean-rails 3.0.0 → 3.0.1
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 -2
- data/lib/ocean/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cc5dc4be08f61d82e7257188c0b43a9f7b92003
|
4
|
+
data.tar.gz: b6d6ac63a74cac60c4135809712bdfe029524eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21de7027c4e5bda8ec2997a827af0f7e410f12d5e24db5052138dc7410ac3d264da9d3ee390cd14849a9fea1a7ec43af39f184e82758417d8b8745c8e38fefc5
|
7
|
+
data.tar.gz: da59e85eeeb42fa80793b3488c785da70b4dd458cb57c7a612ac78ab75a38cbdb7cfbf632395e06b3015bf208001bc21150669566acbee09ca41cb32e0f629c1
|
data/lib/ocean-rails.rb
CHANGED
@@ -41,7 +41,7 @@ end
|
|
41
41
|
#
|
42
42
|
def permit_with(status, user_id: 123, creator_uri: "https://api.example.com/v1/api_users/#{user_id}",
|
43
43
|
right: nil, group_names: [])
|
44
|
-
Api.
|
44
|
+
allow(Api).to receive(:permitted?).
|
45
45
|
and_return(double(:status => status,
|
46
46
|
:body => {'authentication' =>
|
47
47
|
{'user_id' => user_id,
|
@@ -57,7 +57,7 @@ end
|
|
57
57
|
# given status and a body containing a standard API error with the given error messages.
|
58
58
|
#
|
59
59
|
def deny_with(status, *error_messages)
|
60
|
-
Api.
|
60
|
+
allow(Api).to receive(:permitted?).
|
61
61
|
and_return(double(:status => status,
|
62
62
|
:body => {'_api_error' => error_messages}))
|
63
63
|
end
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rspec-rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: webmock
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|