scrivito_sdk 0.18.1 → 0.30.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/scrivito/blobs_controller.rb +1 -2
  3. data/app/controllers/scrivito/default_cms_controller.rb +9 -75
  4. data/app/controllers/scrivito/objs_controller.rb +107 -119
  5. data/app/controllers/scrivito/tasks_controller.rb +1 -1
  6. data/app/controllers/scrivito/users_controller.rb +1 -1
  7. data/app/controllers/scrivito/webservice_controller.rb +6 -2
  8. data/app/controllers/scrivito/workspaces_controller.rb +57 -17
  9. data/app/helpers/scrivito_helper.rb +285 -0
  10. data/app/views/google_maps_widget/show.html.erb +1 -0
  11. data/app/views/scrivito/_editing_auth_warning.html.erb +43 -0
  12. data/app/views/scrivito/blobs/upload_permission.json.jbuilder +1 -0
  13. data/app/views/scrivito/objs/copy.json.jbuilder +1 -0
  14. data/app/views/scrivito/objs/copy_widget.html.erb +1 -1
  15. data/app/views/scrivito/objs/create.json.jbuilder +1 -0
  16. data/app/views/scrivito/objs/create_widget.html.erb +1 -1
  17. data/app/views/scrivito/objs/details.json.jbuilder +1 -0
  18. data/app/views/scrivito/objs/format_missing_error.json.jbuilder +1 -0
  19. data/app/views/scrivito/objs/modification.json.jbuilder +1 -0
  20. data/app/views/scrivito/objs/page_class_selection.json.jbuilder +1 -0
  21. data/app/views/scrivito/objs/search.json.jbuilder +6 -0
  22. data/app/views/scrivito/objs/search_only_size.json.jbuilder +1 -0
  23. data/app/views/scrivito/objs/update.json.jbuilder +1 -0
  24. data/app/views/scrivito/objs/widget_class_selection.json.jbuilder +1 -0
  25. data/app/views/scrivito/objs/widget_modification.json.jbuilder +1 -0
  26. data/app/views/scrivito/tasks/show.json.jbuilder +3 -0
  27. data/app/views/scrivito/users/suggest.json.jbuilder +1 -0
  28. data/app/views/scrivito/webservice/empty.json +1 -0
  29. data/app/views/scrivito/webservice/error.json.jbuilder +2 -0
  30. data/app/views/scrivito/workspaces/_workspace.json.jbuilder +5 -0
  31. data/app/views/scrivito/workspaces/check.json.jbuilder +1 -0
  32. data/app/views/scrivito/workspaces/create.json.jbuilder +1 -0
  33. data/app/views/scrivito/workspaces/index.json.jbuilder +1 -0
  34. data/app/views/scrivito/workspaces/show.json.jbuilder +1 -0
  35. data/app/views/scrivito/workspaces/task.json.jbuilder +5 -0
  36. data/config/ca-bundle.crt +259 -234
  37. data/config/cms_routes.rb +2 -2
  38. data/config/routes.rb +3 -0
  39. data/lib/assets/javascripts/{scrivito_editing.js → scrivito_sdk.js} +1662 -1180
  40. data/lib/assets/stylesheets/{scrivito_editing.css → scrivito_sdk.css} +242 -6
  41. data/lib/generators/scrivito/install/install_generator.rb +62 -0
  42. data/lib/generators/scrivito/install/templates/app/controllers/cms_controller.rb +3 -0
  43. data/lib/generators/scrivito/install/templates/app/controllers/page_controller.rb +2 -0
  44. data/lib/generators/scrivito/install/templates/app/models/headline_widget.rb +7 -0
  45. data/lib/generators/scrivito/install/templates/app/models/image.rb +5 -0
  46. data/lib/generators/scrivito/install/templates/app/models/image_widget.rb +7 -0
  47. data/lib/generators/scrivito/install/templates/app/models/obj.rb +2 -0
  48. data/lib/generators/scrivito/install/templates/app/models/page.rb +8 -0
  49. data/lib/generators/scrivito/install/templates/app/models/text_widget.rb +7 -0
  50. data/lib/generators/scrivito/install/templates/app/models/widget.rb +2 -0
  51. data/lib/generators/scrivito/install/templates/app/views/headline_widget/show.html.erb +1 -0
  52. data/lib/generators/scrivito/install/templates/app/views/headline_widget/thumbnail.html.erb +3 -0
  53. data/lib/generators/scrivito/install/templates/app/views/image_widget/show.html.erb +1 -0
  54. data/lib/generators/scrivito/install/templates/app/views/image_widget/thumbnail.html.erb +3 -0
  55. data/lib/generators/scrivito/install/templates/app/views/page/details.html.erb +1 -0
  56. data/lib/generators/scrivito/install/templates/app/views/page/index.html.erb +16 -0
  57. data/lib/generators/scrivito/install/templates/app/views/page/thumbnail.html.erb +3 -0
  58. data/lib/generators/scrivito/install/templates/app/views/text_widget/show.html.erb +1 -0
  59. data/lib/generators/scrivito/install/templates/app/views/text_widget/thumbnail.html.erb +3 -0
  60. data/lib/generators/scrivito/install/templates/config/initializers/scrivito.rb +10 -0
  61. data/lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito.rb +49 -0
  62. data/lib/generators/scrivito/migration/USAGE +9 -0
  63. data/lib/generators/{cms → scrivito}/migration/migration_generator.rb +4 -9
  64. data/lib/generators/{cms → scrivito}/migration/templates/migration.erb +3 -3
  65. data/lib/generators/{cms → scrivito}/widget/templates/details.html.erb +0 -0
  66. data/lib/generators/{cms → scrivito}/widget/templates/migration.erb +0 -0
  67. data/lib/generators/{cms → scrivito}/widget/templates/model.erb +0 -0
  68. data/lib/generators/{cms → scrivito}/widget/templates/show.html.erb +0 -0
  69. data/lib/generators/scrivito/widget/templates/thumbnail.html.erb +3 -0
  70. data/lib/generators/{cms → scrivito}/widget/widget_generator.rb +3 -2
  71. data/lib/obj.rb +17 -3
  72. data/lib/scrivito/attribute_collection.rb +7 -12
  73. data/lib/scrivito/attribute_content.rb +31 -12
  74. data/lib/scrivito/basic_obj.rb +186 -96
  75. data/lib/scrivito/basic_widget.rb +25 -10
  76. data/lib/scrivito/binary.rb +75 -0
  77. data/lib/scrivito/cache_garbage_collector.rb +19 -4
  78. data/lib/scrivito/child_list_tag.rb +108 -0
  79. data/lib/scrivito/client_config.rb +2 -1
  80. data/lib/scrivito/client_error.rb +3 -2
  81. data/lib/scrivito/cms_backend.rb +81 -16
  82. data/lib/scrivito/cms_dispatch_controller.rb +7 -0
  83. data/lib/scrivito/cms_env.rb +0 -2
  84. data/lib/scrivito/cms_field_tag.rb +44 -35
  85. data/lib/scrivito/cms_rest_api.rb +23 -6
  86. data/lib/scrivito/cms_rest_api/attribute_serializer.rb +1 -1
  87. data/lib/scrivito/cms_routing.rb +120 -0
  88. data/lib/scrivito/configuration.rb +69 -58
  89. data/lib/scrivito/connection_manager.rb +30 -1
  90. data/lib/scrivito/content_service.rb +10 -7
  91. data/lib/scrivito/controller_actions.rb +108 -0
  92. data/lib/scrivito/diff.rb +30 -15
  93. data/lib/scrivito/editing_context.rb +4 -0
  94. data/lib/scrivito/editing_context_helper.rb +19 -0
  95. data/lib/scrivito/editing_context_middleware.rb +20 -1
  96. data/lib/scrivito/image_tag_helper.rb +44 -0
  97. data/lib/scrivito/layout_tags.rb +33 -0
  98. data/lib/scrivito/link.rb +4 -2
  99. data/lib/scrivito/membership.rb +0 -8
  100. data/lib/scrivito/migrations.rb +0 -1
  101. data/lib/scrivito/migrations/installer.rb +1 -1
  102. data/lib/scrivito/migrations/migration.rb +0 -2
  103. data/lib/scrivito/migrations/migrator.rb +2 -3
  104. data/lib/scrivito/obj_class.rb +64 -16
  105. data/lib/scrivito/obj_class_data.rb +4 -0
  106. data/lib/scrivito/obj_search_enumerator.rb +1 -1
  107. data/lib/scrivito/routing_helper.rb +42 -0
  108. data/lib/scrivito/{engine.rb → sdk_engine.rb} +15 -29
  109. data/lib/scrivito/tag_renderer.rb +40 -0
  110. data/lib/scrivito/test_request.rb +40 -0
  111. data/lib/scrivito/type_computer.rb +1 -6
  112. data/lib/scrivito/user.rb +33 -15
  113. data/lib/scrivito/user_definition.rb +34 -6
  114. data/lib/scrivito/widget_tag.rb +67 -0
  115. data/lib/scrivito/workspace.rb +12 -24
  116. data/lib/scrivito_sdk.rb +17 -1
  117. data/lib/tasks/cache.rake +4 -5
  118. data/lib/tasks/migration.rake +1 -1
  119. data/lib/widget.rb +21 -3
  120. metadata +119 -70
  121. data/README +0 -6
  122. data/app/controllers/cms_controller.rb +0 -7
  123. data/app/helpers/cms_helper.rb +0 -7
  124. data/app/helpers/cms_routing_helper.rb +0 -7
  125. data/app/helpers/scrivito/cms_asset_helper.rb +0 -110
  126. data/app/helpers/scrivito/cms_tag_helper.rb +0 -232
  127. data/app/helpers/scrivito/default_cms_helper.rb +0 -21
  128. data/app/helpers/scrivito/default_cms_routing_helper.rb +0 -128
  129. data/app/helpers/scrivito/display_helper.rb +0 -64
  130. data/app/helpers/scrivito/editing_helper.rb +0 -32
  131. data/app/helpers/scrivito/layout_helper.rb +0 -21
  132. data/app/models/named_link.rb +0 -2
  133. data/app/views/cms/_index.html.erb +0 -7
  134. data/app/views/cms/index.html.erb +0 -1
  135. data/app/views/scrivito/_editing_javascript.html.erb +0 -7
  136. data/app/views/scrivito/default_cms/show_widget.html.erb +0 -1
  137. data/lib/assets/stylesheets/scrivito.css +0 -199
  138. data/lib/generators/cms/migration/USAGE +0 -9
  139. data/lib/generators/cms/widget/templates/thumbnail.html.erb +0 -2
  140. data/lib/scrivito/blob.rb +0 -48
  141. data/lib/scrivito/cms_accessible.rb +0 -30
  142. data/lib/scrivito/cms_rest_api/blob_uploader.rb +0 -18
  143. data/lib/scrivito/cms_test_request.rb +0 -23
  144. data/lib/scrivito/migrations/migration_dsl.rb +0 -180
