ocean-rails 1.15.3 → 1.15.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6afb3d4bcadf67703c87d2cc0516f48466bc8f05
4
- data.tar.gz: 5f6dd9ee89a954857b4e62c82c49d98bb4cc4eee
3
+ metadata.gz: 6eeaf73f4a281e3a327cb51f747a50fce55f2b85
4
+ data.tar.gz: badc5817375f4993e0d96386e5ca540a1b4fe2f4
5
5
  SHA512:
6
- metadata.gz: 8bd89ed2bec9419ce0b9796c5244f6ab77b9f2ca7362761a2a82e544982e017fbd94f3b4fd6851cb79134fd39e83ab0b631d5061c83d35021863dd6af17f2b81
7
- data.tar.gz: 4f8d1f5b5ce471f81aeb9f3219b3766aa8453faebeebae99b5eede9ec45b439e0a094e251c7041e17b5ebf24a1148dab51e1b0a57d72745e1be0a9de42c72ae9
6
+ metadata.gz: eb287598ebde9077d5b21a8e3d157dff3bc5a488a26ec421d0f70a9ec44a82f41e49d44fcee6d1a36eefd045bff4b9741b0c4740c9311021e9123b4dcdcda1d3
7
+ data.tar.gz: 5c60a78f3e6c2dae0f5b3f0740fb59348365aad3b8dd29c9c5464a53ab56adf9b9e175c0c941f57e8c2956371b755f69463b65badeb0d934d2981bb402a5aa14
data/README.rdoc CHANGED
@@ -5,6 +5,8 @@ for the Ruby on Rails part of the architecture.
5
5
 
6
6
  Ocean requires Ruby 2.0 and Ruby on Rails 4.0.0 or later.
7
7
 
8
+ [![Gem Version](https://badge.fury.io/rb/ocean-rails.png)](http://badge.fury.io/rb/ocean-rails)
9
+
8
10
  === Documentation
9
11
  * Ocean gem API: http://rdoc.info/github/OceanDev/ocean-rails
10
12
  * Ocean framework: http://wiki.oceanframework.net
data/lib/ocean/api.rb CHANGED
@@ -72,7 +72,7 @@ class Api
72
72
  end
73
73
 
74
74
  #
75
- # Convenience method to make an internal GET request to the Ocean Api. The +resource_name+
75
+ # Convenience method to make an internal +GET+ request to the Ocean Api. The +resource_name+
76
76
  # is used to obtain the latest version string of the resource. The arg +path+ is the
77
77
  # local path, +args+ is a hash of query args, and +headers+ a hash of extra HTTP headers.
78
78
  #
@@ -82,7 +82,7 @@ class Api
82
82
  def self.get(*args) call(INTERNAL_OCEAN_API_URL, :get, *args); end
83
83
 
84
84
  #
85
- # Convenience method to make an internal POST request to the Ocean Api. The +resource_name+
85
+ # Convenience method to make an internal +POST+ request to the Ocean Api. The +resource_name+
86
86
  # is used to obtain the latest version string of the resource. The arg +path+ is the
87
87
  # local path, +args+ is a hash of query args, and +headers+ a hash of extra HTTP headers.
88
88
  #
@@ -92,7 +92,7 @@ class Api
92
92
  def self.post(*args) call(INTERNAL_OCEAN_API_URL, :post, *args); end
93
93
 
94
94
  #
95
- # Convenience method to make an internal PUT request to the Ocean Api. The +resource_name+
95
+ # Convenience method to make an internal +PUT+ request to the Ocean Api. The +resource_name+
96
96
  # is used to obtain the latest version string of the resource. The arg +path+ is the
97
97
  # local path, +args+ is a hash of query args, and +headers+ a hash of extra HTTP headers.
98
98
  #
@@ -102,7 +102,7 @@ class Api
102
102
  def self.put(*args) call(INTERNAL_OCEAN_API_URL, :put, *args); end
103
103
 
104
104
  #
105
- # Convenience method to make an internal DELETE request to the Ocean Api. The +resource_name+
105
+ # Convenience method to make an internal +DELETE+ request to the Ocean Api. The +resource_name+
106
106
  # is used to obtain the latest version string of the resource. The arg +path+ is the
107
107
  # local path, +args+ is a hash of query args, and +headers+ a hash of extra HTTP headers.
108
108
  #
@@ -123,8 +123,8 @@ class Api
123
123
  end
124
124
 
125
125
  #
126
- # Makes an internal PURGE call to all Varnish instances. The call is made in parallel.
127
- # Varnish will only accept PURGE requests coming from the local network.
126
+ # Makes an internal +PURGE+ call to all Varnish instances. The call is made in parallel.
127
+ # Varnish will only accept +PURGE+ requests coming from the local network.
128
128
  #
129
129
  def self.purge(*args)
130
130
  LOAD_BALANCERS.each do |host|
@@ -133,8 +133,8 @@ class Api
133
133
  end
134
134
 
135
135
  #
136
- # Makes an internal BAN call to all Varnish instances. The call is made in parallel.
137
- # Varnish will only accept PURGE requests coming from the local network.
136
+ # Makes an internal +BAN+ call to all Varnish instances. The call is made in parallel.
137
+ # Varnish will only accept +BAN+ requests coming from the local network.
138
138
  #
139
139
  def self.ban(path)
140
140
  LOAD_BALANCERS.each do |host|
@@ -235,7 +235,7 @@ class Api
235
235
  # These are the default controller actions. The purpose of this constant is to map action
236
236
  # names to hyperlink and HTTP method (for authorisation purposes). Don't be alarmed by the
237
237
  # non-standard GET* - it's purely symbolic and is never used as an actual HTTP method.
238
- # We need it to differentiate between a GET of a member and a GET of a collection of members.
238
+ # We need it to differentiate between a +GET+ of a member and a +GET+ of a collection of members.
239
239
  # The +extra_actions+ keyword in +ocean_resource_controller+ follows the same format.
240
240
  #
241
241
  DEFAULT_ACTIONS = {
@@ -52,6 +52,8 @@ module Ocean
52
52
  # is sometimes useful for purely internal attributes which should never appear
53
53
  # in error descriptions.
54
54
  #
55
+ # ocean_resource_controller no_validation_errors_on: [:password_hash, :password_salt]
56
+ #
55
57
  # +extra_actions+: a hash containing information about extra controller actions
56
58
  # apart from the standard Rails ones of +index+, +show+, +create+, +update+, and
57
59
  # +destroy+. One entry per extra action is required in order to process authentication
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.15.3"
2
+ VERSION = "1.15.4"
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.15.3
4
+ version: 1.15.4
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-14 00:00:00.000000000 Z
11
+ date: 2013-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday