scrivito_sdk 1.17.0.rc3 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/cms/scrivito/application_error.rb +13 -0
  4. data/app/cms/scrivito/backend/base_index.rb +49 -0
  5. data/app/cms/scrivito/backend/index.rb +0 -41
  6. data/app/cms/scrivito/backend/parent_path_index.rb +1 -1
  7. data/app/cms/scrivito/backend/path_index.rb +1 -1
  8. data/app/cms/scrivito/backend/permalink_index.rb +1 -1
  9. data/app/cms/scrivito/cms_rest_api.rb +8 -3
  10. data/app/cms/scrivito/controller_actions.rb +1 -1
  11. data/app/cms/scrivito/generator_helper.rb +5 -3
  12. data/app/cms/scrivito/internal_error.rb +8 -0
  13. data/app/cms/scrivito/layout_tags.rb +1 -1
  14. data/app/cms/scrivito/model_library.rb +1 -1
  15. data/app/cms/scrivito/obj_class_not_found.rb +7 -0
  16. data/app/cms/scrivito/resource_not_found.rb +14 -0
  17. data/app/cms/scrivito/scrivito_error.rb +7 -0
  18. data/app/cms/scrivito/sdk_engine.rb +1 -1
  19. data/app/cms/scrivito/transformation_definition_error.rb +7 -0
  20. data/app/cms/scrivito/transformation_error.rb +13 -0
  21. data/app/cms/scrivito/transformation_source_error.rb +7 -0
  22. data/app/controllers/scrivito/binary_redirect_controller.rb +2 -2
  23. data/app/controllers/scrivito/ui_controller.rb +1 -1
  24. data/config/ca-bundle.crt +731 -820
  25. data/lib/assets/javascripts/scrivito.js +1 -1
  26. data/lib/assets/javascripts/scrivito_ui_redirect.js +1 -1
  27. data/lib/assets/javascripts/scrivito_with_js_sdk.js +1 -1
  28. data/lib/assets/stylesheets/scrivito_editing.css +3 -4
  29. data/lib/generators/scrivito/page/page_generator.rb +1 -1
  30. data/lib/generators/scrivito/page/templates/model.erb +1 -1
  31. data/lib/generators/scrivito/widget/templates/model.erb +1 -1
  32. data/lib/generators/scrivito/widget/widget_generator.rb +1 -1
  33. metadata +34 -12
  34. data/app/cms/scrivito/errors.rb +0 -55
@@ -4,7 +4,7 @@ module Scrivito
4
4
  source_root File.expand_path('../templates', __FILE__)
5
5
 
6
6
  argument :name, type: :string
7
- argument :attributes, type: :array, default: [], banner: 'attribute:type attribute:type'
7
+ argument :attrs, type: :array, default: [], banner: 'attribute:type attribute:type'
8
8
 
9
9
  def create_model
10
10
  template 'model.erb', "app/models/#{file_name}.rb"
@@ -3,7 +3,7 @@ class <%= class_name %> < Obj
3
3
  attribute :body, :widgetlist
4
4
  attribute :child_order, :referencelist
5
5
  attribute :tags, :stringlist
6
- <% attributes.each do |attr| -%>
6
+ <% attrs.each do |attr| -%>
7
7
  <%= Scrivito::GeneratorHelper.attribute_definition(attr) %>
8
8
  <% end -%>
9
9
  end
@@ -1,5 +1,5 @@
1
1
  class <%= class_name %> < Widget
2
- <% attributes.each do |attr| -%>
2
+ <% attrs.each do |attr| -%>
3
3
  <%= Scrivito::GeneratorHelper.attribute_definition(attr) %>
4
4
  <% end -%>
5
5
  end
@@ -4,7 +4,7 @@ module Scrivito
4
4
  source_root File.expand_path('../templates', __FILE__)
5
5
 
6
6
  argument :name, type: :string
7
- argument :attributes, type: :array, default: [], banner: 'attribute:type attribute:type'
7
+ argument :attrs, type: :array, default: [], banner: 'attribute:type attribute:type'
8
8
 
9
9
  def create_model
10
10
  template 'model.erb', "app/models/#{file_name}.rb"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0.rc3
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
- - Infopark Group GmbH
7
+ - JustRelate Group GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-09 00:00:00.000000000 Z
11
+ date: 2022-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -142,32 +142,46 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.7'
145
+ version: '1.9'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.7'
152
+ version: '1.9'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rails
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 5.2.0
159
+ version: 7.0.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 5.2.0
166
+ version: 7.0.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: sprockets-rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.1'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '3.1'
167
181
  description: Scrivito is a SaaS Content Management Service, built for digital agencies
168
182
  and medium to large sized businesses. For more information about Scrivito, please
169
183
  visit https://www.scrivito.com/rails/documentation
170
- email: info@scrivito.com
184
+ email: info@justrelate.com
171
185
  executables: []
172
186
  extensions: []
173
187
  extra_rdoc_files: []
@@ -175,6 +189,7 @@ files:
175
189
  - ".yardopts"
176
190
  - README.md
177
191
  - app/cms/scrivito/access_denied.rb
192
+ - app/cms/scrivito/application_error.rb
178
193
  - app/cms/scrivito/associations.rb
