sinicum 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +7 -0
  2. data/.cane +19 -0
  3. data/.gitignore +14 -0
  4. data/.rubocop.yml +30 -0
  5. data/.travis.yml +14 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE +24 -0
  8. data/README.md +327 -0
  9. data/Rakefile +37 -0
  10. data/app/assets/javascripts/sinicum/magnolia_client.js.coffee +233 -0
  11. data/app/controllers/sinicum/controller_base.rb +173 -0
  12. data/app/controllers/sinicum/controllers/cache_aware.rb +16 -0
  13. data/app/controllers/sinicum/controllers/global_state_cache.rb +83 -0
  14. data/app/helpers/sinicum/helper_utils.rb +152 -0
  15. data/app/helpers/sinicum/mgnl_helper.rb +145 -0
  16. data/app/helpers/sinicum/mgnl_helper5.rb +7 -0
  17. data/app/helpers/sinicum/mgnl_image_helper.rb +26 -0
  18. data/app/helpers/sinicum/taglib_helper5.rb +166 -0
  19. data/gemfiles/Gemfile-3.2 +6 -0
  20. data/gemfiles/Gemfile-4.0 +6 -0
  21. data/lib/generators/sinicum/install_generator.rb +162 -0
  22. data/lib/generators/sinicum/templates/VersionHandler.java +18 -0
  23. data/lib/generators/sinicum/templates/config/default/log4j-development.xml +203 -0
  24. data/lib/generators/sinicum/templates/config/default/log4j.xml +200 -0
  25. data/lib/generators/sinicum/templates/config/default/magnolia-author.properties +63 -0
  26. data/lib/generators/sinicum/templates/config/default/magnolia-public01.properties +63 -0
  27. data/lib/generators/sinicum/templates/config/default/magnolia.properties +63 -0
  28. data/lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search-author.xml +73 -0
  29. data/lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search-public01.xml +73 -0
  30. data/lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search.xml +70 -0
  31. data/lib/generators/sinicum/templates/magnolia/config.modules.myproject.dialogs.xml +1625 -0
  32. data/lib/generators/sinicum/templates/magnolia/config.modules.myproject.templates.xml +247 -0
  33. data/lib/generators/sinicum/templates/module-config.xml +13 -0
  34. data/lib/generators/sinicum/templates/module-pom.xml +67 -0
  35. data/lib/generators/sinicum/templates/project-pom.xml +104 -0
  36. data/lib/generators/sinicum/templates/rails/_article.html.haml +15 -0
  37. data/lib/generators/sinicum/templates/rails/_content.html.haml +2 -0
  38. data/lib/generators/sinicum/templates/rails/_meta.html.haml +9 -0
  39. data/lib/generators/sinicum/templates/rails/application.html.haml +11 -0
  40. data/lib/generators/sinicum/templates/rails/content_controller.rb +5 -0
  41. data/lib/generators/sinicum/templates/rails/imaging.yml +8 -0
  42. data/lib/generators/sinicum/templates/rails/sinicum_server.yml +15 -0
  43. data/lib/sinicum.rb +53 -0
  44. data/lib/sinicum/content/aggregator.rb +173 -0
  45. data/lib/sinicum/content/website_content_resolver.rb +10 -0
  46. data/lib/sinicum/engine.rb +23 -0
  47. data/lib/sinicum/imaging.rb +29 -0
  48. data/lib/sinicum/imaging/config.rb +133 -0
  49. data/lib/sinicum/imaging/converter.rb +81 -0
  50. data/lib/sinicum/imaging/default_converter.rb +20 -0
  51. data/lib/sinicum/imaging/image_size_converter.rb +52 -0
  52. data/lib/sinicum/imaging/imaging.rb +171 -0
  53. data/lib/sinicum/imaging/imaging_file.rb +115 -0
  54. data/lib/sinicum/imaging/imaging_middleware.rb +56 -0
  55. data/lib/sinicum/imaging/max_size_converter.rb +39 -0
  56. data/lib/sinicum/imaging/resize_crop_converter.rb +35 -0
  57. data/lib/sinicum/jcr/api_client.rb +50 -0
  58. data/lib/sinicum/jcr/api_queries.rb +37 -0
  59. data/lib/sinicum/jcr/cache/global_cache.rb +26 -0
  60. data/lib/sinicum/jcr/dam/document.rb +57 -0
  61. data/lib/sinicum/jcr/dam/image.rb +40 -0
  62. data/lib/sinicum/jcr/jcr_configuration.rb +67 -0
  63. data/lib/sinicum/jcr/mgnl4_compatibility.rb +11 -0
  64. data/lib/sinicum/jcr/node.rb +268 -0
  65. data/lib/sinicum/jcr/node_initializer.rb +16 -0
  66. data/lib/sinicum/jcr/node_queries.rb +101 -0
  67. data/lib/sinicum/jcr/query_sanitizer.rb +24 -0
  68. data/lib/sinicum/jcr/type_translator.rb +38 -0
  69. data/lib/sinicum/jcr/type_translators/component_translator.rb +28 -0
  70. data/lib/sinicum/jcr/type_translators/dam_translator.rb +33 -0
  71. data/lib/sinicum/jcr/type_translators/data_translator.rb +31 -0
  72. data/lib/sinicum/jcr/type_translators/default_translator.rb +13 -0
  73. data/lib/sinicum/jcr/type_translators/translator_base.rb +40 -0
  74. data/lib/sinicum/logger.rb +28 -0
  75. data/lib/sinicum/navigation/default_navigation_element.rb +30 -0
  76. data/lib/sinicum/navigation/navigation_element.rb +39 -0
  77. data/lib/sinicum/navigation/navigation_element_list.rb +33 -0
  78. data/lib/sinicum/navigation/navigation_handler.rb +95 -0
  79. data/lib/sinicum/navigation/navigation_status.rb +27 -0
  80. data/lib/sinicum/templating/area_handler.rb +33 -0
  81. data/lib/sinicum/templating/dialog_resolver.rb +26 -0
  82. data/lib/sinicum/templating/templating_utils.rb +24 -0
  83. data/lib/sinicum/util.rb +12 -0
  84. data/lib/sinicum/version.rb +3 -0
  85. data/script/cibuild +31 -0
  86. data/sinicum.gemspec +29 -0
  87. data/spec/controllers/sinicum/controller_base_spec.rb +53 -0
  88. data/spec/controllers/sinicum/controllers/global_state_cache_spec.rb +35 -0
  89. data/spec/dummy/REVISION +1 -0
  90. data/spec/dummy/Rakefile +7 -0
  91. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  92. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  93. data/spec/dummy/app/views/application/index.html.erb +1 -0
  94. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  95. data/spec/dummy/app/views/layouts/layout_name.html.erb +0 -0
  96. data/spec/dummy/app/views/layouts/my-module/test.html.erb +0 -0
  97. data/spec/dummy/app/views/layouts/my_module/test.html.erb +0 -0
  98. data/spec/dummy/config.ru +4 -0
  99. data/spec/dummy/config/application.rb +45 -0
  100. data/spec/dummy/config/boot.rb +10 -0
  101. data/spec/dummy/config/database.yml +22 -0
  102. data/spec/dummy/config/environment.rb +5 -0
  103. data/spec/dummy/config/environments/development.rb +24 -0
  104. data/spec/dummy/config/environments/production.rb +51 -0
  105. data/spec/dummy/config/environments/test.rb +34 -0
  106. data/spec/dummy/config/imaging.yml +7 -0
  107. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  108. data/spec/dummy/config/initializers/inflections.rb +10 -0
  109. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  110. data/spec/dummy/config/initializers/secret_token.rb +11 -0
  111. data/spec/dummy/config/initializers/session_store.rb +8 -0
  112. data/spec/dummy/config/locales/en.yml +5 -0
  113. data/spec/dummy/config/routes.rb +59 -0
  114. data/spec/dummy/config/sinicum_server.yml +13 -0
  115. data/spec/dummy/public/404.html +26 -0
  116. data/spec/dummy/public/422.html +26 -0
  117. data/spec/dummy/public/500.html +26 -0
  118. data/spec/dummy/public/favicon.ico +0 -0
  119. data/spec/dummy/public/javascripts/application.js +2 -0
  120. data/spec/dummy/public/javascripts/controls.js +965 -0
  121. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  122. data/spec/dummy/public/javascripts/effects.js +1123 -0
  123. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  124. data/spec/dummy/public/javascripts/rails.js +191 -0
  125. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  126. data/spec/dummy/script/rails +6 -0
  127. data/spec/fixtures/api/cache_global.json +3 -0
  128. data/spec/fixtures/api/content_mgnl5.json +22 -0
  129. data/spec/fixtures/api/default_json.json.erb +47 -0
  130. data/spec/fixtures/api/default_json_mgnl5.json.erb +27 -0
  131. data/spec/fixtures/api/file.json +73 -0
  132. data/spec/fixtures/api/file_mgnl5.json +51 -0
  133. data/spec/fixtures/api/homepage.json +1497 -0
  134. data/spec/fixtures/api/homepage_parent.json +483 -0
  135. data/spec/fixtures/api/image.json +73 -0
  136. data/spec/fixtures/api/image_mgnl5.json +50 -0
  137. data/spec/fixtures/api/navigation_children.json +3107 -0
  138. data/spec/fixtures/api/navigation_parents.json +25 -0
  139. data/spec/fixtures/api/product.json +2084 -0
  140. data/spec/fixtures/api/query_result.json +61 -0
  141. data/spec/fixtures/mock_content.rb +6 -0
  142. data/spec/fixtures/mock_image.gif +0 -0
  143. data/spec/helpers/sinicum/helper_utils_spec.rb +55 -0
  144. data/spec/helpers/sinicum/mgnl_helper_spec.rb +315 -0
  145. data/spec/helpers/sinicum/mgnl_image_helper_spec.rb +103 -0
  146. data/spec/sinicum/content/aggregator_spec.rb +91 -0
  147. data/spec/sinicum/content/website_content_resolver_spec.rb +14 -0
  148. data/spec/sinicum/imaging/config_spec.rb +50 -0
  149. data/spec/sinicum/imaging/converter_spec.rb +41 -0
  150. data/spec/sinicum/imaging/image_size_converter_spec.rb +27 -0
  151. data/spec/sinicum/imaging/imaging.yml +15 -0
  152. data/spec/sinicum/imaging/imaging_file_spec.rb +125 -0
  153. data/spec/sinicum/imaging/imaging_middleware_spec.rb +79 -0
  154. data/spec/sinicum/imaging/max_size_converter_spec.rb +52 -0
  155. data/spec/sinicum/imaging/resize_crop_converter_spec.rb +18 -0
  156. data/spec/sinicum/imaging_spec.rb +13 -0
  157. data/spec/sinicum/jcr/api_client_spec.rb +69 -0
  158. data/spec/sinicum/jcr/cache/global_cache_spec.rb +29 -0
  159. data/spec/sinicum/jcr/dam/document_spec.rb +81 -0
  160. data/spec/sinicum/jcr/dam/image_spec.rb +46 -0
  161. data/spec/sinicum/jcr/jcr_configuration_spec.rb +57 -0
  162. data/spec/sinicum/jcr/mgnl4_compatibility_spec.rb +10 -0
  163. data/spec/sinicum/jcr/node_queries_spec.rb +113 -0
  164. data/spec/sinicum/jcr/node_spec.rb +261 -0
  165. data/spec/sinicum/jcr/query_sanitizer_spec.rb +26 -0
  166. data/spec/sinicum/jcr/type_translator_spec.rb +42 -0
  167. data/spec/sinicum/jcr/type_translators/component_translator_spec.rb +71 -0
  168. data/spec/sinicum/jcr/type_translators/data_translator_spec.rb +38 -0
  169. data/spec/sinicum/jcr/type_translators/default_translator_spec.rb +19 -0
  170. data/spec/sinicum/navigation/default_navigation_element_spec.rb +45 -0
  171. data/spec/sinicum/navigation/navigation_handler_spec.rb +71 -0
  172. data/spec/sinicum/templating/dialog_resolver_spec.rb +13 -0
  173. data/spec/sinicum/util_spec.rb +34 -0
  174. data/spec/spec_helper.rb +42 -0
  175. data/spec/support/default_node_reader.rb +40 -0
  176. metadata +434 -0
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ module Sinicum
4
+ module Navigation
5
+ describe DefaultNavigationElement do
6
+ it "should return the standard elements" do
7
+ DefaultNavigationElement.navigation_properties
8
+ .should eq(%w(title nav_title nav_hidden))
9
+ end
10
+
11
+ it "should not filter a node by default" do
12
+ DefaultNavigationElement.filter_node({}).should be false
13
+ end
14
+
15
+ it "should filter a node with the nav_hidden_attribute" do
16
+ json = { "properties" => { "nav_hidden" => true } }
17
+ DefaultNavigationElement.filter_node(json).should be true
18
+ end
19
+
20
+ it "should not filter a node with the nav_hidden_attribute set to false" do
21
+ json = { "properties" => { "nav_hidden" => false } }
22
+ DefaultNavigationElement.filter_node(json).should be false
23
+ end
24
+
25
+ it "should return the title of a node" do
26
+ el = DefaultNavigationElement.new(nil, nil, nil, { "title" => "Title" }, nil)
27
+ el.title.should eq("Title")
28
+ end
29
+
30
+ it "should return the navigation title of a node if it exists" do
31
+ el = DefaultNavigationElement.new(
32
+ nil,
33
+ nil,
34
+ nil,
35
+ {
36
+ "title" => "Title",
37
+ "nav_title" => "Navigation Title"
38
+ },
39
+ nil
40
+ )
41
+ el.title.should eq("Navigation Title")
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+
3
+ module Sinicum
4
+ module Navigation
5
+ describe NavigationHandler do
6
+ let(:prefix) { "http://content.dievision.de:80/sinicum-rest" }
7
+
8
+ describe "children" do
9
+ let(:api_response) do
10
+ File.read(File.dirname(__FILE__) +
11
+ "/../../fixtures/api/navigation_children.json")
12
+ end
13
+
14
+ let(:base_node) do
15
+ node = double("base_node")
16
+ node.stub(:uuid).and_return("745efc13-e7da-4717-9153-10fb6472ca73")
17
+ node
18
+ end
19
+
20
+ before(:each) do
21
+ ::Sinicum::Jcr::ApiQueries.configure_jcr = { host: "content.dievision.de" }
22
+
23
+ stub_request(:get, "#{prefix}/_navigation/children/#{base_node.uuid}?depth=3&" \
24
+ "properties=title;nav_title;nav_hidden")
25
+ .to_return(body: api_response, headers: { "Content-Type" => "application/json" })
26
+ end
27
+
28
+ it "should retrieve the children for a node and filter elements" do
29
+ handler = NavigationHandler.children(base_node, 3)
30
+ handler.elements.size.should eq(7)
31
+ end
32
+
33
+ it "should return the navigation elements for the node" do
34
+ handler = NavigationHandler.children(base_node, 3)
35
+ handler.elements.first.should be_kind_of(NavigationElement)
36
+ end
37
+
38
+ it "should initialize the children of the elements" do
39
+ handler = NavigationHandler.children(base_node, 3)
40
+ handler.elements.first.children.size.should eq(10)
41
+ end
42
+ end
43
+
44
+ describe "parents" do
45
+ let(:api_response) do
46
+ File.read(File.dirname(__FILE__) +
47
+ "/../../fixtures/api/navigation_parents.json")
48
+ end
49
+
50
+ let(:base_node) do
51
+ node = double("base_node")
52
+ node.stub(:uuid).and_return("745efc13-e7da-4717-9153-10fb6472ca73")
53
+ node
54
+ end
55
+
56
+ before(:each) do
57
+ ::Sinicum::Jcr::ApiQueries.configure_jcr = { host: "content.dievision.de" }
58
+
59
+ stub_request(:get, "#{prefix}/_navigation/parents/#{base_node.uuid}?" \
60
+ "properties=title;nav_title;nav_hidden")
61
+ .to_return(body: api_response, headers: { "Content-Type" => "application/json" })
62
+ end
63
+
64
+ it "should retrieve the children for a node and filter elements" do
65
+ handler = NavigationHandler.parents(base_node)
66
+ handler.elements.size.should eq(3)
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ module Sinicum
4
+ module Templating
5
+ describe DialogResolver do
6
+ it "should correctly split a template path" do
7
+ result = subject.send(:split_template_path, "templating:pages/helloWorld")
8
+ expected_result = { module: "templating", type: :page, name: "helloWorld" }
9
+ expect(result).to eq(expected_result)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,34 @@
1
+ require "spec_helper"
2
+
3
+ describe "Utils" do
4
+
5
+ describe "uuid_check" do
6
+
7
+ it "should identify a uuid" do
8
+ Sinicum::Util.is_a_uuid?("facc47c0-a3d8-4cf0-9db5-930d287e01cb")
9
+ .should == true
10
+ end
11
+
12
+ it "should identify a uuid and be case-insensitive" do
13
+ Sinicum::Util.is_a_uuid?("FACC47C0-A3D8-4CF0-9DB5-930D287E01CB")
14
+ .should == true
15
+ end
16
+
17
+ it "should identify something thats not a uuid" do
18
+ Sinicum::Util.is_a_uuid?("no uuid")
19
+ .should == false
20
+ end
21
+
22
+ it "should recognize no-hex characters" do
23
+ Sinicum::Util.is_a_uuid?("gacc47c0-a3d8-4cf0-9db5-930d287e01cb")
24
+ . should == false
25
+ end
26
+
27
+ it "should should only allow objects that respond to 'match'" do
28
+ Sinicum::Util.is_a_uuid?("facc47c0-a3d8-4cf0-9db5-930d287e01cb".to_sym)
29
+ .should be true
30
+ end
31
+
32
+ end
33
+
34
+ end
@@ -0,0 +1,42 @@
1
+ # Configure Rails Envinronment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require 'codeclimate-test-reporter'
5
+ CodeClimate::TestReporter.start
6
+
7
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
8
+ require "rspec/rails"
9
+ require "webmock/rspec"
10
+
11
+ RSpec.configure do |config|
12
+ # == Mock Framework
13
+ #
14
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15
+ #
16
+ # config.mock_with :mocha
17
+ # config.mock_with :flexmock
18
+ # config.mock_with :rr
19
+ config.mock_with :rspec
20
+
21
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
22
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
+
24
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
25
+ # examples within a transaction, remove the following line or assign false
26
+ # instead of true.
27
+ # config.use_transactional_fixtures = true
28
+ end
29
+
30
+ ActionMailer::Base.delivery_method = :test
31
+ ActionMailer::Base.perform_deliveries = true
32
+ ActionMailer::Base.default_url_options[:host] = "test.com"
33
+
34
+ Rails.backtrace_cleaner.remove_silencers!
35
+
36
+ # Run any available migration
37
+ # ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
38
+
39
+ WebMock.disable_net_connect!(allow: 'codeclimate.com')
40
+
41
+ # Load support files
42
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,40 @@
1
+ def read_default_node_json(workspace = "website",
2
+ jcr_primary_type = "mgnl:contentNode", mgnl_template = nil, mgnl_version = :mgnl4)
3
+ if mgnl_version == :mgnl4
4
+ template_file = File.dirname(__FILE__) + "/../fixtures/api/default_json.json.erb"
5
+ elsif mgnl_version == :mgnl5
6
+ template_file = File.dirname(__FILE__) + "/../fixtures/api/default_json_mgnl5.json.erb"
7
+ else
8
+ fail "Please specify a valid Magnolia version"
9
+ end
10
+ read_node_file(workspace, jcr_primary_type, mgnl_template, template_file)
11
+ end
12
+
13
+ def read_default_mgnl5_node_json(workspace = "website",
14
+ jcr_primary_type = "mgnl:contentNode", mgnl_template = nil)
15
+ read_default_node_json(workspace, jcr_primary_type, mgnl_template, 5)
16
+ end
17
+
18
+ class TemplateNodeProperties
19
+ def initialize(workspace, jcr_primary_type, mgnl_template)
20
+ @workspace = workspace
21
+ @jcr_primary_type = jcr_primary_type
22
+ @mgnl_template = mgnl_template
23
+ end
24
+
25
+ def grab_binding
26
+ binding
27
+ end
28
+ end
29
+
30
+ private
31
+
32
+ def read_node_file(workspace, jcr_primary_type, mgnl_template, template_file)
33
+ result = nil
34
+ File.open(template_file) do |file|
35
+ result = file.read
36
+ end
37
+ template = ERB.new(result)
38
+ properties = TemplateNodeProperties.new(workspace, jcr_primary_type, mgnl_template)
39
+ MultiJson.load(template.result(properties.grab_binding))
40
+ end
metadata ADDED
@@ -0,0 +1,434 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sinicum
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Dievision GmbH
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httpclient
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.20'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.20'
111
+ - !ruby/object:Gem::Dependency
112
+ name: cane
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.5.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.5.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: codeclimate-test-reporter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Provides the necessary functionality to work with Magnolia-managed content
140
+ in a Rails application.
141
+ email:
142
+ - info@dievision.de
143
+ executables: []
144
+ extensions: []
145
+ extra_rdoc_files: []
146
+ files:
147
+ - ".cane"
148
+ - ".gitignore"
149
+ - ".rubocop.yml"
150
+ - ".travis.yml"
151
+ - Gemfile
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - app/assets/javascripts/sinicum/magnolia_client.js.coffee
156
+ - app/controllers/sinicum/controller_base.rb
157
+ - app/controllers/sinicum/controllers/cache_aware.rb
158
+ - app/controllers/sinicum/controllers/global_state_cache.rb
159
+ - app/helpers/sinicum/helper_utils.rb
160
+ - app/helpers/sinicum/mgnl_helper.rb
161
+ - app/helpers/sinicum/mgnl_helper5.rb
162
+ - app/helpers/sinicum/mgnl_image_helper.rb
163
+ - app/helpers/sinicum/taglib_helper5.rb
164
+ - gemfiles/Gemfile-3.2
165
+ - gemfiles/Gemfile-4.0
166
+ - lib/generators/sinicum/install_generator.rb
167
+ - lib/generators/sinicum/templates/VersionHandler.java
168
+ - lib/generators/sinicum/templates/config/default/log4j-development.xml
169
+ - lib/generators/sinicum/templates/config/default/log4j.xml
170
+ - lib/generators/sinicum/templates/config/default/magnolia-author.properties
171
+ - lib/generators/sinicum/templates/config/default/magnolia-public01.properties
172
+ - lib/generators/sinicum/templates/config/default/magnolia.properties
173
+ - lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search-author.xml
174
+ - lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search-public01.xml
175
+ - lib/generators/sinicum/templates/config/repo-conf/jackrabbit-bundle-postgres-search.xml
176
+ - lib/generators/sinicum/templates/magnolia/config.modules.myproject.dialogs.xml
177
+ - lib/generators/sinicum/templates/magnolia/config.modules.myproject.templates.xml
178
+ - lib/generators/sinicum/templates/module-config.xml
179
+ - lib/generators/sinicum/templates/module-pom.xml
180
+ - lib/generators/sinicum/templates/project-pom.xml
181
+ - lib/generators/sinicum/templates/rails/_article.html.haml
182
+ - lib/generators/sinicum/templates/rails/_content.html.haml
183
+ - lib/generators/sinicum/templates/rails/_meta.html.haml
184
+ - lib/generators/sinicum/templates/rails/application.html.haml
185
+ - lib/generators/sinicum/templates/rails/content_controller.rb
186
+ - lib/generators/sinicum/templates/rails/imaging.yml
187
+ - lib/generators/sinicum/templates/rails/sinicum_server.yml
188
+ - lib/sinicum.rb
189
+ - lib/sinicum/content/aggregator.rb
190
+ - lib/sinicum/content/website_content_resolver.rb
191
+ - lib/sinicum/engine.rb
192
+ - lib/sinicum/imaging.rb
193
+ - lib/sinicum/imaging/config.rb
194
+ - lib/sinicum/imaging/converter.rb
195
+ - lib/sinicum/imaging/default_converter.rb
196
+ - lib/sinicum/imaging/image_size_converter.rb
197
+ - lib/sinicum/imaging/imaging.rb
198
+ - lib/sinicum/imaging/imaging_file.rb
199
+ - lib/sinicum/imaging/imaging_middleware.rb
200
+ - lib/sinicum/imaging/max_size_converter.rb
201
+ - lib/sinicum/imaging/resize_crop_converter.rb
202
+ - lib/sinicum/jcr/api_client.rb
203
+ - lib/sinicum/jcr/api_queries.rb
204
+ - lib/sinicum/jcr/cache/global_cache.rb
205
+ - lib/sinicum/jcr/dam/document.rb
206
+ - lib/sinicum/jcr/dam/image.rb
207
+ - lib/sinicum/jcr/jcr_configuration.rb
208
+ - lib/sinicum/jcr/mgnl4_compatibility.rb
209
+ - lib/sinicum/jcr/node.rb
210
+ - lib/sinicum/jcr/node_initializer.rb
211
+ - lib/sinicum/jcr/node_queries.rb
212
+ - lib/sinicum/jcr/query_sanitizer.rb
213
+ - lib/sinicum/jcr/type_translator.rb
214
+ - lib/sinicum/jcr/type_translators/component_translator.rb
215
+ - lib/sinicum/jcr/type_translators/dam_translator.rb
216
+ - lib/sinicum/jcr/type_translators/data_translator.rb
217
+ - lib/sinicum/jcr/type_translators/default_translator.rb
218
+ - lib/sinicum/jcr/type_translators/translator_base.rb
219
+ - lib/sinicum/logger.rb
220
+ - lib/sinicum/navigation/default_navigation_element.rb
221
+ - lib/sinicum/navigation/navigation_element.rb
222
+ - lib/sinicum/navigation/navigation_element_list.rb
223
+ - lib/sinicum/navigation/navigation_handler.rb
224
+ - lib/sinicum/navigation/navigation_status.rb
225
+ - lib/sinicum/templating/area_handler.rb
226
+ - lib/sinicum/templating/dialog_resolver.rb
227
+ - lib/sinicum/templating/templating_utils.rb
228
+ - lib/sinicum/util.rb
229
+ - lib/sinicum/version.rb
230
+ - script/cibuild
231
+ - sinicum.gemspec
232
+ - spec/controllers/sinicum/controller_base_spec.rb
233
+ - spec/controllers/sinicum/controllers/global_state_cache_spec.rb
234
+ - spec/dummy/REVISION
235
+ - spec/dummy/Rakefile
236
+ - spec/dummy/app/controllers/application_controller.rb
237
+ - spec/dummy/app/helpers/application_helper.rb
238
+ - spec/dummy/app/views/application/index.html.erb
239
+ - spec/dummy/app/views/layouts/application.html.erb
240
+ - spec/dummy/app/views/layouts/layout_name.html.erb
241
+ - spec/dummy/app/views/layouts/my-module/test.html.erb
242
+ - spec/dummy/app/views/layouts/my_module/test.html.erb
243
+ - spec/dummy/config.ru
244
+ - spec/dummy/config/application.rb
245
+ - spec/dummy/config/boot.rb
246
+ - spec/dummy/config/database.yml
247
+ - spec/dummy/config/environment.rb
248
+ - spec/dummy/config/environments/development.rb
249
+ - spec/dummy/config/environments/production.rb
250
+ - spec/dummy/config/environments/test.rb
251
+ - spec/dummy/config/imaging.yml
252
+ - spec/dummy/config/initializers/backtrace_silencers.rb
253
+ - spec/dummy/config/initializers/inflections.rb
254
+ - spec/dummy/config/initializers/mime_types.rb
255
+ - spec/dummy/config/initializers/secret_token.rb
256
+ - spec/dummy/config/initializers/session_store.rb
257
+ - spec/dummy/config/locales/en.yml
258
+ - spec/dummy/config/routes.rb
259
+ - spec/dummy/config/sinicum_server.yml
260
+ - spec/dummy/public/404.html
261
+ - spec/dummy/public/422.html
262
+ - spec/dummy/public/500.html
263
+ - spec/dummy/public/favicon.ico
264
+ - spec/dummy/public/javascripts/application.js
265
+ - spec/dummy/public/javascripts/controls.js
266
+ - spec/dummy/public/javascripts/dragdrop.js
267
+ - spec/dummy/public/javascripts/effects.js
268
+ - spec/dummy/public/javascripts/prototype.js
269
+ - spec/dummy/public/javascripts/rails.js
270
+ - spec/dummy/public/stylesheets/.gitkeep
271
+ - spec/dummy/script/rails
272
+ - spec/fixtures/api/cache_global.json
273
+ - spec/fixtures/api/content_mgnl5.json
274
+ - spec/fixtures/api/default_json.json.erb
275
+ - spec/fixtures/api/default_json_mgnl5.json.erb
276
+ - spec/fixtures/api/file.json
277
+ - spec/fixtures/api/file_mgnl5.json
278
+ - spec/fixtures/api/homepage.json
279
+ - spec/fixtures/api/homepage_parent.json
280
+ - spec/fixtures/api/image.json
281
+ - spec/fixtures/api/image_mgnl5.json
282
+ - spec/fixtures/api/navigation_children.json
283
+ - spec/fixtures/api/navigation_parents.json
284
+ - spec/fixtures/api/product.json
285
+ - spec/fixtures/api/query_result.json
286
+ - spec/fixtures/mock_content.rb
287
+ - spec/fixtures/mock_image.gif
288
+ - spec/helpers/sinicum/helper_utils_spec.rb
289
+ - spec/helpers/sinicum/mgnl_helper_spec.rb
290
+ - spec/helpers/sinicum/mgnl_image_helper_spec.rb
291
+ - spec/sinicum/content/aggregator_spec.rb
292
+ - spec/sinicum/content/website_content_resolver_spec.rb
293
+ - spec/sinicum/imaging/config_spec.rb
294
+ - spec/sinicum/imaging/converter_spec.rb
295
+ - spec/sinicum/imaging/image_size_converter_spec.rb
296
+ - spec/sinicum/imaging/imaging.yml
297
+ - spec/sinicum/imaging/imaging_file_spec.rb
298
+ - spec/sinicum/imaging/imaging_middleware_spec.rb
299
+ - spec/sinicum/imaging/max_size_converter_spec.rb
300
+ - spec/sinicum/imaging/resize_crop_converter_spec.rb
301
+ - spec/sinicum/imaging_spec.rb
302
+ - spec/sinicum/jcr/api_client_spec.rb
303
+ - spec/sinicum/jcr/cache/global_cache_spec.rb
304
+ - spec/sinicum/jcr/dam/document_spec.rb
305
+ - spec/sinicum/jcr/dam/image_spec.rb
306
+ - spec/sinicum/jcr/jcr_configuration_spec.rb
307
+ - spec/sinicum/jcr/mgnl4_compatibility_spec.rb
308
+ - spec/sinicum/jcr/node_queries_spec.rb
309
+ - spec/sinicum/jcr/node_spec.rb
310
+ - spec/sinicum/jcr/query_sanitizer_spec.rb
311
+ - spec/sinicum/jcr/type_translator_spec.rb
312
+ - spec/sinicum/jcr/type_translators/component_translator_spec.rb
313
+ - spec/sinicum/jcr/type_translators/data_translator_spec.rb
314
+ - spec/sinicum/jcr/type_translators/default_translator_spec.rb
315
+ - spec/sinicum/navigation/default_navigation_element_spec.rb
316
+ - spec/sinicum/navigation/navigation_handler_spec.rb
317
+ - spec/sinicum/templating/dialog_resolver_spec.rb
318
+ - spec/sinicum/util_spec.rb
319
+ - spec/spec_helper.rb
320
+ - spec/support/default_node_reader.rb
321
+ homepage: http://github.com/dievision/sinicum
322
+ licenses: []
323
+ metadata: {}
324
+ post_install_message:
325
+ rdoc_options: []
326
+ require_paths:
327
+ - lib
328
+ required_ruby_version: !ruby/object:Gem::Requirement
329
+ requirements:
330
+ - - ">="
331
+ - !ruby/object:Gem::Version
332
+ version: '0'
333
+ required_rubygems_version: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: '0'
338
+ requirements: []
339
+ rubyforge_project:
340
+ rubygems_version: 2.2.2
341
+ signing_key:
342
+ specification_version: 4
343
+ summary: Use Magnolia as a CMS backend in a Rails application
344
+ test_files:
345
+ - spec/controllers/sinicum/controller_base_spec.rb
346
+ - spec/controllers/sinicum/controllers/global_state_cache_spec.rb
347
+ - spec/dummy/REVISION
348
+ - spec/dummy/Rakefile
349
+ - spec/dummy/app/controllers/application_controller.rb
350
+ - spec/dummy/app/helpers/application_helper.rb
351
+ - spec/dummy/app/views/application/index.html.erb
352
+ - spec/dummy/app/views/layouts/application.html.erb
353
+ - spec/dummy/app/views/layouts/layout_name.html.erb
354
+ - spec/dummy/app/views/layouts/my-module/test.html.erb
355
+ - spec/dummy/app/views/layouts/my_module/test.html.erb
356
+ - spec/dummy/config.ru
357
+ - spec/dummy/config/application.rb
358
+ - spec/dummy/config/boot.rb
359
+ - spec/dummy/config/database.yml
360
+ - spec/dummy/config/environment.rb
361
+ - spec/dummy/config/environments/development.rb
362
+ - spec/dummy/config/environments/production.rb
363
+ - spec/dummy/config/environments/test.rb
364
+ - spec/dummy/config/imaging.yml
365
+ - spec/dummy/config/initializers/backtrace_silencers.rb
366
+ - spec/dummy/config/initializers/inflections.rb
367
+ - spec/dummy/config/initializers/mime_types.rb
368
+ - spec/dummy/config/initializers/secret_token.rb
369
+ - spec/dummy/config/initializers/session_store.rb
370
+ - spec/dummy/config/locales/en.yml
371
+ - spec/dummy/config/routes.rb
372
+ - spec/dummy/config/sinicum_server.yml
373
+ - spec/dummy/public/404.html
374
+ - spec/dummy/public/422.html
375
+ - spec/dummy/public/500.html
376
+ - spec/dummy/public/favicon.ico
377
+ - spec/dummy/public/javascripts/application.js
378
+ - spec/dummy/public/javascripts/controls.js
379
+ - spec/dummy/public/javascripts/dragdrop.js
380
+ - spec/dummy/public/javascripts/effects.js
381
+ - spec/dummy/public/javascripts/prototype.js
382
+ - spec/dummy/public/javascripts/rails.js
383
+ - spec/dummy/public/stylesheets/.gitkeep
384
+ - spec/dummy/script/rails
385
+ - spec/fixtures/api/cache_global.json
386
+ - spec/fixtures/api/content_mgnl5.json
387
+ - spec/fixtures/api/default_json.json.erb
388
+ - spec/fixtures/api/default_json_mgnl5.json.erb
389
+ - spec/fixtures/api/file.json
390
+ - spec/fixtures/api/file_mgnl5.json
391
+ - spec/fixtures/api/homepage.json
392
+ - spec/fixtures/api/homepage_parent.json
393
+ - spec/fixtures/api/image.json
394
+ - spec/fixtures/api/image_mgnl5.json
395
+ - spec/fixtures/api/navigation_children.json
396
+ - spec/fixtures/api/navigation_parents.json
397
+ - spec/fixtures/api/product.json
398
+ - spec/fixtures/api/query_result.json
399
+ - spec/fixtures/mock_content.rb
400
+ - spec/fixtures/mock_image.gif
401
+ - spec/helpers/sinicum/helper_utils_spec.rb
402
+ - spec/helpers/sinicum/mgnl_helper_spec.rb
403
+ - spec/helpers/sinicum/mgnl_image_helper_spec.rb
404
+ - spec/sinicum/content/aggregator_spec.rb
405
+ - spec/sinicum/content/website_content_resolver_spec.rb
406
+ - spec/sinicum/imaging/config_spec.rb
407
+ - spec/sinicum/imaging/converter_spec.rb
408
+ - spec/sinicum/imaging/image_size_converter_spec.rb
409
+ - spec/sinicum/imaging/imaging.yml
410
+ - spec/sinicum/imaging/imaging_file_spec.rb
411
+ - spec/sinicum/imaging/imaging_middleware_spec.rb
412
+ - spec/sinicum/imaging/max_size_converter_spec.rb
413
+ - spec/sinicum/imaging/resize_crop_converter_spec.rb
414
+ - spec/sinicum/imaging_spec.rb
415
+ - spec/sinicum/jcr/api_client_spec.rb
416
+ - spec/sinicum/jcr/cache/global_cache_spec.rb
417
+ - spec/sinicum/jcr/dam/document_spec.rb
418
+ - spec/sinicum/jcr/dam/image_spec.rb
419
+ - spec/sinicum/jcr/jcr_configuration_spec.rb
420
+ - spec/sinicum/jcr/mgnl4_compatibility_spec.rb
421
+ - spec/sinicum/jcr/node_queries_spec.rb
422
+ - spec/sinicum/jcr/node_spec.rb
423
+ - spec/sinicum/jcr/query_sanitizer_spec.rb
424
+ - spec/sinicum/jcr/type_translator_spec.rb
425
+ - spec/sinicum/jcr/type_translators/component_translator_spec.rb
426
+ - spec/sinicum/jcr/type_translators/data_translator_spec.rb
427
+ - spec/sinicum/jcr/type_translators/default_translator_spec.rb
428
+ - spec/sinicum/navigation/default_navigation_element_spec.rb
429
+ - spec/sinicum/navigation/navigation_handler_spec.rb
430
+ - spec/sinicum/templating/dialog_resolver_spec.rb
431
+ - spec/sinicum/util_spec.rb
432
+ - spec/spec_helper.rb
433
+ - spec/support/default_node_reader.rb
434
+ has_rdoc: