ocean-rails 1.15.5 → 1.15.6
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/lib/ocean/ocean_resource_controller.rb +11 -4
- data/lib/ocean/version.rb +1 -1
- metadata +19 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be47bcf00822dced03def253567ba0c3bfca96d8
|
4
|
+
data.tar.gz: add62de22d8ee29aaaeadd8f30db56948107b94b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3db68c5e99efe02cc9a0dbef1d21f1fcc5cf8336d0d89df02e84d9896246365ebded6e180e0d64a05756fe527f90518c55c86b6786329a7c6527e364a5f4863
|
7
|
+
data.tar.gz: d7bda9af5441be9c84fd9236ecb9ccc97fb330faea13426ced9a8532bd6449692adc92d39e51703f9e75bb7ca77a8308258ea37b0210b5a2ca99e7a2eabf87c3
|
@@ -42,11 +42,15 @@ module Ocean
|
|
42
42
|
# three optional keyword parameters:
|
43
43
|
#
|
44
44
|
# +required_attributes+: a list of keywords naming model attributes which must be
|
45
|
-
# present
|
46
|
-
#
|
45
|
+
# present. If an API consumer submits data where any of these attributes isn't present,
|
46
|
+
# an API error will be generated.
|
47
47
|
#
|
48
48
|
# ocean_resource_controller required_attributes: [:lock_version, :title]
|
49
49
|
#
|
50
|
+
# +permitted_attributes+: a list of keywords naming model attributes which may be
|
51
|
+
# present. Attributes not in +permitted_attributes+ or +required_attributes+ will be
|
52
|
+
# filtered away.
|
53
|
+
#
|
50
54
|
# +no_validation_errors_on+: a symbol, string, or an array of symbols and strings. Error
|
51
55
|
# descriptions in 422 responses will not include the enumerated attributes. This
|
52
56
|
# is sometimes useful for purely internal attributes which should never appear
|
@@ -69,14 +73,17 @@ module Ocean
|
|
69
73
|
# Thus, +extra_actions+ maps actions to hyperlink names and HTTP methods.
|
70
74
|
#
|
71
75
|
def ocean_resource_controller(required_attributes: [:lock_version, :name, :description],
|
76
|
+
permitted_attributes: [],
|
72
77
|
no_validation_errors_on: [],
|
73
78
|
extra_actions: {}
|
74
79
|
)
|
75
80
|
cattr_accessor :ocean_resource_controller_extra_actions
|
76
|
-
|
81
|
+
cattr_accessor :ocean_resource_controller_required_attributes
|
82
|
+
cattr_accessor :ocean_resource_controller_permitted_attributes
|
77
83
|
cattr_accessor :ocean_resource_controller_no_validation_errors_on
|
78
84
|
self.ocean_resource_controller_extra_actions = extra_actions
|
79
|
-
|
85
|
+
self.ocean_resource_controller_required_attributes = required_attributes
|
86
|
+
self.ocean_resource_controller_permitted_attributes = permitted_attributes
|
80
87
|
self.ocean_resource_controller_no_validation_errors_on = no_validation_errors_on
|
81
88
|
end
|
82
89
|
end
|
data/lib/ocean/version.rb
CHANGED
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: 1.15.
|
4
|
+
version: 1.15.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
@@ -178,18 +178,23 @@ dependencies:
|
|
178
178
|
- - ~>
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '4.0'
|
181
|
-
description:
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
181
|
+
description: "Ocean is an architecture for creating server-oriented architectures
|
182
|
+
(SOAs) in the cloud. \nIt consists of two separate parts which can be used separately
|
183
|
+
or in conjunction: Ocean and OceanFront.\n\nOcean is a complete and very scalable
|
184
|
+
back end solution for RESTful JSON web services and web applications, \nfeaturing
|
185
|
+
aggressive caching and full HTTP client abstraction. Ocean fully implements HATEOAS
|
186
|
+
principles, \nallowing the programming object model to move fully out onto the ‘net,
|
187
|
+
while maintaining a very high degree \nof decoupling.\n\nOceanFront is a cross-platform
|
188
|
+
Javascript front end browser client library supporting all major browsers and \nplatforms.
|
189
|
+
OceanFront is object oriented, widget-based and HTML-less.\n\nTogether, Ocean and
|
190
|
+
OceanFront allow you to write front end code completely independent of browser type
|
191
|
+
and client \nOS, and back end code completely agnostic of whether it is called by
|
192
|
+
a client browser or another server system.\n\nOcean is also a development, staging
|
193
|
+
and deployment pipeline featuring continuous integration and testing in a \nTDD
|
194
|
+
and/or BDD environment. Ocean can be used for continuous deployment or for scheduled
|
195
|
+
releases. Front end tests \nare run in parallel using a matrix of operating systems
|
196
|
+
and browser types. The pipeline can very easily be extended \nwith new development
|
197
|
+
branches and quality assurance environments with automatic testing and deployment."
|
193
198
|
email:
|
194
199
|
- peter@peterbengtson.com
|
195
200
|
executables: []
|
@@ -264,5 +269,5 @@ rubyforge_project:
|
|
264
269
|
rubygems_version: 2.0.3
|
265
270
|
signing_key:
|
266
271
|
specification_version: 4
|
267
|
-
summary: This gem
|
272
|
+
summary: This gem implements common Ocean behaviour for Ruby and Ruby on Rails.
|
268
273
|
test_files: []
|