@@ -54,22 +54,50 @@ module Scrivito
54
54
  @explicit_rules[[:can_never, verb, subject]] = message
55
55
  end
56
56
 
57
+ #
58
+ # Make the user to be always able to create workspaces, to read, to write, to publish, to delete
59
+ # and to invite to any workspace.
60
+ #
61
+ # @api public
62
+ #
63
+ def is_admin!
64
+ User::VERBS.each { |verb| @explicit_rules[[:can_always, verb, :workspace]] ||= nil }
65
+ end
66
+
67
+ #
57
68
  # Defines the user description to be displayed, when the user is shown in the in-place GUI.
58
69
  # @api public
70
+ #
71
+ # @param [String] description_string the description. Defaults to the the user id.
59
72
  # @param [Proc] description_proc proc to calculate the description. Defaults to the the user id.
73
+ #
60
74
  # @note The description is calculated "lazy".
61
75
  # @note The calculated description will be cached.
76
+ #
62
77
  # @see Scrivito::User.define
63
- # @example
78
+ #
79
+ # @example Display the user +alice+ as +"alice"+ in the in-place GUI
80
+ #
64
81
  # alice = Scrivito::User.define('alice')
65
- # # User `alice` will be displayed as "alice" in the in-place GUI.
82
+ #
83
+ # @example Display the user +bob+ as +"Bob Doe"+ in the in-place GUI
84
+ #
85
+ # bob = Scrivito::User.define('bob') do |user|
86
+ # user.description('Bob Doe')
87
+ # end
66
88
  #
