ocean-rails 1.15.5 → 1.15.6

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: c11240079755460422d6becb1ea889032c65b786
4
- data.tar.gz: ecc95bea032695b0e29fc8fadbc3404011ce3e1f
3
+ metadata.gz: be47bcf00822dced03def253567ba0c3bfca96d8
4
+ data.tar.gz: add62de22d8ee29aaaeadd8f30db56948107b94b
5
5
  SHA512:
6
- metadata.gz: c070eed5555de33b9dbc0bca3294019baa1817afba6a234060b50ffb3e464a174591d7ae2d6bf19e20d83afbb82d489b2ce50252466615d80d43acd235c0513c
7
- data.tar.gz: 716996acf1133724c25b5ff9524a7c840bc3f598613d96f58202fb7baf802c32273fb6f06f39dc745d90a0646ee774a2546238f61f1b17579cb4eab016d27598
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 in every update operation. If an API consumer submits data where any
46
- # of these attributes isn't present, an API error will be generated.
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
- cattr_accessor :ocean_resource_controller_required_attributes
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
- self.ocean_resource_controller_required_attributes = required_attributes
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
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.15.5"
2
+ VERSION = "1.15.6"
3
3
  end
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.5
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
- Ocean is an architecture for creating server-oriented architectures (SOAs) featuring a full separation of back and front end functionality. It consists of two separate parts which can be used separately or in conjunction: “Ocean” is the back end part, and “OceanFront” is the front end.
183
-
184
- Ocean is a complete and very scalable solution for RESTful web services and web applications, featuring aggressive caching and full HTTP client abstraction. Ocean fully implements HATEOAS principles, allowing the programming object model to move fully out onto the ‘net, while maintaining a very high degree of decoupling of server and client.
185
-
186
- OceanFront is a cross-platform Javascript front end browser client library supporting all major browsers and platforms.
187
-
188
- Together, Ocean and OceanFront allow you to write front end code completely independent of browser type and client OS, and back end code completely agnostic of whether it is called by a client browser or another server system.
189
-
190
- Ocean is also a development, staging and deployment pipeline featuring continuous integration and testing in a TDD and/or BDD environment. Ocean can be used for continuous deployment or for scheduled releases. Front end tests are run in parallel using a matrix of operating systems and browser types. The pipeline can very easily be extended with new development branches and quality assurance environments, all automatically integration tested and deployed.
191
-
192
- Ocean is an open source project.
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 contains common Ruby and Rails code for Ocean.
272
+ summary: This gem implements common Ocean behaviour for Ruby and Ruby on Rails.
268
273
  test_files: []