ocean-rails 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/lib/ocean-rails.rb +6 -0
- data/lib/ocean/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6eb951de7297659f9c79367775f94d75ff8a2903
|
|
4
|
+
data.tar.gz: 33b32f1b9146fa0570294e064d6153a017121c40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 297addb38efb3762a5fc2da0e9d482da97440ef0fffb6eb25fd0d39c1f52423ce7881104eb8de9529473fd752939b431a10c99cdab7f3d52c47e1bb36d1ed4ce
|
|
7
|
+
data.tar.gz: 3cdf60d75b61819a9dc1ddc5af0c79e67bc476c0744d96dfa5b688e1bf772e39c7197c467e9190b78e2329befed95c248eb585a4179327f55a8a9137a9251d79
|
data/README.rdoc
CHANGED
|
@@ -9,10 +9,10 @@ Ocean requires Ruby 2.0 and Ruby on Rails 4.0.0 or later.
|
|
|
9
9
|
|
|
10
10
|
=== Documentation
|
|
11
11
|
* Ocean gem API: http://rdoc.info/github/OceanDev/ocean-rails
|
|
12
|
-
* Ocean framework: http://wiki.oceanframework.net
|
|
13
|
-
* Ocean back end tutorial: http://wiki.oceanframework.net/index.php/Tutorial
|
|
14
12
|
* Ocean gem on Rubygems: https://rubygems.org/gems/ocean-rails
|
|
15
|
-
*
|
|
13
|
+
* Ocean framework: http://wiki.oceanframework.net
|
|
14
|
+
* Ocean mailing list: http://groups.google.com/group/oceanframework
|
|
15
|
+
* Ocean blog: http://blog.oceanframework.net
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
=== Creating an Ocean Rails app
|
data/lib/ocean-rails.rb
CHANGED
|
@@ -36,3 +36,9 @@ def permit_with(status, user_id: 123, creator_uri: "https://api.example.com/v1/a
|
|
|
36
36
|
'_links' => { 'creator' => {'href' => creator_uri,
|
|
37
37
|
'type' => 'application/json'}}}}))
|
|
38
38
|
end
|
|
39
|
+
|
|
40
|
+
def deny_with(status, *error_messages)
|
|
41
|
+
Api.stub(:permitted?).
|
|
42
|
+
and_return(double(:status => status,
|
|
43
|
+
:body => {'_api_error' => error_messages}))
|
|
44
|
+
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: 1.16.
|
|
4
|
+
version: 1.16.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: 2013-08-
|
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|