locomotivecms_steam 0.1.2.pre.beta → 1.0.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +8 -1
- data/Gemfile +17 -8
- data/Gemfile.lock +160 -113
- data/LICENSE +1 -1
- data/README.md +36 -15
- data/Rakefile +27 -1
- data/bin/steam.rb +97 -0
- data/config/locales/en.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/lib/locomotive/steam.rb +28 -19
- data/lib/locomotive/steam/adapters/concerns/key.rb +15 -0
- data/lib/locomotive/steam/adapters/filesystem.rb +124 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizer.rb +54 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/content_entry.rb +86 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/content_type.rb +21 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/page.rb +160 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/simple.rb +15 -0
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/snippet.rb +33 -0
- data/lib/locomotive/steam/adapters/filesystem/simple_cache_store.rb +38 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loader.rb +47 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_entry.rb +87 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb +96 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/page.rb +145 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb +25 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/snippet.rb +66 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/theme_asset.rb +21 -0
- data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb +72 -0
- data/lib/locomotive/steam/adapters/memory.rb +55 -0
- data/lib/locomotive/steam/adapters/memory/condition.rb +103 -0
- data/lib/locomotive/steam/adapters/memory/dataset.rb +77 -0
- data/lib/locomotive/steam/adapters/memory/order.rb +60 -0
- data/lib/locomotive/steam/adapters/memory/query.rb +116 -0
- data/lib/locomotive/steam/adapters/mongodb.rb +83 -0
- data/lib/locomotive/steam/adapters/mongodb/dataset.rb +20 -0
- data/lib/locomotive/steam/adapters/mongodb/origin.rb +3 -0
- data/lib/locomotive/steam/adapters/mongodb/query.rb +82 -0
- data/lib/locomotive/steam/configuration.rb +106 -2
- data/lib/locomotive/steam/core_ext.rb +2 -1
- data/lib/locomotive/steam/core_ext/hash.rb +31 -19
- data/lib/locomotive/steam/core_ext/kernel.rb +14 -0
- data/lib/locomotive/steam/core_ext/string.rb +35 -6
- data/lib/locomotive/steam/decorators/i18n_decorator.rb +99 -0
- data/lib/locomotive/steam/decorators/template_decorator.rb +37 -0
- data/lib/locomotive/steam/entities/content_entry.rb +151 -0
- data/lib/locomotive/steam/entities/content_type.rb +44 -6
- data/lib/locomotive/steam/entities/content_type_field.rb +71 -0
- data/lib/locomotive/steam/entities/editable_element.rb +21 -0
- data/lib/locomotive/steam/entities/page.rb +48 -127
- data/lib/locomotive/steam/entities/site.rb +36 -27
- data/lib/locomotive/steam/entities/snippet.rb +20 -0
- data/lib/locomotive/steam/entities/theme_asset.rb +9 -0
- data/lib/locomotive/steam/entities/translation.rb +15 -0
- data/lib/locomotive/steam/initializers.rb +0 -4
- data/lib/locomotive/steam/initializers/dragonfly.rb +51 -11
- data/lib/locomotive/steam/initializers/i18n.rb +6 -3
- data/lib/locomotive/steam/initializers/sprockets.rb +4 -1
- data/lib/locomotive/steam/liquid.rb +4 -7
- data/lib/locomotive/steam/liquid/drops/base.rb +0 -1
- data/lib/locomotive/steam/liquid/drops/content_entry.rb +37 -16
- data/lib/locomotive/steam/liquid/drops/content_entry_collection.rb +77 -0
- data/lib/locomotive/steam/liquid/drops/content_types.rb +5 -102
- data/lib/locomotive/steam/liquid/drops/current_user.rb +23 -0
- data/lib/locomotive/steam/liquid/drops/i18n_base.rb +39 -0
- data/lib/locomotive/steam/liquid/drops/page.rb +77 -11
- data/lib/locomotive/steam/liquid/drops/session_proxy.rb +1 -1
- data/lib/locomotive/steam/liquid/drops/site.rb +14 -8
- data/lib/locomotive/steam/liquid/drops/upload_file.rb +23 -0
- data/lib/locomotive/steam/liquid/errors.rb +3 -9
- data/lib/locomotive/steam/liquid/filters/base.rb +62 -0
- data/lib/locomotive/steam/liquid/filters/date.rb +85 -61
- data/lib/locomotive/steam/liquid/filters/html.rb +30 -115
- data/lib/locomotive/steam/liquid/filters/misc.rb +6 -5
- data/lib/locomotive/steam/liquid/filters/pagination.rb +55 -0
- data/lib/locomotive/steam/liquid/filters/resize.rb +2 -3
- data/lib/locomotive/steam/liquid/filters/text.rb +15 -15
- data/lib/locomotive/steam/liquid/filters/translate.rb +5 -14
- data/lib/locomotive/steam/liquid/patches.rb +29 -23
- data/lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb +36 -0
- data/lib/locomotive/steam/liquid/tags/concerns/path.rb +114 -0
- data/lib/locomotive/steam/liquid/tags/consume.rb +39 -43
- data/lib/locomotive/steam/liquid/tags/csrf.rb +21 -12
- data/lib/locomotive/steam/liquid/tags/editable.rb +1 -3
- data/lib/locomotive/steam/liquid/tags/editable/base.rb +54 -15
- data/lib/locomotive/steam/liquid/tags/editable/control.rb +17 -4
- data/lib/locomotive/steam/liquid/tags/editable/file.rb +34 -2
- data/lib/locomotive/steam/liquid/tags/editable/text.rb +54 -2
- data/lib/locomotive/steam/liquid/tags/extends.rb +45 -8
- data/lib/locomotive/steam/liquid/tags/fetch_page.rb +38 -0
- data/lib/locomotive/steam/liquid/tags/google_analytics.rb +25 -12
- data/lib/locomotive/steam/liquid/tags/hybrid.rb +24 -12
- data/lib/locomotive/steam/liquid/tags/inherited_block.rb +39 -0
- data/lib/locomotive/steam/liquid/tags/inline_editor.rb +14 -4
- data/lib/locomotive/steam/liquid/tags/link_to.rb +16 -27
- data/lib/locomotive/steam/liquid/tags/locale_switcher.rb +45 -56
- data/lib/locomotive/steam/liquid/tags/model_form.rb +72 -0
- data/lib/locomotive/steam/liquid/tags/nav.rb +65 -57
- data/lib/locomotive/steam/liquid/tags/paginate.rb +79 -47
- data/lib/locomotive/steam/liquid/tags/path_to.rb +8 -20
- data/lib/locomotive/steam/liquid/tags/seo.rb +8 -8
- data/lib/locomotive/steam/liquid/tags/session_assign.rb +6 -8
- data/lib/locomotive/steam/liquid/tags/snippet.rb +26 -42
- data/lib/locomotive/steam/liquid/tags/with_scope.rb +44 -26
- data/lib/locomotive/steam/middlewares.rb +7 -13
- data/lib/locomotive/steam/middlewares/default_env.rb +25 -0
- data/lib/locomotive/steam/middlewares/dynamic_assets.rb +34 -17
- data/lib/locomotive/steam/middlewares/entry_submission.rb +117 -79
- data/lib/locomotive/steam/middlewares/favicon.rb +5 -2
- data/lib/locomotive/steam/middlewares/helpers.rb +44 -0
- data/lib/locomotive/steam/middlewares/locale.rb +25 -17
- data/lib/locomotive/steam/middlewares/locale_redirection.rb +62 -0
- data/lib/locomotive/steam/middlewares/logging.rb +7 -3
- data/lib/locomotive/steam/middlewares/page.rb +17 -48
- data/lib/locomotive/steam/middlewares/path.rb +5 -8
- data/lib/locomotive/steam/middlewares/renderer.rb +65 -106
- data/lib/locomotive/steam/middlewares/robots.rb +20 -0
- data/lib/locomotive/steam/middlewares/site.rb +42 -0
- data/lib/locomotive/steam/middlewares/sitemap.rb +94 -0
- data/lib/locomotive/steam/middlewares/stack_proxy.rb +46 -0
- data/lib/locomotive/steam/middlewares/templatized_page.rb +40 -14
- data/lib/locomotive/steam/middlewares/threadsafe.rb +65 -0
- data/lib/locomotive/steam/middlewares/timezone.rb +10 -6
- data/lib/locomotive/steam/models.rb +12 -0
- data/lib/locomotive/steam/models/associations/belongs_to.rb +18 -0
- data/lib/locomotive/steam/models/associations/embedded.rb +43 -0
- data/lib/locomotive/steam/models/associations/has_many.rb +22 -0
- data/lib/locomotive/steam/models/associations/many_to_many.rb +22 -0
- data/lib/locomotive/steam/models/associations/referenced.rb +48 -0
- data/lib/locomotive/steam/models/concerns/validation.rb +58 -0
- data/lib/locomotive/steam/models/entity.rb +40 -0
- data/lib/locomotive/steam/models/i18n_field.rb +42 -0
- data/lib/locomotive/steam/models/mapper.rb +119 -0
- data/lib/locomotive/steam/models/pager.rb +53 -0
- data/lib/locomotive/steam/models/repository.rb +101 -0
- data/lib/locomotive/steam/models/scope.rb +31 -0
- data/lib/locomotive/steam/repositories.rb +51 -0
- data/lib/locomotive/steam/repositories/content_entry_repository.rb +183 -0
- data/lib/locomotive/steam/repositories/content_type_field_repository.rb +50 -0
- data/lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb +23 -0
- data/lib/locomotive/steam/repositories/content_type_repository.rb +38 -0
- data/lib/locomotive/steam/repositories/editable_element_repository.rb +20 -0
- data/lib/locomotive/steam/repositories/page_repository.rb +86 -0
- data/lib/locomotive/steam/repositories/site_repository.rb +29 -0
- data/lib/locomotive/steam/repositories/snippet_repository.rb +19 -0
- data/lib/locomotive/steam/repositories/theme_asset_repository.rb +24 -0
- data/lib/locomotive/steam/repositories/translation_repository.rb +17 -0
- data/lib/locomotive/steam/server.rb +61 -40
- data/lib/locomotive/steam/services.rb +120 -1
- data/lib/locomotive/steam/services/asset_host_service.rb +51 -0
- data/lib/locomotive/steam/services/concerns/decorator.rb +35 -0
- data/lib/locomotive/steam/services/csrf_protection_service.rb +13 -0
- data/lib/locomotive/steam/services/editable_element_service.rb +19 -0
- data/lib/locomotive/steam/services/entry_submission_service.rb +91 -0
- data/lib/locomotive/steam/services/external_api_service.rb +55 -0
- data/lib/locomotive/steam/services/image_resizer_service.rb +49 -0
- data/lib/locomotive/steam/services/liquid_parser_service.rb +23 -0
- data/lib/locomotive/steam/services/markdown_service.rb +17 -0
- data/lib/locomotive/steam/services/no_cache_service.rb +17 -0
- data/lib/locomotive/steam/services/page_finder_service.rb +44 -0
- data/lib/locomotive/steam/services/parent_finder_service.rb +23 -0
- data/lib/locomotive/steam/services/site_finder_service.rb +13 -0
- data/lib/locomotive/steam/services/snippet_finder_service.rb +17 -0
- data/lib/locomotive/steam/services/textile_service.rb +17 -0
- data/lib/locomotive/steam/services/theme_asset_url_service.rb +43 -0
- data/lib/locomotive/steam/services/translator_service.rb +34 -0
- data/lib/locomotive/steam/services/url_builder_service.rb +40 -0
- data/lib/locomotive/steam/version.rb +1 -1
- data/locomotivecms_steam.gemspec +34 -28
- data/script/ci/before_build.sh +4 -0
- data/spec/fixtures/default/app/content_types/bands.yml +3 -1
- data/spec/fixtures/default/app/content_types/events.yml +2 -2
- data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +2 -1
- data/spec/fixtures/default/app/views/pages/archives.liquid.haml +6 -0
- data/spec/fixtures/default/app/views/pages/basic.liquid.haml +1 -0
- data/spec/fixtures/default/app/views/pages/contest.liquid.haml +2 -1
- data/spec/fixtures/default/app/views/pages/events.fr.liquid +4 -0
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +23 -1
- data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +16 -5
- data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +2 -1
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +12 -11
- data/spec/fixtures/default/app/views/pages/music.liquid.haml +1 -1
- data/spec/fixtures/default/app/views/pages/songs.liquid +6 -0
- data/spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml +5 -0
- data/spec/fixtures/default/app/views/pages/store.liquid +2 -1
- data/spec/fixtures/default/app/views/pages/tags.liquid +6 -0
- data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +2 -1
- data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +1 -1
- data/spec/fixtures/default/config/deploy.yml +2 -2
- data/spec/fixtures/default/config/site.yml +7 -1
- data/spec/fixtures/default/data/bands.yml +3 -0
- data/spec/fixtures/mongodb/locomotive_accounts.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_accounts.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_content_assets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_assets.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_content_entries.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_entries.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_content_types.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_types.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_pages.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_pages.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_sites.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_sites.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_snippets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_snippets.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_theme_assets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_theme_assets.metadata.json +1 -0
- data/spec/fixtures/mongodb/locomotive_translations.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_translations.metadata.json +1 -0
- data/spec/fixtures/mongodb/sessions.bson +0 -0
- data/spec/fixtures/mongodb/sessions.metadata.json +1 -0
- data/spec/fixtures/mongodb/system.indexes.bson +0 -0
- data/spec/integration/integration_helper.rb +2 -2
- data/spec/integration/liquid/tags/paginate_spec.rb +79 -0
- data/spec/integration/repositories/content_entry_repository_spec.rb +94 -0
- data/spec/integration/repositories/content_type_repository_spec.rb +69 -0
- data/spec/integration/repositories/page_repository_spec.rb +105 -0
- data/spec/integration/repositories/site_repository_spec.rb +45 -0
- data/spec/integration/repositories/snippet_repository_spec.rb +50 -0
- data/spec/integration/repositories/theme_asset_repository_spec.rb +48 -0
- data/spec/integration/repositories/translation_repository_spec.rb +50 -0
- data/spec/integration/server/assets_spec.rb +60 -0
- data/spec/integration/server/basic_spec.rb +100 -100
- data/spec/integration/server/contact_form_spec.rb +96 -25
- data/spec/integration/server/liquid_spec.rb +19 -41
- data/spec/integration/server/nav_spec.rb +49 -0
- data/spec/integration/server/session_spec.rb +33 -0
- data/spec/integration/server/sitemap_spec.rb +34 -0
- data/spec/integration/server/with_scope_spec.rb +28 -2
- data/spec/integration/services/external_api_service_spec.rb +20 -0
- data/spec/locales/locales_spec.rb +7 -7
- data/spec/spec_helper.rb +27 -13
- data/spec/support.rb +5 -1
- data/spec/support/cache_store.rb +3 -0
- data/spec/support/helpers.rb +20 -23
- data/spec/support/liquid.rb +29 -0
- data/spec/support/pry.rb +4 -0
- data/spec/support/time.rb +3 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb +50 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb +25 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb +25 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb +19 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/snippet_spec.rb +26 -0
- data/spec/unit/adapters/filesystem/yaml_loaders/translation_spec.rb +25 -0
- data/spec/unit/adapters/filesystem_adapter_spec.rb +53 -0
- data/spec/unit/adapters/memory/condition_spec.rb +125 -0
- data/spec/unit/adapters/memory/dataset_spec.rb +73 -0
- data/spec/unit/adapters/memory/order_spec.rb +67 -0
- data/spec/unit/adapters/memory/query_spec.rb +85 -0
- data/spec/unit/adapters/memory_adapter_spec.rb +36 -0
- data/spec/unit/adapters/mongodb/query_spec.rb +68 -0
- data/spec/unit/adapters/mongodb_adapter_spec.rb +17 -0
- data/spec/unit/configuration_spec.rb +29 -0
- data/spec/unit/core_ext/string_spec.rb +44 -0
- data/spec/unit/decorators/i18n_decorator_spec.rb +80 -0
- data/spec/unit/entities/content_entry_spec.rb +159 -0
- data/spec/unit/entities/content_type_field_spec.rb +67 -0
- data/spec/unit/entities/content_type_spec.rb +59 -0
- data/spec/unit/entities/page_spec.rb +40 -34
- data/spec/unit/entities/site_spec.rb +56 -5
- data/spec/unit/initializers/dragonfly_spec.rb +31 -0
- data/spec/unit/liquid/drops/content_entry_collection_spec.rb +81 -0
- data/spec/unit/liquid/drops/content_entry_spec.rb +99 -0
- data/spec/unit/liquid/drops/content_types_spec.rb +25 -0
- data/spec/unit/liquid/drops/current_user_spec.rb +45 -0
- data/spec/unit/liquid/drops/page_spec.rb +134 -0
- data/spec/unit/liquid/drops/session_proxy_spec.rb +13 -0
- data/spec/unit/liquid/drops/site_spec.rb +49 -0
- data/spec/unit/liquid/filters/date_spec.rb +160 -0
- data/spec/unit/liquid/filters/html_spec.rb +263 -0
- data/spec/unit/liquid/filters/misc_spec.rb +108 -0
- data/spec/unit/liquid/filters/pagination_spec.rb +42 -0
- data/spec/unit/liquid/filters/resize_spec.rb +36 -0
- data/spec/unit/liquid/filters/text_spec.rb +56 -0
- data/spec/unit/liquid/filters/translate_spec.rb +33 -0
- data/spec/unit/liquid/patches_spec.rb +50 -0
- data/spec/unit/liquid/tags/consume_spec.rb +87 -0
- data/spec/unit/liquid/tags/csrf_spec.rb +47 -0
- data/spec/unit/liquid/tags/editable/control_spec.rb +109 -0
- data/spec/unit/liquid/tags/editable/file_spec.rb +116 -0
- data/spec/unit/liquid/tags/editable/text_spec.rb +139 -0
- data/spec/unit/liquid/tags/extends_spec.rb +38 -0
- data/spec/unit/liquid/tags/fetch_page_spec.rb +39 -0
- data/spec/unit/liquid/tags/google_analytics_spec.rb +16 -0
- data/spec/unit/liquid/tags/inherited_block_spec.rb +33 -0
- data/spec/unit/liquid/tags/link_to_spec.rb +112 -0
- data/spec/unit/liquid/tags/locale_switcher_spec.rb +58 -0
- data/spec/unit/liquid/tags/model_form_spec.rb +35 -0
- data/spec/unit/liquid/tags/nav_spec.rb +184 -111
- data/spec/unit/liquid/tags/paginate_spec.rb +131 -0
- data/spec/unit/liquid/tags/path_to_spec.rb +100 -0
- data/spec/unit/liquid/tags/seo_spec.rb +85 -0
- data/spec/unit/liquid/tags/session_assign_spec.rb +51 -0
- data/spec/unit/liquid/tags/snippet_spec.rb +42 -0
- data/spec/unit/liquid/tags/with_scope_spec.rb +66 -0
- data/spec/unit/middlewares/dynamic_assets_spec.rb +25 -0
- data/spec/unit/middlewares/locale_redirection_spec.rb +105 -0
- data/spec/unit/middlewares/renderer_spec.rb +29 -0
- data/spec/unit/middlewares/stack_proxy_spec.rb +67 -0
- data/spec/unit/models/mapper_spec.rb +75 -0
- data/spec/unit/models/pager_spec.rb +82 -0
- data/spec/unit/models/repository_spec.rb +46 -0
- data/spec/unit/models/scope_spec.rb +27 -0
- data/spec/unit/repositories/content_entry_repository_spec.rb +347 -0
- data/spec/unit/repositories/content_type_repository_spec.rb +126 -0
- data/spec/unit/repositories/page_repository_spec.rb +365 -0
- data/spec/unit/repositories/site_repository_spec.rb +41 -0
- data/spec/unit/repositories/snippet_repository_spec.rb +37 -0
- data/spec/unit/repositories/theme_asset_repository_spec.rb +35 -0
- data/spec/unit/repositories/translation_repository_spec.rb +34 -0
- data/spec/unit/services/asset_host_service_spec.rb +79 -0
- data/spec/unit/services/entry_submission_service_spec.rb +143 -0
- data/spec/unit/services/external_api_service_spec.rb +80 -0
- data/spec/unit/services/image_resizer_service_spec.rb +75 -0
- data/spec/unit/services/markdown_service_spec.rb +36 -0
- data/spec/unit/services/parent_finder_service_spec.rb +41 -0
- data/spec/unit/services/textile_service_spec.rb +34 -0
- data/spec/unit/services/translator_service_spec.rb +65 -0
- data/spec/unit/services/url_builder_service_spec.rb +48 -0
- data/spec/unit/services_spec.rb +25 -0
- metadata +462 -119
- data/example/server.rb +0 -31
- data/lib/locomotive/steam/decorators.rb +0 -1
- data/lib/locomotive/steam/decorators/page_decorator.rb +0 -50
- data/lib/locomotive/steam/exceptions.rb +0 -62
- data/lib/locomotive/steam/liquid/scopeable.rb +0 -149
- data/lib/locomotive/steam/liquid/tags/editable/long_text.rb +0 -15
- data/lib/locomotive/steam/liquid/tags/editable/short_text.rb +0 -20
- data/lib/locomotive/steam/liquid/tags/path_helper.rb +0 -98
- data/lib/locomotive/steam/loaders/yml/pages_loader.rb +0 -193
- data/lib/locomotive/steam/loaders/yml/site_loader.rb +0 -49
- data/lib/locomotive/steam/loaders/yml/utils/localized_tree.rb +0 -33
- data/lib/locomotive/steam/loaders/yml/utils/yaml_front_matters_template.rb +0 -66
- data/lib/locomotive/steam/loaders/yml_loader.rb +0 -33
- data/lib/locomotive/steam/mapper.rb +0 -86
- data/lib/locomotive/steam/middlewares/base.rb +0 -65
- data/lib/locomotive/steam/middlewares/stack.rb +0 -66
- data/lib/locomotive/steam/middlewares/static_assets.rb +0 -25
- data/lib/locomotive/steam/monkey_patches.rb +0 -3
- data/lib/locomotive/steam/monkey_patches/haml.rb +0 -17
- data/lib/locomotive/steam/repositories/content_types_repository.rb +0 -14
- data/lib/locomotive/steam/repositories/pages_repository.rb +0 -23
- data/lib/locomotive/steam/repositories/sites_repository.rb +0 -16
- data/lib/locomotive/steam/services/dragonfly.rb +0 -49
- data/lib/locomotive/steam/services/external_api.rb +0 -47
- data/lib/locomotive/steam/services/markdown.rb +0 -20
- data/lib/locomotive/steam/standalone_server.rb +0 -30
- data/spec/unit/decorators/page_decorator_spec.rb +0 -55
- data/spec/unit/loaders/pages_loader_spec.rb +0 -42
- data/spec/unit/loaders/site_loader_spec.rb +0 -21
- data/spec/unit/loaders/utils/localized_tree_spec.rb +0 -33
- data/spec/unit/loaders/utils/yaml_front_matters_template_spec.rb +0 -39
- data/spec/unit/middlewares/base_spec.rb +0 -20
- data/spec/unit/middlewares/page_spec.rb +0 -51
- data/spec/unit/repositories/pages_spec.rb +0 -11
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Steam::ParentFinderService do
|
4
|
+
|
5
|
+
let(:site) { instance_double('Site', default_locale: :en) }
|
6
|
+
let(:repository) { instance_double('PageRepository', site: site, locale: :en)}
|
7
|
+
let(:service) { described_class.new(repository) }
|
8
|
+
|
9
|
+
describe '#find' do
|
10
|
+
|
11
|
+
let(:name) { '' }
|
12
|
+
let(:another_page) { instance_double('Index', title: 'Index', attributes: {}, localized_attributes: {}) }
|
13
|
+
let(:page) { instance_double('AboutUs', title: 'About us') }
|
14
|
+
|
15
|
+
subject { service.find(page, name).try(:title) }
|
16
|
+
|
17
|
+
it { is_expected.to eq nil }
|
18
|
+
|
19
|
+
describe 'using the parent keyword' do
|
20
|
+
|
21
|
+
let(:name) { 'parent' }
|
22
|
+
|
23
|
+
before { expect(repository).to receive(:parent_of).and_return(another_page) }
|
24
|
+
|
25
|
+
it { is_expected.to eq 'Index' }
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'using the fullpath' do
|
30
|
+
|
31
|
+
let(:name) { 'index' }
|
32
|
+
|
33
|
+
before { expect(repository).to receive(:by_fullpath).with('index').and_return(another_page) }
|
34
|
+
|
35
|
+
it { is_expected.to eq 'Index' }
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Steam::TextileService do
|
4
|
+
|
5
|
+
let(:service) { described_class.new }
|
6
|
+
|
7
|
+
describe '#to_html' do
|
8
|
+
|
9
|
+
let(:text) { <<-EOF
|
10
|
+
h1. Give RedCloth a try!
|
11
|
+
|
12
|
+
A *simple* paragraph
|
13
|
+
EOF
|
14
|
+
}
|
15
|
+
|
16
|
+
subject { service.to_html(text) }
|
17
|
+
|
18
|
+
it do
|
19
|
+
is_expected.to eq <<-EOF
|
20
|
+
<h1>Give RedCloth a try!</h1>
|
21
|
+
<p>A <strong>simple</strong> paragraph</p>
|
22
|
+
EOF
|
23
|
+
.strip
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'no text' do
|
27
|
+
|
28
|
+
let(:text) { nil }
|
29
|
+
it { is_expected.to eq '' }
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Steam::TranslatorService do
|
4
|
+
|
5
|
+
let(:default_locale) { 'en' }
|
6
|
+
let(:repository) { instance_double('Repository') }
|
7
|
+
let(:service) { described_class.new(repository, default_locale) }
|
8
|
+
|
9
|
+
describe '#translate' do
|
10
|
+
|
11
|
+
let(:input) { 'example_test' }
|
12
|
+
let(:locale) { nil }
|
13
|
+
let(:scope) { nil }
|
14
|
+
|
15
|
+
subject { service.translate(input, locale, scope) }
|
16
|
+
|
17
|
+
describe 'existing translation' do
|
18
|
+
|
19
|
+
let(:translation) { instance_double('Translation', values: { 'en' => 'Example text', 'es' => 'Texto de ejemplo' }) }
|
20
|
+
|
21
|
+
before do
|
22
|
+
allow(repository).to receive(:by_key).with('example_test').and_return(translation)
|
23
|
+
end
|
24
|
+
|
25
|
+
it { is_expected.to eq 'Example text' }
|
26
|
+
|
27
|
+
context 'no translation found' do
|
28
|
+
|
29
|
+
let(:translation) { nil }
|
30
|
+
it { is_expected.to eq 'example_test' }
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
context 'specifying a locale' do
|
35
|
+
|
36
|
+
let(:locale) { 'es' }
|
37
|
+
it { is_expected.to eq 'Texto de ejemplo' }
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
context "specifying a locale that doesn't exist" do
|
42
|
+
|
43
|
+
let(:locale) { 'nl' }
|
44
|
+
|
45
|
+
it 'reverts to default locale' do
|
46
|
+
is_expected.to eq "example_test"
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
context "specifying a scope" do
|
52
|
+
|
53
|
+
let(:input) { 'fr' }
|
54
|
+
let(:locale) { 'en' }
|
55
|
+
let(:scope) { 'locomotive.locales' }
|
56
|
+
|
57
|
+
it { is_expected.to eq 'French' }
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Steam::UrlBuilderService do
|
4
|
+
|
5
|
+
let(:site) { instance_double('Site', default_locale: 'en') }
|
6
|
+
let(:locale) { 'en' }
|
7
|
+
let(:service) { described_class.new(site, locale) }
|
8
|
+
|
9
|
+
describe '#url_for' do
|
10
|
+
|
11
|
+
let(:page) { instance_double('AboutUs', fullpath: 'about-us', templatized?: false) }
|
12
|
+
|
13
|
+
subject { service.url_for(page) }
|
14
|
+
|
15
|
+
it { is_expected.to eq '/about-us' }
|
16
|
+
|
17
|
+
describe 'a locale different from the default one' do
|
18
|
+
|
19
|
+
let(:locale) { 'fr' }
|
20
|
+
it { is_expected.to eq '/fr/about-us' }
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
describe 'no need to put the index slug' do
|
25
|
+
|
26
|
+
let(:page) { instance_double('Index', fullpath: 'index', templatized?: false) }
|
27
|
+
it { is_expected.to eq '/' }
|
28
|
+
|
29
|
+
context 'different locale' do
|
30
|
+
|
31
|
+
let(:locale) { 'fr' }
|
32
|
+
it { is_expected.to eq '/fr' }
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'templatized page' do
|
39
|
+
|
40
|
+
let(:article) { instance_double('Article', _slug: 'hello-world') }
|
41
|
+
let(:page) { instance_double('Template', fullpath: 'articles/content_type_template', templatized?: true, content_entry: article) }
|
42
|
+
it { is_expected.to eq '/articles/hello-world' }
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Locomotive::Steam::Services do
|
4
|
+
|
5
|
+
subject { Locomotive::Steam::Services.build_instance(nil) }
|
6
|
+
|
7
|
+
describe 'configuration with a services hook' do
|
8
|
+
|
9
|
+
before do
|
10
|
+
Locomotive::Steam.configure do |config|
|
11
|
+
config.services_hook = -> (services) {
|
12
|
+
services.repositories = MyService.new
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
after { Locomotive::Steam.configure { |c| c.services_hook = nil } }
|
18
|
+
|
19
|
+
it { expect(subject.repositories).to be_instance_of(MyService) }
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
class MyService; end
|
24
|
+
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_steam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2015-03-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -19,308 +19,350 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '1.
|
22
|
+
version: '1.7'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '1.
|
29
|
+
version: '1.7'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - "~>"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 10.4.2
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 10.4.2
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
45
|
+
name: moped
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: 2.0.4
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 2.0.4
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
59
|
+
name: origin
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- - "
|
62
|
+
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
64
|
+
version: 2.1.1
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - "
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
71
|
+
version: 2.1.1
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
|
-
name:
|
73
|
+
name: activesupport
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - "~>"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
type: :
|
78
|
+
version: 4.2.1
|
79
|
+
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- - "
|
83
|
+
- - "~>"
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 4.2.1
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
|
-
name:
|
87
|
+
name: stringex
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - "
|
90
|
+
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
93
|
-
type: :
|
92
|
+
version: 2.5.2
|
93
|
+
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
99
|
+
version: 2.5.2
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
|
-
name:
|
101
|
+
name: sanitize
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
104
|
+
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
107
|
-
type: :
|
106
|
+
version: 3.1.2
|
107
|
+
type: :runtime
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: 3.1.2
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
115
|
+
name: morphine
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- - "
|
118
|
+
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
121
|
-
type: :
|
120
|
+
version: 0.1.1
|
121
|
+
type: :runtime
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- - "
|
125
|
+
- - "~>"
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
127
|
+
version: 0.1.1
|
128
128
|
- !ruby/object:Gem::Dependency
|
129
129
|
name: httparty
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - "~>"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 0.13.3
|
135
|
+
type: :runtime
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.13.3
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: chronic
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - "~>"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 0.10.2
|
135
149
|
type: :runtime
|
136
150
|
prerelease: false
|
137
151
|
version_requirements: !ruby/object:Gem::Requirement
|
138
152
|
requirements:
|
139
153
|
- - "~>"
|
140
154
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
155
|
+
version: 0.10.2
|
142
156
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
157
|
+
name: rack-rewrite
|
144
158
|
requirement: !ruby/object:Gem::Requirement
|
145
159
|
requirements:
|
146
160
|
- - "~>"
|
147
161
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
162
|
+
version: 1.5.1
|
149
163
|
type: :runtime
|
150
164
|
prerelease: false
|
151
165
|
version_requirements: !ruby/object:Gem::Requirement
|
152
166
|
requirements:
|
153
167
|
- - "~>"
|
154
168
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
169
|
+
version: 1.5.1
|
156
170
|
- !ruby/object:Gem::Dependency
|
157
171
|
name: rack-cache
|
158
172
|
requirement: !ruby/object:Gem::Requirement
|
159
173
|
requirements:
|
160
174
|
- - "~>"
|
161
175
|
- !ruby/object:Gem::Version
|
162
|
-
version: '1.
|
176
|
+
version: '1.2'
|
163
177
|
type: :runtime
|
164
178
|
prerelease: false
|
165
179
|
version_requirements: !ruby/object:Gem::Requirement
|
166
180
|
requirements:
|
167
181
|
- - "~>"
|
168
182
|
- !ruby/object:Gem::Version
|
169
|
-
version: '1.
|
183
|
+
version: '1.2'
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: dragonfly
|
186
|
+
requirement: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - "~>"
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 1.0.7
|
191
|
+
type: :runtime
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 1.0.7
|
170
198
|
- !ruby/object:Gem::Dependency
|
171
199
|
name: moneta
|
172
200
|
requirement: !ruby/object:Gem::Requirement
|
173
201
|
requirements:
|
174
202
|
- - "~>"
|
175
203
|
- !ruby/object:Gem::Version
|
176
|
-
version: 0.
|
204
|
+
version: 0.8.0
|
177
205
|
type: :runtime
|
178
206
|
prerelease: false
|
179
207
|
version_requirements: !ruby/object:Gem::Requirement
|
180
208
|
requirements:
|
181
209
|
- - "~>"
|
182
210
|
- !ruby/object:Gem::Version
|
183
|
-
version: 0.
|
211
|
+
version: 0.8.0
|
212
|
+
- !ruby/object:Gem::Dependency
|
213
|
+
name: rack_csrf
|
214
|
+
requirement: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - "~>"
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: 2.5.0
|
219
|
+
type: :runtime
|
220
|
+
prerelease: false
|
221
|
+
version_requirements: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: 2.5.0
|
184
226
|
- !ruby/object:Gem::Dependency
|
185
227
|
name: sprockets
|
186
228
|
requirement: !ruby/object:Gem::Requirement
|
187
229
|
requirements:
|
188
230
|
- - "~>"
|
189
231
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
232
|
+
version: 2.12.3
|
191
233
|
type: :runtime
|
192
234
|
prerelease: false
|
193
235
|
version_requirements: !ruby/object:Gem::Requirement
|
194
236
|
requirements:
|
195
237
|
- - "~>"
|
196
238
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
239
|
+
version: 2.12.3
|
198
240
|
- !ruby/object:Gem::Dependency
|
199
241
|
name: sprockets-sass
|
200
242
|
requirement: !ruby/object:Gem::Requirement
|
201
243
|
requirements:
|
202
244
|
- - "~>"
|
203
245
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
246
|
+
version: 1.3.1
|
205
247
|
type: :runtime
|
206
248
|
prerelease: false
|
207
249
|
version_requirements: !ruby/object:Gem::Requirement
|
208
250
|
requirements:
|
209
251
|
- - "~>"
|
210
252
|
- !ruby/object:Gem::Version
|
211
|
-
version:
|
253
|
+
version: 1.3.1
|
212
254
|
- !ruby/object:Gem::Dependency
|
213
|
-
name:
|
255
|
+
name: coffee-script
|
214
256
|
requirement: !ruby/object:Gem::Requirement
|
215
257
|
requirements:
|
216
258
|
- - "~>"
|
217
259
|
- !ruby/object:Gem::Version
|
218
|
-
version:
|
260
|
+
version: 2.3.0
|
219
261
|
type: :runtime
|
220
262
|
prerelease: false
|
221
263
|
version_requirements: !ruby/object:Gem::Requirement
|
222
264
|
requirements:
|
223
265
|
- - "~>"
|
224
266
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
267
|
+
version: 2.3.0
|
226
268
|
- !ruby/object:Gem::Dependency
|
227
|
-
name:
|
269
|
+
name: compass
|
228
270
|
requirement: !ruby/object:Gem::Requirement
|
229
271
|
requirements:
|
230
272
|
- - "~>"
|
231
273
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
274
|
+
version: 1.0.3
|
233
275
|
type: :runtime
|
234
276
|
prerelease: false
|
235
277
|
version_requirements: !ruby/object:Gem::Requirement
|
236
278
|
requirements:
|
237
279
|
- - "~>"
|
238
280
|
- !ruby/object:Gem::Version
|
239
|
-
version:
|
281
|
+
version: 1.0.3
|
240
282
|
- !ruby/object:Gem::Dependency
|
241
283
|
name: kramdown
|
242
284
|
requirement: !ruby/object:Gem::Requirement
|
243
285
|
requirements:
|
244
286
|
- - "~>"
|
245
287
|
- !ruby/object:Gem::Version
|
246
|
-
version: 1.
|
288
|
+
version: 1.6.0
|
247
289
|
type: :runtime
|
248
290
|
prerelease: false
|
249
291
|
version_requirements: !ruby/object:Gem::Requirement
|
250
292
|
requirements:
|
251
293
|
- - "~>"
|
252
294
|
- !ruby/object:Gem::Version
|
253
|
-
version: 1.
|
295
|
+
version: 1.6.0
|
254
296
|
- !ruby/object:Gem::Dependency
|
255
|
-
name:
|
297
|
+
name: RedCloth
|
256
298
|
requirement: !ruby/object:Gem::Requirement
|
257
299
|
requirements:
|
258
300
|
- - "~>"
|
259
301
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
302
|
+
version: 4.2.9
|
261
303
|
type: :runtime
|
262
304
|
prerelease: false
|
263
305
|
version_requirements: !ruby/object:Gem::Requirement
|
264
306
|
requirements:
|
265
307
|
- - "~>"
|
266
308
|
- !ruby/object:Gem::Version
|
267
|
-
version:
|
309
|
+
version: 4.2.9
|
268
310
|
- !ruby/object:Gem::Dependency
|
269
311
|
name: haml
|
270
312
|
requirement: !ruby/object:Gem::Requirement
|
271
313
|
requirements:
|
272
314
|
- - "~>"
|
273
315
|
- !ruby/object:Gem::Version
|
274
|
-
version: 4.0.
|
316
|
+
version: 4.0.6
|
275
317
|
type: :runtime
|
276
318
|
prerelease: false
|
277
319
|
version_requirements: !ruby/object:Gem::Requirement
|
278
320
|
requirements:
|
279
321
|
- - "~>"
|
280
322
|
- !ruby/object:Gem::Version
|
281
|
-
version: 4.0.
|
323
|
+
version: 4.0.6
|
282
324
|
- !ruby/object:Gem::Dependency
|
283
|
-
name:
|
325
|
+
name: mimetype-fu
|
284
326
|
requirement: !ruby/object:Gem::Requirement
|
285
327
|
requirements:
|
286
328
|
- - "~>"
|
287
329
|
- !ruby/object:Gem::Version
|
288
|
-
version: 0.
|
330
|
+
version: 0.1.2
|
289
331
|
type: :runtime
|
290
332
|
prerelease: false
|
291
333
|
version_requirements: !ruby/object:Gem::Requirement
|
292
334
|
requirements:
|
293
335
|
- - "~>"
|
294
336
|
- !ruby/object:Gem::Version
|
295
|
-
version: 0.
|
337
|
+
version: 0.1.2
|
296
338
|
- !ruby/object:Gem::Dependency
|
297
|
-
name:
|
339
|
+
name: mime-types
|
298
340
|
requirement: !ruby/object:Gem::Requirement
|
299
341
|
requirements:
|
300
342
|
- - "~>"
|
301
343
|
- !ruby/object:Gem::Version
|
302
|
-
version:
|
344
|
+
version: 2.4.3
|
303
345
|
type: :runtime
|
304
346
|
prerelease: false
|
305
347
|
version_requirements: !ruby/object:Gem::Requirement
|
306
348
|
requirements:
|
307
349
|
- - "~>"
|
308
350
|
- !ruby/object:Gem::Version
|
309
|
-
version:
|
351
|
+
version: 2.4.3
|
310
352
|
- !ruby/object:Gem::Dependency
|
311
353
|
name: locomotivecms-solid
|
312
354
|
requirement: !ruby/object:Gem::Requirement
|
313
355
|
requirements:
|
314
|
-
- - "
|
356
|
+
- - "~>"
|
315
357
|
- !ruby/object:Gem::Version
|
316
|
-
version:
|
358
|
+
version: 4.0.0.alpha2
|
317
359
|
type: :runtime
|
318
360
|
prerelease: false
|
319
361
|
version_requirements: !ruby/object:Gem::Requirement
|
320
362
|
requirements:
|
321
|
-
- - "
|
363
|
+
- - "~>"
|
322
364
|
- !ruby/object:Gem::Version
|
323
|
-
version:
|
365
|
+
version: 4.0.0.alpha2
|
324
366
|
- !ruby/object:Gem::Dependency
|
325
367
|
name: locomotivecms_common
|
326
368
|
requirement: !ruby/object:Gem::Requirement
|
@@ -341,7 +383,8 @@ email:
|
|
341
383
|
- papipo@gmail.com
|
342
384
|
- arnaud@sellenet.fr
|
343
385
|
- joel.azemar@gmail.com
|
344
|
-
executables:
|
386
|
+
executables:
|
387
|
+
- steam.rb
|
345
388
|
extensions: []
|
346
389
|
extra_rdoc_files: []
|
347
390
|
files:
|
@@ -353,6 +396,7 @@ files:
|
|
353
396
|
- LICENSE
|
354
397
|
- README.md
|
355
398
|
- Rakefile
|
399
|
+
- bin/steam.rb
|
356
400
|
- config/locales/de.yml
|
357
401
|
- config/locales/en.yml
|
358
402
|
- config/locales/es.yml
|
@@ -364,21 +408,52 @@ files:
|
|
364
408
|
- config/locales/pl.yml
|
365
409
|
- config/locales/pt-BR.yml
|
366
410
|
- config/locales/ru.yml
|
367
|
-
- example/server.rb
|
368
411
|
- lib/locomotive/steam.rb
|
412
|
+
- lib/locomotive/steam/adapters/concerns/key.rb
|
413
|
+
- lib/locomotive/steam/adapters/filesystem.rb
|
414
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizer.rb
|
415
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizers/content_entry.rb
|
416
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizers/content_type.rb
|
417
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizers/page.rb
|
418
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizers/simple.rb
|
419
|
+
- lib/locomotive/steam/adapters/filesystem/sanitizers/snippet.rb
|
420
|
+
- lib/locomotive/steam/adapters/filesystem/simple_cache_store.rb
|
421
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loader.rb
|
422
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_entry.rb
|
423
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb
|
424
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/page.rb
|
425
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
|
426
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/snippet.rb
|
427
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/theme_asset.rb
|
428
|
+
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
|
429
|
+
- lib/locomotive/steam/adapters/memory.rb
|
430
|
+
- lib/locomotive/steam/adapters/memory/condition.rb
|
431
|
+
- lib/locomotive/steam/adapters/memory/dataset.rb
|
432
|
+
- lib/locomotive/steam/adapters/memory/order.rb
|
433
|
+
- lib/locomotive/steam/adapters/memory/query.rb
|
434
|
+
- lib/locomotive/steam/adapters/mongodb.rb
|
435
|
+
- lib/locomotive/steam/adapters/mongodb/dataset.rb
|
436
|
+
- lib/locomotive/steam/adapters/mongodb/origin.rb
|
437
|
+
- lib/locomotive/steam/adapters/mongodb/query.rb
|
369
438
|
- lib/locomotive/steam/configuration.rb
|
370
439
|
- lib/locomotive/steam/core_ext.rb
|
371
440
|
- lib/locomotive/steam/core_ext/array.rb
|
372
441
|
- lib/locomotive/steam/core_ext/boolean/false.rb
|
373
442
|
- lib/locomotive/steam/core_ext/boolean/true.rb
|
374
443
|
- lib/locomotive/steam/core_ext/hash.rb
|
444
|
+
- lib/locomotive/steam/core_ext/kernel.rb
|
375
445
|
- lib/locomotive/steam/core_ext/string.rb
|
376
|
-
- lib/locomotive/steam/decorators.rb
|
377
|
-
- lib/locomotive/steam/decorators/
|
446
|
+
- lib/locomotive/steam/decorators/i18n_decorator.rb
|
447
|
+
- lib/locomotive/steam/decorators/template_decorator.rb
|
448
|
+
- lib/locomotive/steam/entities/content_entry.rb
|
378
449
|
- lib/locomotive/steam/entities/content_type.rb
|
450
|
+
- lib/locomotive/steam/entities/content_type_field.rb
|
451
|
+
- lib/locomotive/steam/entities/editable_element.rb
|
379
452
|
- lib/locomotive/steam/entities/page.rb
|
380
453
|
- lib/locomotive/steam/entities/site.rb
|
381
|
-
- lib/locomotive/steam/
|
454
|
+
- lib/locomotive/steam/entities/snippet.rb
|
455
|
+
- lib/locomotive/steam/entities/theme_asset.rb
|
456
|
+
- lib/locomotive/steam/entities/translation.rb
|
382
457
|
- lib/locomotive/steam/initializers.rb
|
383
458
|
- lib/locomotive/steam/initializers/dragonfly.rb
|
384
459
|
- lib/locomotive/steam/initializers/i18n.rb
|
@@ -386,75 +461,115 @@ files:
|
|
386
461
|
- lib/locomotive/steam/liquid.rb
|
387
462
|
- lib/locomotive/steam/liquid/drops/base.rb
|
388
463
|
- lib/locomotive/steam/liquid/drops/content_entry.rb
|
464
|
+
- lib/locomotive/steam/liquid/drops/content_entry_collection.rb
|
389
465
|
- lib/locomotive/steam/liquid/drops/content_types.rb
|
466
|
+
- lib/locomotive/steam/liquid/drops/current_user.rb
|
467
|
+
- lib/locomotive/steam/liquid/drops/i18n_base.rb
|
390
468
|
- lib/locomotive/steam/liquid/drops/page.rb
|
391
469
|
- lib/locomotive/steam/liquid/drops/session_proxy.rb
|
392
470
|
- lib/locomotive/steam/liquid/drops/site.rb
|
471
|
+
- lib/locomotive/steam/liquid/drops/upload_file.rb
|
393
472
|
- lib/locomotive/steam/liquid/errors.rb
|
473
|
+
- lib/locomotive/steam/liquid/filters/base.rb
|
394
474
|
- lib/locomotive/steam/liquid/filters/date.rb
|
395
475
|
- lib/locomotive/steam/liquid/filters/html.rb
|
396
476
|
- lib/locomotive/steam/liquid/filters/misc.rb
|
477
|
+
- lib/locomotive/steam/liquid/filters/pagination.rb
|
397
478
|
- lib/locomotive/steam/liquid/filters/resize.rb
|
398
479
|
- lib/locomotive/steam/liquid/filters/text.rb
|
399
480
|
- lib/locomotive/steam/liquid/filters/translate.rb
|
400
481
|
- lib/locomotive/steam/liquid/patches.rb
|
401
|
-
- lib/locomotive/steam/liquid/
|
482
|
+
- lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
|
483
|
+
- lib/locomotive/steam/liquid/tags/concerns/path.rb
|
402
484
|
- lib/locomotive/steam/liquid/tags/consume.rb
|
403
485
|
- lib/locomotive/steam/liquid/tags/csrf.rb
|
404
486
|
- lib/locomotive/steam/liquid/tags/editable.rb
|
405
487
|
- lib/locomotive/steam/liquid/tags/editable/base.rb
|
406
488
|
- lib/locomotive/steam/liquid/tags/editable/control.rb
|
407
489
|
- lib/locomotive/steam/liquid/tags/editable/file.rb
|
408
|
-
- lib/locomotive/steam/liquid/tags/editable/long_text.rb
|
409
|
-
- lib/locomotive/steam/liquid/tags/editable/short_text.rb
|
410
490
|
- lib/locomotive/steam/liquid/tags/editable/text.rb
|
411
491
|
- lib/locomotive/steam/liquid/tags/extends.rb
|
492
|
+
- lib/locomotive/steam/liquid/tags/fetch_page.rb
|
412
493
|
- lib/locomotive/steam/liquid/tags/google_analytics.rb
|
413
494
|
- lib/locomotive/steam/liquid/tags/hybrid.rb
|
495
|
+
- lib/locomotive/steam/liquid/tags/inherited_block.rb
|
414
496
|
- lib/locomotive/steam/liquid/tags/inline_editor.rb
|
415
497
|
- lib/locomotive/steam/liquid/tags/link_to.rb
|
416
498
|
- lib/locomotive/steam/liquid/tags/locale_switcher.rb
|
499
|
+
- lib/locomotive/steam/liquid/tags/model_form.rb
|
417
500
|
- lib/locomotive/steam/liquid/tags/nav.rb
|
418
501
|
- lib/locomotive/steam/liquid/tags/paginate.rb
|
419
|
-
- lib/locomotive/steam/liquid/tags/path_helper.rb
|
420
502
|
- lib/locomotive/steam/liquid/tags/path_to.rb
|
421
503
|
- lib/locomotive/steam/liquid/tags/seo.rb
|
422
504
|
- lib/locomotive/steam/liquid/tags/session_assign.rb
|
423
505
|
- lib/locomotive/steam/liquid/tags/snippet.rb
|
424
506
|
- lib/locomotive/steam/liquid/tags/with_scope.rb
|
425
|
-
- lib/locomotive/steam/loaders/yml/pages_loader.rb
|
426
|
-
- lib/locomotive/steam/loaders/yml/site_loader.rb
|
427
|
-
- lib/locomotive/steam/loaders/yml/utils/localized_tree.rb
|
428
|
-
- lib/locomotive/steam/loaders/yml/utils/yaml_front_matters_template.rb
|
429
|
-
- lib/locomotive/steam/loaders/yml_loader.rb
|
430
|
-
- lib/locomotive/steam/mapper.rb
|
431
507
|
- lib/locomotive/steam/middlewares.rb
|
432
|
-
- lib/locomotive/steam/middlewares/
|
508
|
+
- lib/locomotive/steam/middlewares/default_env.rb
|
433
509
|
- lib/locomotive/steam/middlewares/dynamic_assets.rb
|
434
510
|
- lib/locomotive/steam/middlewares/entry_submission.rb
|
435
511
|
- lib/locomotive/steam/middlewares/favicon.rb
|
512
|
+
- lib/locomotive/steam/middlewares/helpers.rb
|
436
513
|
- lib/locomotive/steam/middlewares/locale.rb
|
514
|
+
- lib/locomotive/steam/middlewares/locale_redirection.rb
|
437
515
|
- lib/locomotive/steam/middlewares/logging.rb
|
438
516
|
- lib/locomotive/steam/middlewares/page.rb
|
439
517
|
- lib/locomotive/steam/middlewares/path.rb
|
440
518
|
- lib/locomotive/steam/middlewares/renderer.rb
|
441
|
-
- lib/locomotive/steam/middlewares/
|
442
|
-
- lib/locomotive/steam/middlewares/
|
519
|
+
- lib/locomotive/steam/middlewares/robots.rb
|
520
|
+
- lib/locomotive/steam/middlewares/site.rb
|
521
|
+
- lib/locomotive/steam/middlewares/sitemap.rb
|
522
|
+
- lib/locomotive/steam/middlewares/stack_proxy.rb
|
443
523
|
- lib/locomotive/steam/middlewares/templatized_page.rb
|
524
|
+
- lib/locomotive/steam/middlewares/threadsafe.rb
|
444
525
|
- lib/locomotive/steam/middlewares/timezone.rb
|
445
|
-
- lib/locomotive/steam/
|
446
|
-
- lib/locomotive/steam/
|
447
|
-
- lib/locomotive/steam/
|
448
|
-
- lib/locomotive/steam/
|
449
|
-
- lib/locomotive/steam/
|
526
|
+
- lib/locomotive/steam/models.rb
|
527
|
+
- lib/locomotive/steam/models/associations/belongs_to.rb
|
528
|
+
- lib/locomotive/steam/models/associations/embedded.rb
|
529
|
+
- lib/locomotive/steam/models/associations/has_many.rb
|
530
|
+
- lib/locomotive/steam/models/associations/many_to_many.rb
|
531
|
+
- lib/locomotive/steam/models/associations/referenced.rb
|
532
|
+
- lib/locomotive/steam/models/concerns/validation.rb
|
533
|
+
- lib/locomotive/steam/models/entity.rb
|
534
|
+
- lib/locomotive/steam/models/i18n_field.rb
|
535
|
+
- lib/locomotive/steam/models/mapper.rb
|
536
|
+
- lib/locomotive/steam/models/pager.rb
|
537
|
+
- lib/locomotive/steam/models/repository.rb
|
538
|
+
- lib/locomotive/steam/models/scope.rb
|
539
|
+
- lib/locomotive/steam/repositories.rb
|
540
|
+
- lib/locomotive/steam/repositories/content_entry_repository.rb
|
541
|
+
- lib/locomotive/steam/repositories/content_type_field_repository.rb
|
542
|
+
- lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
|
543
|
+
- lib/locomotive/steam/repositories/content_type_repository.rb
|
544
|
+
- lib/locomotive/steam/repositories/editable_element_repository.rb
|
545
|
+
- lib/locomotive/steam/repositories/page_repository.rb
|
546
|
+
- lib/locomotive/steam/repositories/site_repository.rb
|
547
|
+
- lib/locomotive/steam/repositories/snippet_repository.rb
|
548
|
+
- lib/locomotive/steam/repositories/theme_asset_repository.rb
|
549
|
+
- lib/locomotive/steam/repositories/translation_repository.rb
|
450
550
|
- lib/locomotive/steam/server.rb
|
451
551
|
- lib/locomotive/steam/services.rb
|
452
|
-
- lib/locomotive/steam/services/
|
453
|
-
- lib/locomotive/steam/services/
|
454
|
-
- lib/locomotive/steam/services/
|
455
|
-
- lib/locomotive/steam/
|
552
|
+
- lib/locomotive/steam/services/asset_host_service.rb
|
553
|
+
- lib/locomotive/steam/services/concerns/decorator.rb
|
554
|
+
- lib/locomotive/steam/services/csrf_protection_service.rb
|
555
|
+
- lib/locomotive/steam/services/editable_element_service.rb
|
556
|
+
- lib/locomotive/steam/services/entry_submission_service.rb
|
557
|
+
- lib/locomotive/steam/services/external_api_service.rb
|
558
|
+
- lib/locomotive/steam/services/image_resizer_service.rb
|
559
|
+
- lib/locomotive/steam/services/liquid_parser_service.rb
|
560
|
+
- lib/locomotive/steam/services/markdown_service.rb
|
561
|
+
- lib/locomotive/steam/services/no_cache_service.rb
|
562
|
+
- lib/locomotive/steam/services/page_finder_service.rb
|
563
|
+
- lib/locomotive/steam/services/parent_finder_service.rb
|
564
|
+
- lib/locomotive/steam/services/site_finder_service.rb
|
565
|
+
- lib/locomotive/steam/services/snippet_finder_service.rb
|
566
|
+
- lib/locomotive/steam/services/textile_service.rb
|
567
|
+
- lib/locomotive/steam/services/theme_asset_url_service.rb
|
568
|
+
- lib/locomotive/steam/services/translator_service.rb
|
569
|
+
- lib/locomotive/steam/services/url_builder_service.rb
|
456
570
|
- lib/locomotive/steam/version.rb
|
457
571
|
- locomotivecms_steam.gemspec
|
572
|
+
- script/ci/before_build.sh
|
458
573
|
- spec/fixtures/default/README
|
459
574
|
- spec/fixtures/default/app/content_types/bands.yml
|
460
575
|
- spec/fixtures/default/app/content_types/events.yml
|
@@ -469,10 +584,12 @@ files:
|
|
469
584
|
- spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
|
470
585
|
- spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
|
471
586
|
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
587
|
+
- spec/fixtures/default/app/views/pages/archives.liquid.haml
|
472
588
|
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|
473
589
|
- spec/fixtures/default/app/views/pages/basic.liquid.haml
|
474
590
|
- spec/fixtures/default/app/views/pages/contact.liquid.haml
|
475
591
|
- spec/fixtures/default/app/views/pages/contest.liquid.haml
|
592
|
+
- spec/fixtures/default/app/views/pages/events.fr.liquid
|
476
593
|
- spec/fixtures/default/app/views/pages/events.liquid.haml
|
477
594
|
- spec/fixtures/default/app/views/pages/filtered.liquid.haml
|
478
595
|
- spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
|
@@ -480,11 +597,14 @@ files:
|
|
480
597
|
- spec/fixtures/default/app/views/pages/index.liquid.haml
|
481
598
|
- spec/fixtures/default/app/views/pages/music.fr.liquid.haml
|
482
599
|
- spec/fixtures/default/app/views/pages/music.liquid.haml
|
600
|
+
- spec/fixtures/default/app/views/pages/songs.liquid
|
601
|
+
- spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
|
483
602
|
- spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
|
484
603
|
- spec/fixtures/default/app/views/pages/songs/template.liquid.haml
|
485
604
|
- spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml
|
486
605
|
- spec/fixtures/default/app/views/pages/store.fr.liquid.haml
|
487
606
|
- spec/fixtures/default/app/views/pages/store.liquid
|
607
|
+
- spec/fixtures/default/app/views/pages/tags.liquid
|
488
608
|
- spec/fixtures/default/app/views/pages/tags/nav.liquid.haml
|
489
609
|
- spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml
|
490
610
|
- spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml
|
@@ -520,29 +640,138 @@ files:
|
|
520
640
|
- spec/fixtures/default/public/stylesheets/other/extra.css.less
|
521
641
|
- spec/fixtures/default/public/stylesheets/other/style.css.scss
|
522
642
|
- spec/fixtures/default/public/stylesheets/reboot.css
|
643
|
+
- spec/fixtures/mongodb/locomotive_accounts.bson
|
644
|
+
- spec/fixtures/mongodb/locomotive_accounts.metadata.json
|
645
|
+
- spec/fixtures/mongodb/locomotive_content_assets.bson
|
646
|
+
- spec/fixtures/mongodb/locomotive_content_assets.metadata.json
|
647
|
+
- spec/fixtures/mongodb/locomotive_content_entries.bson
|
648
|
+
- spec/fixtures/mongodb/locomotive_content_entries.metadata.json
|
649
|
+
- spec/fixtures/mongodb/locomotive_content_types.bson
|
650
|
+
- spec/fixtures/mongodb/locomotive_content_types.metadata.json
|
651
|
+
- spec/fixtures/mongodb/locomotive_pages.bson
|
652
|
+
- spec/fixtures/mongodb/locomotive_pages.metadata.json
|
653
|
+
- spec/fixtures/mongodb/locomotive_sites.bson
|
654
|
+
- spec/fixtures/mongodb/locomotive_sites.metadata.json
|
655
|
+
- spec/fixtures/mongodb/locomotive_snippets.bson
|
656
|
+
- spec/fixtures/mongodb/locomotive_snippets.metadata.json
|
657
|
+
- spec/fixtures/mongodb/locomotive_theme_assets.bson
|
658
|
+
- spec/fixtures/mongodb/locomotive_theme_assets.metadata.json
|
659
|
+
- spec/fixtures/mongodb/locomotive_translations.bson
|
660
|
+
- spec/fixtures/mongodb/locomotive_translations.metadata.json
|
661
|
+
- spec/fixtures/mongodb/sessions.bson
|
662
|
+
- spec/fixtures/mongodb/sessions.metadata.json
|
663
|
+
- spec/fixtures/mongodb/system.indexes.bson
|
523
664
|
- spec/integration/integration_helper.rb
|
665
|
+
- spec/integration/liquid/tags/paginate_spec.rb
|
666
|
+
- spec/integration/repositories/content_entry_repository_spec.rb
|
667
|
+
- spec/integration/repositories/content_type_repository_spec.rb
|
668
|
+
- spec/integration/repositories/page_repository_spec.rb
|
669
|
+
- spec/integration/repositories/site_repository_spec.rb
|
670
|
+
- spec/integration/repositories/snippet_repository_spec.rb
|
671
|
+
- spec/integration/repositories/theme_asset_repository_spec.rb
|
672
|
+
- spec/integration/repositories/translation_repository_spec.rb
|
673
|
+
- spec/integration/server/assets_spec.rb
|
524
674
|
- spec/integration/server/basic_spec.rb
|
525
675
|
- spec/integration/server/contact_form_spec.rb
|
526
676
|
- spec/integration/server/liquid_spec.rb
|
677
|
+
- spec/integration/server/nav_spec.rb
|
678
|
+
- spec/integration/server/session_spec.rb
|
679
|
+
- spec/integration/server/sitemap_spec.rb
|
527
680
|
- spec/integration/server/with_scope_spec.rb
|
681
|
+
- spec/integration/services/external_api_service_spec.rb
|
528
682
|
- spec/locales/locales_spec.rb
|
529
683
|
- spec/spec_helper.rb
|
530
684
|
- spec/support.rb
|
685
|
+
- spec/support/cache_store.rb
|
531
686
|
- spec/support/examples/locale_file.rb
|
532
687
|
- spec/support/examples/matching_locale.rb
|
533
688
|
- spec/support/helpers.rb
|
689
|
+
- spec/support/liquid.rb
|
534
690
|
- spec/support/matchers/hash.rb
|
535
|
-
- spec/
|
691
|
+
- spec/support/pry.rb
|
692
|
+
- spec/support/time.rb
|
693
|
+
- spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb
|
694
|
+
- spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb
|
695
|
+
- spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb
|
696
|
+
- spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
|
697
|
+
- spec/unit/adapters/filesystem/yaml_loaders/snippet_spec.rb
|
698
|
+
- spec/unit/adapters/filesystem/yaml_loaders/translation_spec.rb
|
699
|
+
- spec/unit/adapters/filesystem_adapter_spec.rb
|
700
|
+
- spec/unit/adapters/memory/condition_spec.rb
|
701
|
+
- spec/unit/adapters/memory/dataset_spec.rb
|
702
|
+
- spec/unit/adapters/memory/order_spec.rb
|
703
|
+
- spec/unit/adapters/memory/query_spec.rb
|
704
|
+
- spec/unit/adapters/memory_adapter_spec.rb
|
705
|
+
- spec/unit/adapters/mongodb/query_spec.rb
|
706
|
+
- spec/unit/adapters/mongodb_adapter_spec.rb
|
707
|
+
- spec/unit/configuration_spec.rb
|
708
|
+
- spec/unit/core_ext/string_spec.rb
|
709
|
+
- spec/unit/decorators/i18n_decorator_spec.rb
|
710
|
+
- spec/unit/entities/content_entry_spec.rb
|
711
|
+
- spec/unit/entities/content_type_field_spec.rb
|
712
|
+
- spec/unit/entities/content_type_spec.rb
|
536
713
|
- spec/unit/entities/page_spec.rb
|
537
714
|
- spec/unit/entities/site_spec.rb
|
715
|
+
- spec/unit/initializers/dragonfly_spec.rb
|
716
|
+
- spec/unit/liquid/drops/content_entry_collection_spec.rb
|
717
|
+
- spec/unit/liquid/drops/content_entry_spec.rb
|
718
|
+
- spec/unit/liquid/drops/content_types_spec.rb
|
719
|
+
- spec/unit/liquid/drops/current_user_spec.rb
|
720
|
+
- spec/unit/liquid/drops/page_spec.rb
|
721
|
+
- spec/unit/liquid/drops/session_proxy_spec.rb
|
722
|
+
- spec/unit/liquid/drops/site_spec.rb
|
723
|
+
- spec/unit/liquid/filters/date_spec.rb
|
724
|
+
- spec/unit/liquid/filters/html_spec.rb
|
725
|
+
- spec/unit/liquid/filters/misc_spec.rb
|
726
|
+
- spec/unit/liquid/filters/pagination_spec.rb
|
727
|
+
- spec/unit/liquid/filters/resize_spec.rb
|
728
|
+
- spec/unit/liquid/filters/text_spec.rb
|
729
|
+
- spec/unit/liquid/filters/translate_spec.rb
|
730
|
+
- spec/unit/liquid/patches_spec.rb
|
731
|
+
- spec/unit/liquid/tags/consume_spec.rb
|
732
|
+
- spec/unit/liquid/tags/csrf_spec.rb
|
733
|
+
- spec/unit/liquid/tags/editable/control_spec.rb
|
734
|
+
- spec/unit/liquid/tags/editable/file_spec.rb
|
735
|
+
- spec/unit/liquid/tags/editable/text_spec.rb
|
736
|
+
- spec/unit/liquid/tags/extends_spec.rb
|
737
|
+
- spec/unit/liquid/tags/fetch_page_spec.rb
|
738
|
+
- spec/unit/liquid/tags/google_analytics_spec.rb
|
739
|
+
- spec/unit/liquid/tags/inherited_block_spec.rb
|
740
|
+
- spec/unit/liquid/tags/link_to_spec.rb
|
741
|
+
- spec/unit/liquid/tags/locale_switcher_spec.rb
|
742
|
+
- spec/unit/liquid/tags/model_form_spec.rb
|
538
743
|
- spec/unit/liquid/tags/nav_spec.rb
|
539
|
-
- spec/unit/
|
540
|
-
- spec/unit/
|
541
|
-
- spec/unit/
|
542
|
-
- spec/unit/
|
543
|
-
- spec/unit/
|
544
|
-
- spec/unit/
|
545
|
-
- spec/unit/
|
744
|
+
- spec/unit/liquid/tags/paginate_spec.rb
|
745
|
+
- spec/unit/liquid/tags/path_to_spec.rb
|
746
|
+
- spec/unit/liquid/tags/seo_spec.rb
|
747
|
+
- spec/unit/liquid/tags/session_assign_spec.rb
|
748
|
+
- spec/unit/liquid/tags/snippet_spec.rb
|
749
|
+
- spec/unit/liquid/tags/with_scope_spec.rb
|
750
|
+
- spec/unit/middlewares/dynamic_assets_spec.rb
|
751
|
+
- spec/unit/middlewares/locale_redirection_spec.rb
|
752
|
+
- spec/unit/middlewares/renderer_spec.rb
|
753
|
+
- spec/unit/middlewares/stack_proxy_spec.rb
|
754
|
+
- spec/unit/models/mapper_spec.rb
|
755
|
+
- spec/unit/models/pager_spec.rb
|
756
|
+
- spec/unit/models/repository_spec.rb
|
757
|
+
- spec/unit/models/scope_spec.rb
|
758
|
+
- spec/unit/repositories/content_entry_repository_spec.rb
|
759
|
+
- spec/unit/repositories/content_type_repository_spec.rb
|
760
|
+
- spec/unit/repositories/page_repository_spec.rb
|
761
|
+
- spec/unit/repositories/site_repository_spec.rb
|
762
|
+
- spec/unit/repositories/snippet_repository_spec.rb
|
763
|
+
- spec/unit/repositories/theme_asset_repository_spec.rb
|
764
|
+
- spec/unit/repositories/translation_repository_spec.rb
|
765
|
+
- spec/unit/services/asset_host_service_spec.rb
|
766
|
+
- spec/unit/services/entry_submission_service_spec.rb
|
767
|
+
- spec/unit/services/external_api_service_spec.rb
|
768
|
+
- spec/unit/services/image_resizer_service_spec.rb
|
769
|
+
- spec/unit/services/markdown_service_spec.rb
|
770
|
+
- spec/unit/services/parent_finder_service_spec.rb
|
771
|
+
- spec/unit/services/textile_service_spec.rb
|
772
|
+
- spec/unit/services/translator_service_spec.rb
|
773
|
+
- spec/unit/services/url_builder_service_spec.rb
|
774
|
+
- spec/unit/services_spec.rb
|
546
775
|
homepage: https://github.com/locomotivecms/steam
|
547
776
|
licenses:
|
548
777
|
- MIT
|
@@ -555,7 +784,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
555
784
|
requirements:
|
556
785
|
- - ">="
|
557
786
|
- !ruby/object:Gem::Version
|
558
|
-
version: '0'
|
787
|
+
version: '2.0'
|
559
788
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
560
789
|
requirements:
|
561
790
|
- - ">"
|
@@ -563,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
563
792
|
version: 1.3.1
|
564
793
|
requirements: []
|
565
794
|
rubyforge_project:
|
566
|
-
rubygems_version: 2.
|
795
|
+
rubygems_version: 2.4.5
|
567
796
|
signing_key:
|
568
797
|
specification_version: 4
|
569
798
|
summary: The LocomotiveCMS steam is a technical piece for compiled and steam front
|
@@ -583,10 +812,12 @@ test_files:
|
|
583
812
|
- spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
|
584
813
|
- spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
|
585
814
|
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
815
|
+
- spec/fixtures/default/app/views/pages/archives.liquid.haml
|
586
816
|
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|
587
817
|
- spec/fixtures/default/app/views/pages/basic.liquid.haml
|
588
818
|
- spec/fixtures/default/app/views/pages/contact.liquid.haml
|
589
819
|
- spec/fixtures/default/app/views/pages/contest.liquid.haml
|
820
|
+
- spec/fixtures/default/app/views/pages/events.fr.liquid
|
590
821
|
- spec/fixtures/default/app/views/pages/events.liquid.haml
|
591
822
|
- spec/fixtures/default/app/views/pages/filtered.liquid.haml
|
592
823
|
- spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
|
@@ -594,11 +825,14 @@ test_files:
|
|
594
825
|
- spec/fixtures/default/app/views/pages/index.liquid.haml
|
595
826
|
- spec/fixtures/default/app/views/pages/music.fr.liquid.haml
|
596
827
|
- spec/fixtures/default/app/views/pages/music.liquid.haml
|
828
|
+
- spec/fixtures/default/app/views/pages/songs.liquid
|
829
|
+
- spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
|
597
830
|
- spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
|
598
831
|
- spec/fixtures/default/app/views/pages/songs/template.liquid.haml
|
599
832
|
- spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml
|
600
833
|
- spec/fixtures/default/app/views/pages/store.fr.liquid.haml
|
601
834
|
- spec/fixtures/default/app/views/pages/store.liquid
|
835
|
+
- spec/fixtures/default/app/views/pages/tags.liquid
|
602
836
|
- spec/fixtures/default/app/views/pages/tags/nav.liquid.haml
|
603
837
|
- spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml
|
604
838
|
- spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml
|
@@ -634,26 +868,135 @@ test_files:
|
|
634
868
|
- spec/fixtures/default/public/stylesheets/other/extra.css.less
|
635
869
|
- spec/fixtures/default/public/stylesheets/other/style.css.scss
|
636
870
|
- spec/fixtures/default/public/stylesheets/reboot.css
|
871
|
+
- spec/fixtures/mongodb/locomotive_accounts.bson
|
872
|
+
- spec/fixtures/mongodb/locomotive_accounts.metadata.json
|
873
|
+
- spec/fixtures/mongodb/locomotive_content_assets.bson
|
874
|
+
- spec/fixtures/mongodb/locomotive_content_assets.metadata.json
|
875
|
+
- spec/fixtures/mongodb/locomotive_content_entries.bson
|
876
|
+
- spec/fixtures/mongodb/locomotive_content_entries.metadata.json
|
877
|
+
- spec/fixtures/mongodb/locomotive_content_types.bson
|
878
|
+
- spec/fixtures/mongodb/locomotive_content_types.metadata.json
|
879
|
+
- spec/fixtures/mongodb/locomotive_pages.bson
|
880
|
+
- spec/fixtures/mongodb/locomotive_pages.metadata.json
|
881
|
+
- spec/fixtures/mongodb/locomotive_sites.bson
|
882
|
+
- spec/fixtures/mongodb/locomotive_sites.metadata.json
|
883
|
+
- spec/fixtures/mongodb/locomotive_snippets.bson
|
884
|
+
- spec/fixtures/mongodb/locomotive_snippets.metadata.json
|
885
|
+
- spec/fixtures/mongodb/locomotive_theme_assets.bson
|
886
|
+
- spec/fixtures/mongodb/locomotive_theme_assets.metadata.json
|
887
|
+
- spec/fixtures/mongodb/locomotive_translations.bson
|
888
|
+
- spec/fixtures/mongodb/locomotive_translations.metadata.json
|
889
|
+
- spec/fixtures/mongodb/sessions.bson
|
890
|
+
- spec/fixtures/mongodb/sessions.metadata.json
|
891
|
+
- spec/fixtures/mongodb/system.indexes.bson
|
637
892
|
- spec/integration/integration_helper.rb
|
893
|
+
- spec/integration/liquid/tags/paginate_spec.rb
|
894
|
+
- spec/integration/repositories/content_entry_repository_spec.rb
|
895
|
+
- spec/integration/repositories/content_type_repository_spec.rb
|
896
|
+
- spec/integration/repositories/page_repository_spec.rb
|
897
|
+
- spec/integration/repositories/site_repository_spec.rb
|
898
|
+
- spec/integration/repositories/snippet_repository_spec.rb
|
899
|
+
- spec/integration/repositories/theme_asset_repository_spec.rb
|
900
|
+
- spec/integration/repositories/translation_repository_spec.rb
|
901
|
+
- spec/integration/server/assets_spec.rb
|
638
902
|
- spec/integration/server/basic_spec.rb
|
639
903
|
- spec/integration/server/contact_form_spec.rb
|
640
904
|
- spec/integration/server/liquid_spec.rb
|
905
|
+
- spec/integration/server/nav_spec.rb
|
906
|
+
- spec/integration/server/session_spec.rb
|
907
|
+
- spec/integration/server/sitemap_spec.rb
|
641
908
|
- spec/integration/server/with_scope_spec.rb
|
909
|
+
- spec/integration/services/external_api_service_spec.rb
|
642
910
|
- spec/locales/locales_spec.rb
|
643
911
|
- spec/spec_helper.rb
|
644
912
|
- spec/support.rb
|
913
|
+
- spec/support/cache_store.rb
|
645
914
|
- spec/support/examples/locale_file.rb
|
646
915
|
- spec/support/examples/matching_locale.rb
|
647
916
|
- spec/support/helpers.rb
|
917
|
+
- spec/support/liquid.rb
|
648
918
|
- spec/support/matchers/hash.rb
|
649
|
-
- spec/
|
919
|
+
- spec/support/pry.rb
|
920
|
+
- spec/support/time.rb
|
921
|
+
- spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb
|
922
|
+
- spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb
|
923
|
+
- spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb
|
924
|
+
- spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
|
925
|
+
- spec/unit/adapters/filesystem/yaml_loaders/snippet_spec.rb
|
926
|
+
- spec/unit/adapters/filesystem/yaml_loaders/translation_spec.rb
|
927
|
+
- spec/unit/adapters/filesystem_adapter_spec.rb
|
928
|
+
- spec/unit/adapters/memory/condition_spec.rb
|
929
|
+
- spec/unit/adapters/memory/dataset_spec.rb
|
930
|
+
- spec/unit/adapters/memory/order_spec.rb
|
931
|
+
- spec/unit/adapters/memory/query_spec.rb
|
932
|
+
- spec/unit/adapters/memory_adapter_spec.rb
|
933
|
+
- spec/unit/adapters/mongodb/query_spec.rb
|
934
|
+
- spec/unit/adapters/mongodb_adapter_spec.rb
|
935
|
+
- spec/unit/configuration_spec.rb
|
936
|
+
- spec/unit/core_ext/string_spec.rb
|
937
|
+
- spec/unit/decorators/i18n_decorator_spec.rb
|
938
|
+
- spec/unit/entities/content_entry_spec.rb
|
939
|
+
- spec/unit/entities/content_type_field_spec.rb
|
940
|
+
- spec/unit/entities/content_type_spec.rb
|
650
941
|
- spec/unit/entities/page_spec.rb
|
651
942
|
- spec/unit/entities/site_spec.rb
|
943
|
+
- spec/unit/initializers/dragonfly_spec.rb
|
944
|
+
- spec/unit/liquid/drops/content_entry_collection_spec.rb
|
945
|
+
- spec/unit/liquid/drops/content_entry_spec.rb
|
946
|
+
- spec/unit/liquid/drops/content_types_spec.rb
|
947
|
+
- spec/unit/liquid/drops/current_user_spec.rb
|
948
|
+
- spec/unit/liquid/drops/page_spec.rb
|
949
|
+
- spec/unit/liquid/drops/session_proxy_spec.rb
|
950
|
+
- spec/unit/liquid/drops/site_spec.rb
|
951
|
+
- spec/unit/liquid/filters/date_spec.rb
|
952
|
+
- spec/unit/liquid/filters/html_spec.rb
|
953
|
+
- spec/unit/liquid/filters/misc_spec.rb
|
954
|
+
- spec/unit/liquid/filters/pagination_spec.rb
|
955
|
+
- spec/unit/liquid/filters/resize_spec.rb
|
956
|
+
- spec/unit/liquid/filters/text_spec.rb
|
957
|
+
- spec/unit/liquid/filters/translate_spec.rb
|
958
|
+
- spec/unit/liquid/patches_spec.rb
|
959
|
+
- spec/unit/liquid/tags/consume_spec.rb
|
960
|
+
- spec/unit/liquid/tags/csrf_spec.rb
|
961
|
+
- spec/unit/liquid/tags/editable/control_spec.rb
|
962
|
+
- spec/unit/liquid/tags/editable/file_spec.rb
|
963
|
+
- spec/unit/liquid/tags/editable/text_spec.rb
|
964
|
+
- spec/unit/liquid/tags/extends_spec.rb
|
965
|
+
- spec/unit/liquid/tags/fetch_page_spec.rb
|
966
|
+
- spec/unit/liquid/tags/google_analytics_spec.rb
|
967
|
+
- spec/unit/liquid/tags/inherited_block_spec.rb
|
968
|
+
- spec/unit/liquid/tags/link_to_spec.rb
|
969
|
+
- spec/unit/liquid/tags/locale_switcher_spec.rb
|
970
|
+
- spec/unit/liquid/tags/model_form_spec.rb
|
652
971
|
- spec/unit/liquid/tags/nav_spec.rb
|
653
|
-
- spec/unit/
|
654
|
-
- spec/unit/
|
655
|
-
- spec/unit/
|
656
|
-
- spec/unit/
|
657
|
-
- spec/unit/
|
658
|
-
- spec/unit/
|
659
|
-
- spec/unit/
|
972
|
+
- spec/unit/liquid/tags/paginate_spec.rb
|
973
|
+
- spec/unit/liquid/tags/path_to_spec.rb
|
974
|
+
- spec/unit/liquid/tags/seo_spec.rb
|
975
|
+
- spec/unit/liquid/tags/session_assign_spec.rb
|
976
|
+
- spec/unit/liquid/tags/snippet_spec.rb
|
977
|
+
- spec/unit/liquid/tags/with_scope_spec.rb
|
978
|
+
- spec/unit/middlewares/dynamic_assets_spec.rb
|
979
|
+
- spec/unit/middlewares/locale_redirection_spec.rb
|
980
|
+
- spec/unit/middlewares/renderer_spec.rb
|
981
|
+
- spec/unit/middlewares/stack_proxy_spec.rb
|
982
|
+
- spec/unit/models/mapper_spec.rb
|
983
|
+
- spec/unit/models/pager_spec.rb
|
984
|
+
- spec/unit/models/repository_spec.rb
|
985
|
+
- spec/unit/models/scope_spec.rb
|
986
|
+
- spec/unit/repositories/content_entry_repository_spec.rb
|
987
|
+
- spec/unit/repositories/content_type_repository_spec.rb
|
988
|
+
- spec/unit/repositories/page_repository_spec.rb
|
989
|
+
- spec/unit/repositories/site_repository_spec.rb
|
990
|
+
- spec/unit/repositories/snippet_repository_spec.rb
|
991
|
+
- spec/unit/repositories/theme_asset_repository_spec.rb
|
992
|
+
- spec/unit/repositories/translation_repository_spec.rb
|
993
|
+
- spec/unit/services/asset_host_service_spec.rb
|
994
|
+
- spec/unit/services/entry_submission_service_spec.rb
|
995
|
+
- spec/unit/services/external_api_service_spec.rb
|
996
|
+
- spec/unit/services/image_resizer_service_spec.rb
|
997
|
+
- spec/unit/services/markdown_service_spec.rb
|
998
|
+
- spec/unit/services/parent_finder_service_spec.rb
|
999
|
+
- spec/unit/services/textile_service_spec.rb
|
1000
|
+
- spec/unit/services/translator_service_spec.rb
|
1001
|
+
- spec/unit/services/url_builder_service_spec.rb
|
1002
|
+
- spec/unit/services_spec.rb
|