kuhsaft 2.2.6 → 2.3.0
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/README.md +37 -0
- data/Rakefile +6 -5
- data/app/assets/javascripts/ckeditor/plugins/adv_link/LICENSE.txt +674 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/README.md +62 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/anchor.js.coffee +81 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/link.js.coffee +1353 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/images/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/lang/de.js +68 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/lang/en.js +68 -0
- data/app/assets/javascripts/ckeditor/plugins/adv_link/plugin.js.coffee +282 -0
- data/app/assets/javascripts/kuhsaft/cms/application.js.coffee.erb +42 -4
- data/app/assets/stylesheets/kuhsaft/application.css.sass +0 -3
- data/app/assets/stylesheets/kuhsaft/cms/application.css.sass +26 -11
- data/app/controllers/kuhsaft/api/pages_controller.rb +14 -0
- data/app/controllers/kuhsaft/cms/admin_controller.rb +1 -1
- data/app/controllers/kuhsaft/cms/assets_controller.rb +7 -7
- data/app/controllers/kuhsaft/cms/bricks_controller.rb +15 -4
- data/app/controllers/kuhsaft/cms/pages_controller.rb +8 -15
- data/app/controllers/kuhsaft/pages_controller.rb +16 -6
- data/app/controllers/kuhsaft/sitemaps_controller.rb +13 -0
- data/app/helpers/cms_helper.rb +4 -4
- data/app/helpers/kuhsaft/admin_helper.rb +0 -1
- data/app/helpers/kuhsaft/cms/admin_helper.rb +1 -2
- data/app/helpers/kuhsaft/cms/pages_helper.rb +2 -7
- data/app/helpers/pages_helper.rb +8 -37
- data/app/helpers/sitemaps_helper.rb +12 -0
- data/app/models/kuhsaft/accordion_item_brick.rb +1 -1
- data/app/models/kuhsaft/anchor_brick.rb +1 -1
- data/app/models/kuhsaft/asset.rb +26 -23
- data/app/models/kuhsaft/asset_brick.rb +2 -1
- data/app/models/kuhsaft/brick.rb +38 -16
- data/app/models/kuhsaft/brick_type.rb +2 -2
- data/app/models/kuhsaft/brick_type_filter.rb +0 -2
- data/app/models/kuhsaft/column_brick.rb +0 -1
- data/app/models/kuhsaft/image_brick.rb +2 -2
- data/app/models/kuhsaft/image_size.rb +0 -1
- data/app/models/kuhsaft/link_brick.rb +1 -1
- data/app/models/kuhsaft/page.rb +111 -107
- data/app/models/kuhsaft/page_type.rb +1 -1
- data/app/models/kuhsaft/partition.rb +12 -12
- data/app/models/kuhsaft/placeholder_brick.rb +8 -0
- data/app/models/kuhsaft/publish_state.rb +9 -10
- data/app/models/kuhsaft/slider_brick.rb +0 -2
- data/app/models/kuhsaft/text_brick.rb +1 -1
- data/app/models/kuhsaft/two_column_brick.rb +0 -1
- data/app/models/kuhsaft/video_brick.rb +1 -2
- data/app/uploaders/kuhsaft/asset_brick_asset_uploader.rb +39 -38
- data/app/uploaders/kuhsaft/asset_uploader.rb +43 -43
- data/app/uploaders/kuhsaft/image_brick_image_uploader.rb +7 -34
- data/app/views/kuhsaft/asset_bricks/asset_brick/_edit.html.haml +3 -2
- data/app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml +2 -2
- data/app/views/kuhsaft/cms/bricks/_brick_item.html.haml +17 -10
- data/app/views/kuhsaft/cms/bricks/_new.html.haml +34 -0
- data/app/views/kuhsaft/cms/bricks/create.js.haml +6 -0
- data/app/views/kuhsaft/cms/bricks/destroy.js.haml +4 -0
- data/app/views/kuhsaft/cms/bricks/new.js.haml +11 -0
- data/app/views/kuhsaft/cms/pages/_branch.html.haml +2 -2
- data/app/views/kuhsaft/cms/pages/_form.html.haml +29 -18
- data/app/views/kuhsaft/image_bricks/_image_brick.html.haml +9 -7
- data/app/views/kuhsaft/image_bricks/image_brick/_edit.html.haml +3 -0
- data/app/views/kuhsaft/pages/show.html.haml +1 -9
- data/app/views/kuhsaft/placeholder_bricks/_placeholder_brick.html.haml +1 -1
- data/app/views/kuhsaft/sitemaps/index.xml.haml +9 -0
- data/app/views/kuhsaft/video_bricks/_video_brick.html.haml +4 -4
- data/app/views/layouts/kuhsaft/cms/application.html.haml +4 -3
- data/config/initializers/simple_form.rb +4 -4
- data/config/initializers/simple_form_bootstrap.rb +14 -14
- data/config/locales/de.yml +203 -0
- data/config/locales/en.yml +282 -0
- data/config/locales/kuhsaft.de.yml +14 -0
- data/config/locales/kuhsaft.en.yml +60 -0
- data/config/locales/models/kuhsaft/image_brick/de.yml +1 -0
- data/config/locales/models/kuhsaft/image_brick/en.yml +16 -0
- data/config/locales/models/kuhsaft/text_brick/de.yml +3 -0
- data/config/locales/models/kuhsaft/text_brick/en.yml +16 -0
- data/config/locales/models/kuhsaft/video_brick/en.yml +15 -0
- data/config/locales/views/kuhsaft/cms/pages/de.yml +3 -0
- data/config/locales/views/kuhsaft/cms/video_bricks/de.yml +1 -1
- data/config/routes.rb +18 -9
- data/db/migrate/10_add_redirect_url_to_kuhsaft_pages.rb +1 -1
- data/db/migrate/11_update_url_and_redirect_url_value.rb +4 -4
- data/db/migrate/13_add_page_title_to_pages.rb +1 -1
- data/db/migrate/15_add_alt_text_to_bricks.rb +5 -0
- data/db/migrate/16_update_default_value_for_page_type.rb +9 -0
- data/db/migrate/17_set_page_type_to_content_for_empty_fields.rb +7 -0
- data/lib/generators/kuhsaft/assets/install_generator.rb +1 -2
- data/lib/generators/kuhsaft/translations/add_generator.rb +19 -4
- data/lib/kuhsaft.rb +1 -0
- data/lib/kuhsaft/brick_list.rb +6 -8
- data/lib/kuhsaft/engine.rb +5 -1
- data/lib/kuhsaft/orderable.rb +22 -19
- data/lib/kuhsaft/partial_extractor.rb +1 -1
- data/lib/kuhsaft/searchable.rb +8 -11
- data/lib/kuhsaft/translatable.rb +35 -19
- data/lib/kuhsaft/version.rb +1 -1
- data/lib/tasks/kuhsaft_tasks.rake +12 -0
- data/lib/templates/kuhsaft/assets/ck-config.js.coffee +7 -0
- data/lib/templates/kuhsaft/translations/add_translation.html.erb +4 -10
- data/spec/controllers/kuhsaft/api/pages_controller_spec.rb +70 -0
- data/spec/controllers/kuhsaft/pages_controller_spec.rb +18 -14
- data/spec/controllers/kuhsaft/sitemaps_controller_spec.rb +13 -0
- data/spec/dummy/app/assets/javascripts/kuhsaft/cms/ck-config.js.coffee +7 -0
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/config/database.yml +1 -1
- data/spec/factories.rb +3 -3
- data/spec/features/cms_pages_spec.rb +13 -13
- data/spec/features/search_spec.rb +16 -18
- data/spec/helpers/kuhsaft/cms/pages_helper_spec.rb +2 -1
- data/spec/kuhsaft_spec.rb +1 -1
- data/spec/lib/brick_list_spec.rb +1 -1
- data/spec/lib/page_tree_spec.rb +10 -6
- data/spec/lib/searchable_spec.rb +4 -4
- data/spec/lib/translatable_spec.rb +114 -44
- data/spec/models/anchor_brick_spec.rb +1 -1
- data/spec/models/asset_spec.rb +1 -1
- data/spec/models/brick_spec.rb +1 -1
- data/spec/models/page_spec.rb +48 -37
- data/spec/models/publish_state_spec.rb +9 -9
- data/spec/spec_helper.rb +43 -21
- data/spec/support/kuhsaft_spec_helper.rb +2 -2
- data/spec/support/write_expectation.rb +57 -0
- data/spec/views/kuhsaft/sitemaps/index.xml.haml_spec.rb +67 -0
- metadata +119 -4
|
@@ -3,31 +3,31 @@ require 'spec_helper'
|
|
|
3
3
|
describe Kuhsaft::PublishState do
|
|
4
4
|
context 'unpublished' do
|
|
5
5
|
before do
|
|
6
|
-
@publish_state = Kuhsaft::PublishState.new(:
|
|
6
|
+
@publish_state = Kuhsaft::PublishState.new(name: 'unpublished', value: Kuhsaft::PublishState::UNPUBLISHED)
|
|
7
7
|
end
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
it 'should be UNPUBLISHED' do
|
|
10
10
|
@publish_state.value.should be(Kuhsaft::PublishState::UNPUBLISHED)
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
context 'published' do
|
|
15
15
|
before do
|
|
16
|
-
@publish_state = Kuhsaft::PublishState.new(:
|
|
16
|
+
@publish_state = Kuhsaft::PublishState.new(name: 'published', value: Kuhsaft::PublishState::PUBLISHED)
|
|
17
17
|
end
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
it 'should be PUBLISHED' do
|
|
20
20
|
@publish_state.value.should be(Kuhsaft::PublishState::PUBLISHED)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
context 'published_at' do
|
|
25
25
|
before do
|
|
26
|
-
@publish_state = Kuhsaft::PublishState.new(:
|
|
26
|
+
@publish_state = Kuhsaft::PublishState.new(name: 'published_at', value: Kuhsaft::PublishState::PUBLISHED_AT)
|
|
27
27
|
end
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
it 'should be PUBLISHED_AT' do
|
|
30
30
|
@publish_state.value.should be(Kuhsaft::PublishState::PUBLISHED_AT)
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
|
-
end
|
|
33
|
+
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
|
+
ENV['RAILS_ENV'] ||= 'test'
|
|
3
|
+
require_relative File.expand_path('../dummy/config/environment.rb', __FILE__)
|
|
4
|
+
require 'rspec/rails'
|
|
5
|
+
require 'rspec/autorun'
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'rake', 'database_cleaner', 'pry-debugger'
|
|
6
|
-
].each{|lib| require lib }
|
|
7
|
+
['factory_girl', 'capybara/rails', 'pry-debugger', 'database_cleaner'
|
|
8
|
+
].each { |lib| require lib }
|
|
7
9
|
|
|
8
10
|
FactoryGirl.find_definitions
|
|
9
11
|
|
|
10
12
|
ActionMailer::Base.delivery_method = :test
|
|
11
13
|
ActionMailer::Base.perform_deliveries = true
|
|
12
|
-
ActionMailer::Base.default_url_options[:host] =
|
|
14
|
+
ActionMailer::Base.default_url_options[:host] = 'test.com'
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
17
|
+
# in spec/support/ and its subdirectories.
|
|
18
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require_relative f }
|
|
15
19
|
|
|
16
|
-
#
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# Load support files
|
|
21
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
20
|
+
# Checks for pending migrations before tests are run.
|
|
21
|
+
# If you are not using ActiveRecord, you can remove this line.
|
|
22
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
|
22
23
|
|
|
23
24
|
RSpec.configure do |config|
|
|
25
|
+
|
|
24
26
|
# Remove this line if you don't want RSpec's should and should_not
|
|
25
27
|
# methods or matchers
|
|
26
28
|
require 'rspec/expectations'
|
|
@@ -34,22 +36,42 @@ RSpec.configure do |config|
|
|
|
34
36
|
|
|
35
37
|
config.before :suite do
|
|
36
38
|
DatabaseCleaner.strategy = :transaction
|
|
37
|
-
DatabaseCleaner.clean_with
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
config.after :suite do
|
|
41
|
-
# remove migrations?
|
|
39
|
+
DatabaseCleaner.clean_with :truncation
|
|
42
40
|
end
|
|
43
41
|
|
|
44
42
|
config.before do
|
|
45
43
|
DatabaseCleaner.start
|
|
44
|
+
I18n.available_locales = [:en, :de]
|
|
46
45
|
end
|
|
47
46
|
|
|
48
47
|
config.after do
|
|
49
48
|
DatabaseCleaner.clean
|
|
50
49
|
end
|
|
51
50
|
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
# ## Mock Framework
|
|
52
|
+
#
|
|
53
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
|
54
|
+
#
|
|
55
|
+
# config.mock_with :mocha
|
|
56
|
+
# config.mock_with :flexmock
|
|
57
|
+
# config.mock_with :rr
|
|
58
|
+
|
|
59
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
60
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
61
|
+
|
|
62
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
63
|
+
# examples within a transaction, remove the following line or assign false
|
|
64
|
+
# instead of true.
|
|
65
|
+
config.use_transactional_fixtures = true
|
|
66
|
+
|
|
67
|
+
# If true, the base class of anonymous controllers will be inferred
|
|
68
|
+
# automatically. This will be the default behavior in future versions of
|
|
69
|
+
# rspec-rails.
|
|
70
|
+
config.infer_base_class_for_anonymous_controllers = false
|
|
71
|
+
|
|
72
|
+
# Run specs in random order to surface order dependencies. If you find an
|
|
73
|
+
# order dependency and want to debug it, you can fix the order by providing
|
|
74
|
+
# the seed, which is printed after each run.
|
|
75
|
+
# --seed 1234
|
|
76
|
+
config.order = 'random'
|
|
55
77
|
end
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module KuhsaftSpecHelper
|
|
2
2
|
def create_page_tree
|
|
3
3
|
page1 = create(:page)
|
|
4
|
-
page2 = create(:page, :
|
|
5
|
-
page3 = create(:page, :
|
|
4
|
+
page2 = create(:page, parent: page1)
|
|
5
|
+
page3 = create(:page, parent: page2)
|
|
6
6
|
[page1, page2, page3]
|
|
7
7
|
end
|
|
8
8
|
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
RSpec::Matchers.define :write do |message|
|
|
2
|
+
chain(:to) do |io|
|
|
3
|
+
@io = io
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
match do |block|
|
|
7
|
+
output =
|
|
8
|
+
case io
|
|
9
|
+
when :output then fake_stdout(&block)
|
|
10
|
+
when :error then fake_stderr(&block)
|
|
11
|
+
else raise("Allowed values for `to` are :output and :error, got `#{io.inspect}`")
|
|
12
|
+
end
|
|
13
|
+
output.include? message
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
description do
|
|
17
|
+
"write \"#{message}\" #{io_name}"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
failure_message_for_should do
|
|
21
|
+
"expected to #{description}"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
failure_message_for_should_not do
|
|
25
|
+
"expected to not #{description}"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Fake STDERR and return a string written to it.
|
|
29
|
+
def fake_stderr
|
|
30
|
+
original_stderr = $stderr
|
|
31
|
+
$stderr = StringIO.new
|
|
32
|
+
yield
|
|
33
|
+
$stderr.string
|
|
34
|
+
ensure
|
|
35
|
+
$stderr = original_stderr
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Fake STDOUT and return a string written to it.
|
|
39
|
+
def fake_stdout
|
|
40
|
+
original_stdout = $stdout
|
|
41
|
+
$stdout = StringIO.new
|
|
42
|
+
yield
|
|
43
|
+
$stdout.string
|
|
44
|
+
ensure
|
|
45
|
+
$stdout = original_stdout
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# default IO is standard output
|
|
49
|
+
def io
|
|
50
|
+
@io ||= :output
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# IO name is used for description message
|
|
54
|
+
def io_name
|
|
55
|
+
{ output: 'standard output', error: 'standard error' }[io]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
include SitemapsHelper
|
|
3
|
+
|
|
4
|
+
describe 'kuhsaft/sitemaps/index.xml.haml' do
|
|
5
|
+
describe 'structure' do
|
|
6
|
+
before :each do
|
|
7
|
+
@page = create(:page)
|
|
8
|
+
@pages = [@page]
|
|
9
|
+
render
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
it 'renders valid xml' do
|
|
13
|
+
expect { Hash.from_xml(rendered) }.not_to raise_error
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it 'renders the XML template' do
|
|
17
|
+
expect(rendered).to include "<?xml version='1.0' encoding='utf-8' ?>"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it 'includes the loc tag content' do
|
|
21
|
+
expect(rendered).to include "<loc>http://#{@request.host}/#{@page.url}</loc>"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'includes the lastmod tag content' do
|
|
25
|
+
expect(rendered).to include "<lastmod>#{@page.created_at.utc}</lastmod>"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'includes the changefreq tag content' do
|
|
29
|
+
expect(rendered).to include '<changefreq>monthly</changefreq>'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it 'includes the priority tag content' do
|
|
33
|
+
expect(rendered).to include '<priority>0.5</priority>'
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
describe 'count of records'do
|
|
38
|
+
before do
|
|
39
|
+
I18n.stub(:available_locales).and_return([:de, :en])
|
|
40
|
+
|
|
41
|
+
I18n.with_locale(:de) do
|
|
42
|
+
@page = create(:page, title: 'Dummy Page 1 DE')
|
|
43
|
+
@page_de = create(:page, title: 'German Page')
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
I18n.with_locale(:en) do
|
|
47
|
+
@page.update_attributes(title: 'Dummy Page 1 EN')
|
|
48
|
+
@page_en = create(:page, title: 'English Page')
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
@pages = [@page, @page_de, @page_en]
|
|
52
|
+
render
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
it 'has the same count of entry as pages are there' do
|
|
56
|
+
response.body.should have_xpath('//url', count: 4)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it 'has a record for the german url' do
|
|
60
|
+
expect(rendered).to include "<loc>http://#{@request.host}/de/dummy-page-1-de</loc>"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
it 'has a record for the english url' do
|
|
64
|
+
expect(rendered).to include "<loc>http://#{@request.host}/en/dummy-page-1-en</loc>"
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kuhsaft
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Immanuel Häussermann
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date:
|
|
15
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: rspec
|
|
@@ -98,6 +98,20 @@ dependencies:
|
|
|
98
98
|
- - '>='
|
|
99
99
|
- !ruby/object:Gem::Version
|
|
100
100
|
version: '0'
|
|
101
|
+
- !ruby/object:Gem::Dependency
|
|
102
|
+
name: i18n-tasks
|
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
|
104
|
+
requirements:
|
|
105
|
+
- - '>='
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: '0'
|
|
108
|
+
type: :development
|
|
109
|
+
prerelease: false
|
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - '>='
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '0'
|
|
101
115
|
- !ruby/object:Gem::Dependency
|
|
102
116
|
name: rake
|
|
103
117
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -112,6 +126,20 @@ dependencies:
|
|
|
112
126
|
- - '>='
|
|
113
127
|
- !ruby/object:Gem::Version
|
|
114
128
|
version: '0'
|
|
129
|
+
- !ruby/object:Gem::Dependency
|
|
130
|
+
name: nyan-cat-formatter
|
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
|
132
|
+
requirements:
|
|
133
|
+
- - '>='
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: '0'
|
|
136
|
+
type: :development
|
|
137
|
+
prerelease: false
|
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
139
|
+
requirements:
|
|
140
|
+
- - '>='
|
|
141
|
+
- !ruby/object:Gem::Version
|
|
142
|
+
version: '0'
|
|
115
143
|
- !ruby/object:Gem::Dependency
|
|
116
144
|
name: coffee-rails
|
|
117
145
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -126,6 +154,20 @@ dependencies:
|
|
|
126
154
|
- - '>='
|
|
127
155
|
- !ruby/object:Gem::Version
|
|
128
156
|
version: '0'
|
|
157
|
+
- !ruby/object:Gem::Dependency
|
|
158
|
+
name: remotipart
|
|
159
|
+
requirement: !ruby/object:Gem::Requirement
|
|
160
|
+
requirements:
|
|
161
|
+
- - '>='
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: '0'
|
|
164
|
+
type: :runtime
|
|
165
|
+
prerelease: false
|
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
167
|
+
requirements:
|
|
168
|
+
- - '>='
|
|
169
|
+
- !ruby/object:Gem::Version
|
|
170
|
+
version: '0'
|
|
129
171
|
- !ruby/object:Gem::Dependency
|
|
130
172
|
name: haml
|
|
131
173
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -309,19 +351,61 @@ dependencies:
|
|
|
309
351
|
- !ruby/object:Gem::Version
|
|
310
352
|
version: '0'
|
|
311
353
|
- !ruby/object:Gem::Dependency
|
|
312
|
-
name:
|
|
354
|
+
name: better_errors
|
|
313
355
|
requirement: !ruby/object:Gem::Requirement
|
|
314
356
|
requirements:
|
|
315
357
|
- - '>='
|
|
316
358
|
- !ruby/object:Gem::Version
|
|
317
359
|
version: '0'
|
|
318
|
-
type: :
|
|
360
|
+
type: :development
|
|
361
|
+
prerelease: false
|
|
362
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
363
|
+
requirements:
|
|
364
|
+
- - '>='
|
|
365
|
+
- !ruby/object:Gem::Version
|
|
366
|
+
version: '0'
|
|
367
|
+
- !ruby/object:Gem::Dependency
|
|
368
|
+
name: binding_of_caller
|
|
369
|
+
requirement: !ruby/object:Gem::Requirement
|
|
370
|
+
requirements:
|
|
371
|
+
- - '>='
|
|
372
|
+
- !ruby/object:Gem::Version
|
|
373
|
+
version: '0'
|
|
374
|
+
type: :development
|
|
375
|
+
prerelease: false
|
|
376
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
377
|
+
requirements:
|
|
378
|
+
- - '>='
|
|
379
|
+
- !ruby/object:Gem::Version
|
|
380
|
+
version: '0'
|
|
381
|
+
- !ruby/object:Gem::Dependency
|
|
382
|
+
name: rubocop
|
|
383
|
+
requirement: !ruby/object:Gem::Requirement
|
|
384
|
+
requirements:
|
|
385
|
+
- - '>='
|
|
386
|
+
- !ruby/object:Gem::Version
|
|
387
|
+
version: '0'
|
|
388
|
+
type: :development
|
|
319
389
|
prerelease: false
|
|
320
390
|
version_requirements: !ruby/object:Gem::Requirement
|
|
321
391
|
requirements:
|
|
322
392
|
- - '>='
|
|
323
393
|
- !ruby/object:Gem::Version
|
|
324
394
|
version: '0'
|
|
395
|
+
- !ruby/object:Gem::Dependency
|
|
396
|
+
name: sass-rails
|
|
397
|
+
requirement: !ruby/object:Gem::Requirement
|
|
398
|
+
requirements:
|
|
399
|
+
- - ~>
|
|
400
|
+
- !ruby/object:Gem::Version
|
|
401
|
+
version: 4.0.0
|
|
402
|
+
type: :runtime
|
|
403
|
+
prerelease: false
|
|
404
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
405
|
+
requirements:
|
|
406
|
+
- - ~>
|
|
407
|
+
- !ruby/object:Gem::Version
|
|
408
|
+
version: 4.0.0
|
|
325
409
|
- !ruby/object:Gem::Dependency
|
|
326
410
|
name: rails
|
|
327
411
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -384,22 +468,34 @@ executables: []
|
|
|
384
468
|
extensions: []
|
|
385
469
|
extra_rdoc_files: []
|
|
386
470
|
files:
|
|
471
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/anchor.js.coffee
|
|
472
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/dialogs/link.js.coffee
|
|
473
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/images/anchor.png
|
|
474
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/images/hidpi/anchor.png
|
|
475
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/lang/de.js
|
|
476
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/lang/en.js
|
|
477
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/LICENSE.txt
|
|
478
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/plugin.js.coffee
|
|
479
|
+
- app/assets/javascripts/ckeditor/plugins/adv_link/README.md
|
|
387
480
|
- app/assets/javascripts/kuhsaft/application.js.coffee
|
|
388
481
|
- app/assets/javascripts/kuhsaft/cms/application.js.coffee.erb
|
|
389
482
|
- app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
|
|
390
483
|
- app/assets/stylesheets/kuhsaft/application.css.sass
|
|
391
484
|
- app/assets/stylesheets/kuhsaft/cms/application.css.sass
|
|
392
485
|
- app/assets/stylesheets/kuhsaft/modules/_text_brick.css.sass
|
|
486
|
+
- app/controllers/kuhsaft/api/pages_controller.rb
|
|
393
487
|
- app/controllers/kuhsaft/cms/admin_controller.rb
|
|
394
488
|
- app/controllers/kuhsaft/cms/assets_controller.rb
|
|
395
489
|
- app/controllers/kuhsaft/cms/bricks_controller.rb
|
|
396
490
|
- app/controllers/kuhsaft/cms/pages_controller.rb
|
|
397
491
|
- app/controllers/kuhsaft/pages_controller.rb
|
|
492
|
+
- app/controllers/kuhsaft/sitemaps_controller.rb
|
|
398
493
|
- app/helpers/cms_helper.rb
|
|
399
494
|
- app/helpers/kuhsaft/admin_helper.rb
|
|
400
495
|
- app/helpers/kuhsaft/cms/admin_helper.rb
|
|
401
496
|
- app/helpers/kuhsaft/cms/pages_helper.rb
|
|
402
497
|
- app/helpers/pages_helper.rb
|
|
498
|
+
- app/helpers/sitemaps_helper.rb
|
|
403
499
|
- app/models/kuhsaft/accordion_brick.rb
|
|
404
500
|
- app/models/kuhsaft/accordion_item_brick.rb
|
|
405
501
|
- app/models/kuhsaft/anchor_brick.rb
|
|
@@ -445,9 +541,11 @@ files:
|
|
|
445
541
|
- app/views/kuhsaft/cms/assets/new.html.haml
|
|
446
542
|
- app/views/kuhsaft/cms/bricks/_brick_item.html.haml
|
|
447
543
|
- app/views/kuhsaft/cms/bricks/_brick_list.html.haml
|
|
544
|
+
- app/views/kuhsaft/cms/bricks/_new.html.haml
|
|
448
545
|
- app/views/kuhsaft/cms/bricks/_sort_form.html.haml
|
|
449
546
|
- app/views/kuhsaft/cms/bricks/create.js.haml
|
|
450
547
|
- app/views/kuhsaft/cms/bricks/destroy.js.haml
|
|
548
|
+
- app/views/kuhsaft/cms/bricks/new.js.haml
|
|
451
549
|
- app/views/kuhsaft/cms/bricks/update.js.haml
|
|
452
550
|
- app/views/kuhsaft/cms/pages/_branch.html.haml
|
|
453
551
|
- app/views/kuhsaft/cms/pages/_form.html.haml
|
|
@@ -469,6 +567,7 @@ files:
|
|
|
469
567
|
- app/views/kuhsaft/search/_form.html.haml
|
|
470
568
|
- app/views/kuhsaft/search/_results.html.haml
|
|
471
569
|
- app/views/kuhsaft/search/_results_entry.html.haml
|
|
570
|
+
- app/views/kuhsaft/sitemaps/index.xml.haml
|
|
472
571
|
- app/views/kuhsaft/slider_bricks/_slider_brick.html.haml
|
|
473
572
|
- app/views/kuhsaft/slider_bricks/slider_brick/_edit.html.haml
|
|
474
573
|
- app/views/kuhsaft/text_bricks/_text_brick.html.haml
|
|
@@ -481,6 +580,8 @@ files:
|
|
|
481
580
|
- app/views/layouts/kuhsaft/cms/application.html.haml
|
|
482
581
|
- config/initializers/simple_form.rb
|
|
483
582
|
- config/initializers/simple_form_bootstrap.rb
|
|
583
|
+
- config/locales/de.yml
|
|
584
|
+
- config/locales/en.yml
|
|
484
585
|
- config/locales/kuhsaft.de.yml
|
|
485
586
|
- config/locales/kuhsaft.en.yml
|
|
486
587
|
- config/locales/models/kuhsaft/accordion_brick/de.yml
|
|
@@ -489,14 +590,17 @@ files:
|
|
|
489
590
|
- config/locales/models/kuhsaft/asset_brick/de.yml
|
|
490
591
|
- config/locales/models/kuhsaft/column_brick/de.yml
|
|
491
592
|
- config/locales/models/kuhsaft/image_brick/de.yml
|
|
593
|
+
- config/locales/models/kuhsaft/image_brick/en.yml
|
|
492
594
|
- config/locales/models/kuhsaft/image_size/de.yml
|
|
493
595
|
- config/locales/models/kuhsaft/link_brick/de.yml
|
|
494
596
|
- config/locales/models/kuhsaft/page/de.yml
|
|
495
597
|
- config/locales/models/kuhsaft/placeholder_brick/de.yml
|
|
496
598
|
- config/locales/models/kuhsaft/slider_brick/de.yml
|
|
497
599
|
- config/locales/models/kuhsaft/text_brick/de.yml
|
|
600
|
+
- config/locales/models/kuhsaft/text_brick/en.yml
|
|
498
601
|
- config/locales/models/kuhsaft/two_column_brick/de.yml
|
|
499
602
|
- config/locales/models/kuhsaft/video_brick/de.yml
|
|
603
|
+
- config/locales/models/kuhsaft/video_brick/en.yml
|
|
500
604
|
- config/locales/simple_form.en.yml
|
|
501
605
|
- config/locales/views/kuhsaft/cms/admin/de.yml
|
|
502
606
|
- config/locales/views/kuhsaft/cms/bricks/de.yml
|
|
@@ -520,6 +624,9 @@ files:
|
|
|
520
624
|
- db/migrate/12_regenerate_fulltext.rb
|
|
521
625
|
- db/migrate/13_add_page_title_to_pages.rb
|
|
522
626
|
- db/migrate/14_move_kuhsaft_assets.rb
|
|
627
|
+
- db/migrate/15_add_alt_text_to_bricks.rb
|
|
628
|
+
- db/migrate/16_update_default_value_for_page_type.rb
|
|
629
|
+
- db/migrate/17_set_page_type_to_content_for_empty_fields.rb
|
|
523
630
|
- db/seeds.rb
|
|
524
631
|
- lib/generators/kuhsaft/assets/install_generator.rb
|
|
525
632
|
- lib/generators/kuhsaft/translations/add_generator.rb
|
|
@@ -542,7 +649,9 @@ files:
|
|
|
542
649
|
- vendor/assets/stylesheets/nestable.css
|
|
543
650
|
- Rakefile
|
|
544
651
|
- README.md
|
|
652
|
+
- spec/controllers/kuhsaft/api/pages_controller_spec.rb
|
|
545
653
|
- spec/controllers/kuhsaft/pages_controller_spec.rb
|
|
654
|
+
- spec/controllers/kuhsaft/sitemaps_controller_spec.rb
|
|
546
655
|
- spec/dummy/Rakefile
|
|
547
656
|
- spec/dummy/app/assets/images/spec-image.png
|
|
548
657
|
- spec/dummy/app/assets/javascripts/application.js
|
|
@@ -616,6 +725,8 @@ files:
|
|
|
616
725
|
- spec/models/video_brick_spec.rb
|
|
617
726
|
- spec/spec_helper.rb
|
|
618
727
|
- spec/support/kuhsaft_spec_helper.rb
|
|
728
|
+
- spec/support/write_expectation.rb
|
|
729
|
+
- spec/views/kuhsaft/sitemaps/index.xml.haml_spec.rb
|
|
619
730
|
homepage: http://github.com/screenconcept/kuhsaft
|
|
620
731
|
licenses:
|
|
621
732
|
- MIT
|
|
@@ -641,7 +752,9 @@ signing_key:
|
|
|
641
752
|
specification_version: 4
|
|
642
753
|
summary: A tool that helps you to manage your content within your app.
|
|
643
754
|
test_files:
|
|
755
|
+
- spec/controllers/kuhsaft/api/pages_controller_spec.rb
|
|
644
756
|
- spec/controllers/kuhsaft/pages_controller_spec.rb
|
|
757
|
+
- spec/controllers/kuhsaft/sitemaps_controller_spec.rb
|
|
645
758
|
- spec/dummy/Rakefile
|
|
646
759
|
- spec/dummy/app/assets/images/spec-image.png
|
|
647
760
|
- spec/dummy/app/assets/javascripts/application.js
|
|
@@ -715,3 +828,5 @@ test_files:
|
|
|
715
828
|
- spec/models/video_brick_spec.rb
|
|
716
829
|
- spec/spec_helper.rb
|
|
717
830
|
- spec/support/kuhsaft_spec_helper.rb
|
|
831
|
+
- spec/support/write_expectation.rb
|
|
832
|
+
- spec/views/kuhsaft/sitemaps/index.xml.haml_spec.rb
|