67
89
  # bob = Scrivito::User.define('bob') do |user|
68
- # user.description { 'Bob Doe' }
90
+ # user.description do
91
+ # 'Bob Doe'
92
+ # end
69
93
  # end
70
- # # User `bob` will be displayed as "Bob Doe" in the in-place GUI.
71
- def description(&description_proc)
72
- @description_proc = description_proc
94
+ #
95
+ def description(description_string = nil, &description_proc)
96
+ if description_string
97
+ description { description_string }
98
+ else
99
+ @description_proc = description_proc
100
+ end
73
101
  end
74
102
 
75
103
  # Defines the proc for fetching users for the user autocompletion of the in-place GUI.
@@ -0,0 +1,67 @@
1
+ module Scrivito
2
+
3
+ class WidgetTag < Struct.new(:view, :widget, :placement_modification)
4
+ include TagRenderer
5
+
6
+ def tag_name
7
+ :div
8
+ end
9
+
10
+ def content
11
+ view.render(template: template, locals: {widget: widget})
12
+ end
13
+
14
+ def options
15
+ options = {}
16
+
17
+ if inplace_editing_allowed?
18
+ options['private-widget-id'] = widget.id
19
+ options['widget-obj-class'] = widget.obj_class_name
20
+ options['private-widget-description-for-editor'] = widget.description_for_editor
21
+
22
+ if has_widget_details_view?(widget)
23
+ options['private-widget-has-details-view'] = true
24
+ end
25
+
26
+ comparison = editing_context.comparison
27
+ options['private-widget-modification'] =
28
+ if comparison.revision == widget.revision
29
+ if placement_modification
30
+ unless widget.in_revision(Workspace.current.revision)
31
+ Modification::DELETED
32
+ end
33
+ end
34
+ else
35
+ comparison.modification(widget)
36
+ end
37
+
38
+ options['private-widget-placement-modification'] =
39
+ placement_modification
40
+ end
41
+
42
+ options
43
+ end
44
+
45
+ private
46
+
47
+ def template
48
+ widget.to_show_view_path
49
+ end
50
+
51
+ def has_widget_details_view?(widget)
52
+ view.lookup_context.find(widget.to_details_view_path).present?
53
+ rescue ActionView::MissingTemplate
54
+ false
55
+ end
56
+
57
+ def inplace_editing_allowed?
58
+ editing_context.authenticated_editor?
59
+ end
60
+
61
+ def editing_context
62
+ EditingContextMiddleware.from_request(view.request)
63
+ end
64
+
65
+ end
66
+
67
+ end
@@ -1,3 +1,5 @@
1
+ require 'active_model/naming'
2
+
1
3
  module Scrivito
2
4
 
3
5
  # This class represents a CMS workspace
@@ -123,6 +125,10 @@ class Workspace
123
125
  response
124
126
  end
125
127
 
128
+ def task_unaware_api_request(verb, path, payload = nil)
129
+ CmsRestApi.task_unaware_request(verb, "#{backend_url}#{path}", payload)
130
+ end
131
+
126
132
  # Updates this workspace's attributes
127
133
  # @api public
128
134
  # @param [Hash] attributes
@@ -142,17 +148,9 @@ class Workspace
142
148
  # Publish the changes of this workspace
143
149
  # @api public
144
150
  def publish
145
- internal_publish
146
- end
151
+ CmsRestApi.put("#{backend_url}/publish", {})
147
152
 
148
- def conditional_publish
149
- internal_publish(if_content_state_id_equals: content_state.content_state_id)
150
- rescue Scrivito::ClientError => e
151
- if e.message.starts_with?('The specified condition for content_state_id')
152
- raise PublishPreventedDueToContentChange.new(e.message)
153
- else
154
- raise e
155
- end
153
+ reset_workspace_if_current
156
154
  end
157
155
 
158
156
  # Rebases the current workspace on the published content
@@ -200,6 +198,10 @@ class Workspace
200
198
  self.id == 'rtc'
201
199
  end
202
200
 
201
+ def outdated?
202
+ !published? && Workspace.published.revision.id != base_revision_id
203
+ end
204
+
203
205
  def revision
204
206
  @revision ||= Revision.new(id: revision_id, content_state: content_state, workspace: self)
205
207
  end
@@ -250,22 +252,8 @@ class Workspace
250
252
  "<#{self.class} id=\"#{id}\" title=\"#{title}\">"
251
253
  end
252
254
 
253
- def as_json(options = {})
254
- {
255
- id: id,
256
- title: title,
257
- memberships: memberships,
258
- }
259
- end
260
-
261
255
  private
262
256
 
263
- def internal_publish(data={})
264
- CmsRestApi.put("#{backend_url}/publish", data)
265
-
266
- reset_workspace_if_current
267
- end
268
-
269
257
  def backend_url
270
258
  "/workspaces/#{id}"
271
259
  end
@@ -2,6 +2,22 @@ require "scrivito/errors"
2
2
 
3
3
  # @api public
4
4
  module Scrivito
5
+ #
6
+ # Configures the Scrivito SDK.
7
+ # The configuration keys +tenant+ and +api_key+ _must_ be provided.
8
+ #
9
+ # @example
10
+ # Scrivito.configure do |config|
11
+ # config.tenant = 'my-tenant-name'
12
+ # config.api_key = 'secret'
13
+ # end
14
+ #
15
+ # @api public
16
+ #
17
+ def self.configure
18
+ yield Configuration
19
+ end
20
+
5
21
  def self.autoload_all_sources
6
22
  source_files = Dir.glob(File.expand_path("../scrivito/*.rb", __FILE__)).map do |file|
7
23
  File.basename(file)
@@ -16,4 +32,4 @@ module Scrivito
16
32
  autoload_all_sources
17
33
  end
18
34
 
19
- require "scrivito/engine" if defined?(Rails)
35
+ require 'scrivito/sdk_engine' if defined?(Rails)
@@ -1,10 +1,9 @@
1
1
  namespace :scrivito do
2
2
  namespace :cache do
3
- description = "Cap number of cache file inodes at "
4
- description += "#{Scrivito::CacheGarbageCollector::DEFAULT_MAX_FILE_INODES} "
5
- description += "(Use MAX_FILE_INODES=500 to specify the maximum)"
6
-
7
- desc description
3
+ desc 'Cap number of cache file inodes at ' \
4
+ "#{Scrivito::CacheGarbageCollector::DEFAULT_MAX_FILE_INODES} " \
5
+ '(Use MAX_FILE_INODES=500 to specify the maximum). ' \
6
+ 'See Scrivito::CacheGarbageCollector for details.'
8
7
  task gc: :environment do
9
8
  Scrivito::CacheGarbageCollector.new(ENV['MAX_FILE_INODES']).run_gc
10
9
  end
@@ -1,4 +1,4 @@
1
- namespace :cms do
1
+ namespace :scrivito do
2
2
  desc 'Migrate the CMS'
3
3
  task :migrate => :environment do
4
4
  Scrivito::Migrations::Migrator.new.migrate
@@ -1,3 +1,21 @@
1
- # Empty implementation for Widget.
2
- # Only unsed in case the app does not define Widget itself.
3
- ::Widget = Class.new(::Scrivito::BasicWidget)
1
+ #
2
+ # The class +Widget+ should be overridden by the application (see example).
3
+ # The SDK provides methods for +Widget+ through it's abstract base class, {Scrivito::BasicWidget}.
4
+ # The SDK provides this empty implementation for +Widget+ which will only be used in case the app
5
+ # does not define the class +Widget+ itself.
6
+ #
7
+ # @api public
8
+ #
9
+ # @example
10
+ # # in app/models/widget.rb
11
+ # class Widget < Scrivito::BasicWidget
12
+ # # Put custom extensions that apply to all +Widget+s here...
13
+ # end
14
+ #
15
+ # # in app/models/text_widget.rb
16
+ # class TextWidget < ::Widget
17
+ # # Put custom extensions that only apply to +TextWidget+s here...
18
+ # end
19
+ #
20
+ class Widget < Scrivito::BasicWidget
21
+ end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.30.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: addressable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.1
19
+ version: 2.3.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.1
26
+ version: 2.3.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: diff-lcs
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.2.2
33
+ version: 1.2.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.2.2
40
+ version: 1.2.5
41
41
  - !ruby/object:Gem::Dependency
42
- name: json
42
+ name: hyp_diff
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.7.7
47
+ version: 0.0.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.7.7
54
+ version: 0.0.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: jbuilder
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.2.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.2.2
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: jquery-rails
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -67,75 +81,75 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: 3.1.1
69
83
  - !ruby/object:Gem::Dependency
70
- name: rest-client
84
+ name: json
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ~>
87
+ - - '>='
74
88
  - !ruby/object:Gem::Version
75
- version: 1.6.7
89
+ version: 1.7.7
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ~>
94
+ - - '>='
81
95
  - !ruby/object:Gem::Version
82
- version: 1.6.7
96
+ version: 1.7.7
83
97
  - !ruby/object:Gem::Dependency
84
- name: nokogiri
98
+ name: multipart-post
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ~>
88
102
  - !ruby/object:Gem::Version
89
- version: 1.5.6
103
+ version: 2.0.0
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ~>
95
109
  - !ruby/object:Gem::Version
96
- version: 1.5.6
110
+ version: 2.0.0
97
111
  - !ruby/object:Gem::Dependency
98
- name: addressable
112
+ name: nokogiri
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: 2.3.2
117
+ version: 1.5.6
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - ~>
109
123
  - !ruby/object:Gem::Version
110
- version: 2.3.2
124
+ version: 1.5.6
111
125
  - !ruby/object:Gem::Dependency
112
- name: diff-lcs
126
+ name: rails
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - ~>
116
130
  - !ruby/object:Gem::Version
117
- version: 1.2.5
131
+ version: 4.1.1
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - ~>
123
137
  - !ruby/object:Gem::Version
124
- version: 1.2.5
138
+ version: 4.1.1
125
139
  - !ruby/object:Gem::Dependency
126
- name: hyp_diff
140
+ name: rake
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ~>
143
+ - - '>='
130
144
  - !ruby/object:Gem::Version
131
- version: 0.0.3
145
+ version: 0.9.2.2
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ~>
150
+ - - '>='
137
151
  - !ruby/object:Gem::Version
138
- version: 0.0.3
152
+ version: 0.9.2.2
139
153
  description: ' Scrivito: A professional Cloud CMS built for Ruby on Rails. '
140
154
  email: info@scrivito.com
141
155
  executables: []
@@ -143,8 +157,6 @@ extensions: []
143
157
  extra_rdoc_files: []
144
158
  files:
145
159
  - .yardopts
146
- - README
147
- - app/controllers/cms_controller.rb
148
160
  - app/controllers/scrivito/blobs_controller.rb
149
161
  - app/controllers/scrivito/default_cms_controller.rb
150
162
  - app/controllers/scrivito/objs_controller.rb
@@ -152,23 +164,34 @@ files:
152
164
  - app/controllers/scrivito/users_controller.rb
153
165
  - app/controllers/scrivito/webservice_controller.rb
154
166
  - app/controllers/scrivito/workspaces_controller.rb
155
- - app/helpers/cms_helper.rb
156
- - app/helpers/cms_routing_helper.rb
157
- - app/helpers/scrivito/cms_asset_helper.rb
158
- - app/helpers/scrivito/cms_tag_helper.rb
159
- - app/helpers/scrivito/default_cms_helper.rb
160
- - app/helpers/scrivito/default_cms_routing_helper.rb
161
- - app/helpers/scrivito/display_helper.rb
162
- - app/helpers/scrivito/editing_helper.rb
163
- - app/helpers/scrivito/layout_helper.rb
164
- - app/models/named_link.rb
165
- - app/views/cms/_index.html.erb
166
- - app/views/cms/index.html.erb
167
- - app/views/scrivito/_editing_javascript.html.erb
168
- - app/views/scrivito/default_cms/show_widget.html.erb
167
+ - app/helpers/scrivito_helper.rb
168
+ - app/views/google_maps_widget/show.html.erb
169
+ - app/views/scrivito/_editing_auth_warning.html.erb
170
+ - app/views/scrivito/blobs/upload_permission.json.jbuilder
171
+ - app/views/scrivito/objs/copy.json.jbuilder
169
172
  - app/views/scrivito/objs/copy_widget.html.erb
173
+ - app/views/scrivito/objs/create.json.jbuilder
170
174
  - app/views/scrivito/objs/create_widget.html.erb
175
+ - app/views/scrivito/objs/details.json.jbuilder
176
+ - app/views/scrivito/objs/format_missing_error.json.jbuilder
177
+ - app/views/scrivito/objs/modification.json.jbuilder
178
+ - app/views/scrivito/objs/page_class_selection.json.jbuilder
179
+ - app/views/scrivito/objs/search.json.jbuilder
180
+ - app/views/scrivito/objs/search_only_size.json.jbuilder
181
+ - app/views/scrivito/objs/update.json.jbuilder
182
+ - app/views/scrivito/objs/widget_class_selection.json.jbuilder
183
+ - app/views/scrivito/objs/widget_modification.json.jbuilder
184
+ - app/views/scrivito/tasks/show.json.jbuilder
185
+ - app/views/scrivito/users/suggest.json.jbuilder
186
+ - app/views/scrivito/webservice/empty.json
187
+ - app/views/scrivito/webservice/error.json.jbuilder
171
188
  - app/views/scrivito/widget_thumbnail.html.erb
189
+ - app/views/scrivito/workspaces/_workspace.json.jbuilder
190
+ - app/views/scrivito/workspaces/check.json.jbuilder
191
+ - app/views/scrivito/workspaces/create.json.jbuilder
192
+ - app/views/scrivito/workspaces/index.json.jbuilder
193
+ - app/views/scrivito/workspaces/show.json.jbuilder
194
+ - app/views/scrivito/workspaces/task.json.jbuilder
172
195
  - config/ca-bundle.crt
173
196
  - config/cms_routes.rb
174
197
  - config/locales/de.scrivito.errors.yml
@@ -180,18 +203,38 @@ files:
180
203
  - config/routes.rb
181
204
  - lib/assets/images/180x120.gif
182
205
  - lib/assets/images/scrivito/image_placeholder.png
183
- - lib/assets/javascripts/scrivito_editing.js
184
- - lib/assets/stylesheets/scrivito.css
185
- - lib/assets/stylesheets/scrivito_editing.css
186
- - lib/generators/cms/migration/USAGE
187
- - lib/generators/cms/migration/migration_generator.rb
188
- - lib/generators/cms/migration/templates/migration.erb
189
- - lib/generators/cms/widget/templates/details.html.erb
190
- - lib/generators/cms/widget/templates/migration.erb
191
- - lib/generators/cms/widget/templates/model.erb
192
- - lib/generators/cms/widget/templates/show.html.erb
193
- - lib/generators/cms/widget/templates/thumbnail.html.erb
194
- - lib/generators/cms/widget/widget_generator.rb
206
+ - lib/assets/javascripts/scrivito_sdk.js
207
+ - lib/assets/stylesheets/scrivito_sdk.css
208
+ - lib/generators/scrivito/install/install_generator.rb
209
+ - lib/generators/scrivito/install/templates/app/controllers/cms_controller.rb
210
+ - lib/generators/scrivito/install/templates/app/controllers/page_controller.rb
211
+ - lib/generators/scrivito/install/templates/app/models/headline_widget.rb
212
+ - lib/generators/scrivito/install/templates/app/models/image.rb
213
+ - lib/generators/scrivito/install/templates/app/models/image_widget.rb
214
+ - lib/generators/scrivito/install/templates/app/models/obj.rb
215
+ - lib/generators/scrivito/install/templates/app/models/page.rb
216
+ - lib/generators/scrivito/install/templates/app/models/text_widget.rb
217
+ - lib/generators/scrivito/install/templates/app/models/widget.rb
218
+ - lib/generators/scrivito/install/templates/app/views/headline_widget/show.html.erb
219
+ - lib/generators/scrivito/install/templates/app/views/headline_widget/thumbnail.html.erb
220
+ - lib/generators/scrivito/install/templates/app/views/image_widget/show.html.erb
221
+ - lib/generators/scrivito/install/templates/app/views/image_widget/thumbnail.html.erb
222
+ - lib/generators/scrivito/install/templates/app/views/page/details.html.erb
223
+ - lib/generators/scrivito/install/templates/app/views/page/index.html.erb
224
+ - lib/generators/scrivito/install/templates/app/views/page/thumbnail.html.erb
225
+ - lib/generators/scrivito/install/templates/app/views/text_widget/show.html.erb
226
+ - lib/generators/scrivito/install/templates/app/views/text_widget/thumbnail.html.erb
227
+ - lib/generators/scrivito/install/templates/config/initializers/scrivito.rb
228
+ - lib/generators/scrivito/install/templates/scrivito/migrate/install_scrivito.rb
229
+ - lib/generators/scrivito/migration/USAGE
230
+ - lib/generators/scrivito/migration/migration_generator.rb
231
+ - lib/generators/scrivito/migration/templates/migration.erb
232
+ - lib/generators/scrivito/widget/templates/details.html.erb
233
+ - lib/generators/scrivito/widget/templates/migration.erb
234
+ - lib/generators/scrivito/widget/templates/model.erb
235
+ - lib/generators/scrivito/widget/templates/show.html.erb
236
+ - lib/generators/scrivito/widget/templates/thumbnail.html.erb
237
+ - lib/generators/scrivito/widget/widget_generator.rb
195
238
  - lib/obj.rb
196
239
  - lib/scrivito/access_denied.rb
197
240
  - lib/scrivito/attribute.rb
@@ -200,13 +243,13 @@ files:
200
243
  - lib/scrivito/backend_error.rb
201
244
  - lib/scrivito/basic_obj.rb
202
245
  - lib/scrivito/basic_widget.rb
203
- - lib/scrivito/blob.rb
246
+ - lib/scrivito/binary.rb
204
247
  - lib/scrivito/cache.rb
205
248
  - lib/scrivito/cache_garbage_collector.rb
206
249
  - lib/scrivito/cache_middleware.rb
250
+ - lib/scrivito/child_list_tag.rb
207
251
  - lib/scrivito/client_config.rb
208
252
  - lib/scrivito/client_error.rb
209
- - lib/scrivito/cms_accessible.rb
210
253
  - lib/scrivito/cms_backend.rb
211
254
  - lib/scrivito/cms_cache_storage.rb
212
255
  - lib/scrivito/cms_dispatch_controller.rb
@@ -214,9 +257,8 @@ files:
214
257
  - lib/scrivito/cms_field_tag.rb
215
258
  - lib/scrivito/cms_rest_api.rb
216
259
  - lib/scrivito/cms_rest_api/attribute_serializer.rb
217
- - lib/scrivito/cms_rest_api/blob_uploader.rb
218
260
  - lib/scrivito/cms_rest_api/widget_extractor.rb
219
- - lib/scrivito/cms_test_request.rb
261
+ - lib/scrivito/cms_routing.rb
220
262
  - lib/scrivito/communication_error.rb
221
263
  - lib/scrivito/comparison.rb
222
264
  - lib/scrivito/configuration.rb
@@ -226,16 +268,19 @@ files:
226
268
  - lib/scrivito/content_state.rb
227
269
  - lib/scrivito/content_state_caching.rb
228
270
  - lib/scrivito/content_state_visitor.rb
271
+ - lib/scrivito/controller_actions.rb
229
272
  - lib/scrivito/controller_runtime.rb
230
273
  - lib/scrivito/date_attribute.rb
231
274
  - lib/scrivito/deprecation.rb
232
275
  - lib/scrivito/diff.rb
233
276
  - lib/scrivito/editing_context.rb
277
+ - lib/scrivito/editing_context_helper.rb
234
278
  - lib/scrivito/editing_context_middleware.rb
235
- - lib/scrivito/engine.rb
236
279
  - lib/scrivito/errors.rb
237
280
  - lib/scrivito/gem_info.rb
238
281
  - lib/scrivito/html_string.rb
282
+ - lib/scrivito/image_tag_helper.rb
283
+ - lib/scrivito/layout_tags.rb
239
284
  - lib/scrivito/link.rb
240
285
  - lib/scrivito/link_parser.rb
241
286
  - lib/scrivito/log_subscriber.rb
@@ -246,7 +291,6 @@ files:
246
291
  - lib/scrivito/migrations/cms_backend.rb
247
292
  - lib/scrivito/migrations/installer.rb
248
293
  - lib/scrivito/migrations/migration.rb
249
- - lib/scrivito/migrations/migration_dsl.rb
250
294
  - lib/scrivito/migrations/migration_store.rb
251
295
  - lib/scrivito/migrations/migrator.rb
252
296
  - lib/scrivito/migrations/workspace_lock.rb
@@ -267,7 +311,11 @@ files:
267
311
  - lib/scrivito/rate_limit_exceeded.rb
268
312
  - lib/scrivito/restriction_set.rb
269
313
  - lib/scrivito/revision.rb
314
+ - lib/scrivito/routing_helper.rb
315
+ - lib/scrivito/sdk_engine.rb
270
316
  - lib/scrivito/string_tagging.rb
317
+ - lib/scrivito/tag_renderer.rb
318
+ - lib/scrivito/test_request.rb
271
319
  - lib/scrivito/text_link.rb
272
320
  - lib/scrivito/text_link_conversion.rb
273
321
  - lib/scrivito/type_computer.rb
@@ -275,6 +323,7 @@ files:
275
323
  - lib/scrivito/user_definition.rb
276
324
  - lib/scrivito/widget_field_params.rb
277
325
  - lib/scrivito/widget_garbage_collection.rb
326
+ - lib/scrivito/widget_tag.rb
278
327
  - lib/scrivito/workspace.rb
279
328
  - lib/scrivito/workspace/publish_checker.rb
280
329
  - lib/scrivito/workspace_data_from_service.rb
@@ -298,9 +347,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
298
347
  version: 2.0.0
299
348
  required_rubygems_version: !ruby/object:Gem::Requirement
300
349
  requirements:
301
- - - '>='
350
+ - - '>'
302
351
  - !ruby/object:Gem::Version
303
- version: '0'
352
+ version: 1.3.1
304
353
  requirements: []
305
354
  rubyforge_project:
306
355
  rubygems_version: 2.2.2