179
194
  - app/cms/scrivito/attribute_content.rb
180
195
  - app/cms/scrivito/attribute_definition.rb
@@ -182,6 +197,7 @@ files:
182
197
  - app/cms/scrivito/attribute_deserializer.rb
183
198
  - app/cms/scrivito/attribute_serializer.rb
184
199
  - app/cms/scrivito/attribute_value_renderer.rb
200
+ - app/cms/scrivito/backend/base_index.rb
185
201
  - app/cms/scrivito/backend/content_state_node.rb
186
202
  - app/cms/scrivito/backend/index.rb
187
203
  - app/cms/scrivito/backend/obj_data_cache.rb
@@ -235,7 +251,6 @@ files:
235
251
  - app/cms/scrivito/editing_context.rb
236
252
  - app/cms/scrivito/editing_context_middleware.rb
237
253
  - app/cms/scrivito/errored_widget_tag.rb
238
- - app/cms/scrivito/errors.rb
239
254
  - app/cms/scrivito/float_conversion.rb
240
255
  - app/cms/scrivito/future_binary.rb
241
256
  - app/cms/scrivito/gem_info.rb
@@ -243,6 +258,7 @@ files:
243
258
  - app/cms/scrivito/html_string.rb
244
259
  - app/cms/scrivito/image_tag.rb
245
260
  - app/cms/scrivito/integer_conversion.rb
261
+ - app/cms/scrivito/internal_error.rb
246
262
  - app/cms/scrivito/layout_tags.rb
247
263
  - app/cms/scrivito/link.rb
248
264
  - app/cms/scrivito/link_parser.rb
@@ -261,6 +277,7 @@ files:
261
277
  - app/cms/scrivito/model_library.rb
262
278
  - app/cms/scrivito/modification.rb
263
279
  - app/cms/scrivito/network_error.rb
280
+ - app/cms/scrivito/obj_class_not_found.rb
264
281
  - app/cms/scrivito/obj_collection.rb
265
282
  - app/cms/scrivito/obj_create_params_parser.rb
266
283
  - app/cms/scrivito/obj_data.rb
@@ -279,15 +296,20 @@ files:
279
296
  - app/cms/scrivito/publish_ability.rb
280
297
  - app/cms/scrivito/rate_limit_exceeded.rb
281
298
  - app/cms/scrivito/request_homepage.rb
299
+ - app/cms/scrivito/resource_not_found.rb
282
300
  - app/cms/scrivito/restriction_set.rb
283
301
  - app/cms/scrivito/revision.rb
284
302
  - app/cms/scrivito/route.rb
285
303
  - app/cms/scrivito/routing_extensions.rb
304
+ - app/cms/scrivito/scrivito_error.rb
286
305
  - app/cms/scrivito/sdk_engine.rb
287
306
  - app/cms/scrivito/string_tagging.rb
288
307
  - app/cms/scrivito/tag_renderer.rb
289
308
  - app/cms/scrivito/task.rb
290
309
  - app/cms/scrivito/test_request.rb
310
+ - app/cms/scrivito/transformation_definition_error.rb
311
+ - app/cms/scrivito/transformation_error.rb
312
+ - app/cms/scrivito/transformation_source_error.rb
291
313
  - app/cms/scrivito/type_computer.rb
292
314
  - app/cms/scrivito/ui_config.rb
293
315
  - app/cms/scrivito/ui_obj_classes_json_formatter.rb
@@ -416,12 +438,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
416
438
  requirements:
417
439
  - - ">="
418
440
  - !ruby/object:Gem::Version
419
- version: 2.1.0
441
+ version: 2.7.0
420
442
  required_rubygems_version: !ruby/object:Gem::Requirement
421
443
  requirements:
422
- - - ">"
444
+ - - ">="
423
445
  - !ruby/object:Gem::Version
424
- version: 1.3.1
446
+ version: '0'
425
447
  requirements: []
426
448
  rubygems_version: 3.1.2
427
449
  signing_key:
@@ -1,55 +0,0 @@
1
- module Scrivito
2
-
3
- # @api public
4
- class ScrivitoError < StandardError
5
- end
6
-
7
- class ApplicationError < ScrivitoError
8
- def http_code
9
- 412
10
- end
11
-
12
- def as_json
13
- {message: message, message_for_editor: message}
14
- end
15
- end
16
-
17
- # @api public
18
- class ResourceNotFound < ScrivitoError
19
- def http_code
20
- 404
21
- end
22
-
23
- def as_json
24
- {message: message}
25
- end
26
- end
27
-
28
- # @api public
29
- class ObjClassNotFound < ResourceNotFound
30
- end
31
-
32
- # this error is raised if scrivito detects an internal problem.
33
- # these errors should never occur when using the public api of the SDK.
34
- class InternalError < ScrivitoError
35
- end
36
-
37
- # @api public
38
- class TransformationError < ScrivitoError
39
- attr_reader :code
40
-
41
- def initialize(message, code)
42
- @code = code
43
- super(message)
44
- end
45
- end
46
-
47
- # @api public
48
- class TransformationSourceError < TransformationError
49
- end
50
-
51
- # @api public
52
- class TransformationDefinitionError < TransformationError
53
- end
54
-
55
- end # module Scrivito