ocean-rails 1.16.0 → 1.16.1

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: 4bd8c91795bbc8d08b2e92e02821f2855fdba12b
4
- data.tar.gz: c764149cdd4b63f5c3c6cb191d0530f751f79a07
3
+ metadata.gz: 6eb951de7297659f9c79367775f94d75ff8a2903
4
+ data.tar.gz: 33b32f1b9146fa0570294e064d6153a017121c40
5
5
  SHA512:
6
- metadata.gz: b4a5b175f37ecaa0d34416a113946317ce1cd0eadecf7f32b24795dff594589ec912d7e43527c509b1eab8c4d9fbc039b2f630cb8abae2ce0cda0d26e2b4f925
7
- data.tar.gz: 5b975ca74814db5dfa1649b469e809d8c9cd575299521306af2d265ec6e0996cc090c343e60075082d8f23a547f6f510d030994b25b77a0b5ca2b200d6cefd17
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
- * Oceam mailing list: http://groups.google.com/group/oceanframework
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.16.0"
2
+ VERSION = "1.16.1"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday