cmor_carousels 0.0.5.pre → 0.0.6.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/spec/dummy/Rakefile +6 -0
  3. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  4. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  5. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  6. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  7. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  8. data/spec/dummy/bin/rails +4 -0
  9. data/spec/dummy/config.ru +5 -0
  10. data/spec/dummy/config/application.rb +30 -0
  11. data/spec/dummy/config/boot.rb +5 -0
  12. data/spec/dummy/config/database.yml +25 -0
  13. data/spec/dummy/config/environment.rb +5 -0
  14. data/spec/dummy/config/environments/development.rb +61 -0
  15. data/spec/dummy/config/environments/test.rb +46 -0
  16. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  17. data/spec/dummy/config/initializers/cmor_carousels.rb +3 -0
  18. data/spec/dummy/config/initializers/inflections.rb +16 -0
  19. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  20. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  21. data/spec/dummy/config/locales/en.yml +33 -0
  22. data/spec/dummy/config/routes.rb +3 -0
  23. data/spec/dummy/config/storage.yml +34 -0
  24. data/spec/dummy/db/development.sqlite3 +0 -0
  25. data/spec/dummy/db/migrate/{20190325173440_create_active_storage_tables.active_storage.rb → 20190331085346_create_active_storage_tables.active_storage.rb} +0 -0
  26. data/spec/dummy/db/migrate/{20190325173459_create_cmor_carousels_carousels.cmor_carousels.rb → 20190331085416_create_cmor_carousels_carousels.cmor_carousels.rb} +0 -0
  27. data/spec/dummy/db/migrate/{20190325173460_create_cmor_carousels_item_details.cmor_carousels.rb → 20190331085417_create_cmor_carousels_item_details.cmor_carousels.rb} +0 -0
  28. data/spec/dummy/db/schema.rb +55 -0
  29. data/spec/dummy/db/test.sqlite3 +0 -0
  30. data/spec/dummy/log/development.log +122 -0
  31. data/spec/dummy/log/test.log +437 -0
  32. data/spec/dummy/public/404.html +67 -0
  33. data/spec/dummy/public/422.html +67 -0
  34. data/spec/dummy/public/500.html +66 -0
  35. data/spec/dummy/public/favicon.ico +0 -0
  36. data/spec/dummy/tmp/development_secret.txt +1 -1
  37. data/spec/dummy/tmp/storage/{4t/Pp/4tPpcW5CyPofkX1P7khaWvUd → 26/AE/26AEgTpLjdUEkfgwDMYvsnMC} +0 -0
  38. data/spec/dummy/tmp/storage/{5u/4n/5u4nNsPGcgczDDUCtp6FqDsQ → 6C/k7/6Ck7TjB8q5XHcvFuKurZjF85} +0 -0
  39. data/spec/dummy/tmp/storage/{98/qo/98qo6DYXmifxYrVs92KWQ2WG → 8s/yQ/8syQAvbeB2riQeBX4yE3ZBA6} +0 -0
  40. data/spec/dummy/tmp/storage/{EC/jp/ECjpcy6sdVJqiQpwJucy1S5T → Je/hz/JehzP6iuNXDQv4ER8G3xtxKu} +0 -0
  41. data/spec/dummy/tmp/storage/{F4/R1/F4R1qzhGDusWDTeQc18UpGwR → L2/6b/L26bUe4BVrLHtDA5k4PyH55Y} +0 -0
  42. data/spec/dummy/tmp/storage/{Mz/rE/MzrELJuyxxU22ExhWZSLybnD → b6/Qq/b6QqQjSv3uKCsqkxdh6ad7gP} +0 -0
  43. data/spec/dummy/tmp/storage/{UU/ky/UUkyn1LoRKPsEcyUCbnhNZYm → cH/4t/cH4tfkxybxrK48RcN3AfPW5d} +0 -0
  44. data/spec/dummy/tmp/storage/{YW/D2/YWD22RbB3McDpjwWnJkKJsC4 → ca/g3/cag3X6hn5ghy7jyEXcutEeoG} +0 -0
  45. data/spec/dummy/tmp/storage/{cw/a8/cwa8cvDLTGbuacNV2uAXZFdR → oA/Vh/oAVh3cV4vinC3Gjpc2XEKY6Y} +0 -0
  46. data/spec/dummy/tmp/storage/{gD/jk/gDjkgjTAAJ9GrKhpXGELe9ba → pE/aN/pEaNyVxKkzxyGvC3hAEX8cKN} +0 -0
  47. data/spec/dummy/tmp/storage/{jP/bJ/jPbJnDBUmR15rMKwK1KLJM6U → q5/M4/q5M4DG6JdJNWrZgbiVyZHLb5} +0 -0
  48. data/spec/dummy/tmp/storage/{kD/9U/kD9UF5vP6ASaYSmqLofAbJKY → qF/Xd/qFXdkBHyZBSkLF3J9LzXb3hp} +0 -0
  49. data/spec/dummy/tmp/storage/{s8/7h/s87h8BZd7Ke93oKJGLK2h7gG → t2/A8/t2A8wMukKNjuCnAwV1hQ4hcn} +0 -0
  50. data/spec/dummy/tmp/storage/{xM/hy/xMhyjmrVVnTqw7Y77muEfd61 → xk/pK/xkpK28DBGFmAkuYh89UAhZhe} +0 -0
  51. metadata +60 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 401abf0e451f87a76394db56154443a5bf76566ed573b94d598d58d0aab78539
4
- data.tar.gz: 5af15d6ff1b8a519b7674e506f6ecb467d02016d707eb9d42bc65957759eb339
3
+ metadata.gz: 80e37848c2b0c6ff109fb8814eb3791ec08aa8054d490d6f9dc2e2beb144ca0d
4
+ data.tar.gz: 7196179fa33a5bdd48830727978be54b642c11fb91b1d44ee75549a25fa947ef
5
5
  SHA512:
6
- metadata.gz: fd2dd6d4783e786a49cf11b897f98eaf260524cbb8c8c72d66254029ef715a5fdcd417671535ab3a5bad2c2401999c9f7b6a290d90a69f3e74ff2da5990b00fa
7
- data.tar.gz: c65759f1d83fc45869e278db8fe2ca827104a606f57dd37f2802209fe39ad3dcd1f6ddd7ce102624777568e7928aa313e5511dc33588f931f2016de0c2bcbb33
6
+ metadata.gz: e8427fb1b67c958ebf29907b318ce6edd86e84b7294113dc971def897acb9e0fc84e8d287d6a7f905c5c0f206efeae4a274ba9930b758288e066a943de42ad0c
7
+ data.tar.gz: b7a17bf3d14383159520422bf1965b424af4cad1081f7f5fc8a782113aa74a50bb16b0596491c4b2bee13ac2d63d15efb6b79883fcf7ebfbfe557aa340401def
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require_relative 'config/application'
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require rails-ujs
14
+ //= require activestorage
15
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag 'application', media: 'all' %>
9
+ <%= javascript_include_tag 'application' %>
10
+ </head>
11
+
12
+ <body>
13
+ <%= yield %>
14
+ </body>
15
+ </html>
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,5 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative 'config/environment'
4
+
5
+ run Rails.application
@@ -0,0 +1,30 @@
1
+ require_relative 'boot'
2
+
3
+ require "rails"
4
+ # Pick the frameworks you want:
5
+ require "active_model/railtie"
6
+ require "active_job/railtie"
7
+ require "active_record/railtie"
8
+ require "active_storage/engine"
9
+ require "action_controller/railtie"
10
+ require "action_mailer/railtie"
11
+ require "action_view/railtie"
12
+ require "action_cable/engine"
13
+ require "sprockets/railtie"
14
+ # require "rails/test_unit/railtie"
15
+
16
+ Bundler.require(*Rails.groups)
17
+ require "cmor_carousels"
18
+
19
+ module Dummy
20
+ class Application < Rails::Application
21
+ # Initialize configuration defaults for originally generated Rails version.
22
+ config.load_defaults 5.2
23
+
24
+ # Settings in config/environments/* take precedence over those specified here.
25
+ # Application configuration can go into files in config/initializers
26
+ # -- all .rb files in that directory are automatically loaded after loading
27
+ # the framework and any gems in your application.
28
+ end
29
+ end
30
+
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative 'application'
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,61 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ # Run rails dev:cache to toggle caching.
17
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
18
+ config.action_controller.perform_caching = true
19
+
20
+ config.cache_store = :memory_store
21
+ config.public_file_server.headers = {
22
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
23
+ }
24
+ else
25
+ config.action_controller.perform_caching = false
26
+
27
+ config.cache_store = :null_store
28
+ end
29
+
30
+ # Store uploaded files on the local file system (see config/storage.yml for options)
31
+ config.active_storage.service = :local
32
+
33
+ # Don't care if the mailer can't send.
34
+ config.action_mailer.raise_delivery_errors = false
35
+
36
+ config.action_mailer.perform_caching = false
37
+
38
+ # Print deprecation notices to the Rails logger.
39
+ config.active_support.deprecation = :log
40
+
41
+ # Raise an error on page load if there are pending migrations.
42
+ config.active_record.migration_error = :page_load
43
+
44
+ # Highlight code that triggered database queries in logs.
45
+ config.active_record.verbose_query_logs = true
46
+
47
+ # Debug mode disables concatenation and preprocessing of assets.
48
+ # This option may cause significant delays in view rendering with a large
49
+ # number of complex assets.
50
+ config.assets.debug = true
51
+
52
+ # Suppress logger output for asset requests.
53
+ config.assets.quiet = true
54
+
55
+ # Raises error for missing translations
56
+ # config.action_view.raise_on_missing_translations = true
57
+
58
+ # Use an evented file watcher to asynchronously detect changes in source code,
59
+ # routes, locales, etc. This feature depends on the listen gem.
60
+ # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
61
+ end
@@ -0,0 +1,46 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19
+ }
20
+
21
+ # Show full error reports and disable caching.
22
+ config.consider_all_requests_local = true
23
+ config.action_controller.perform_caching = false
24
+
25
+ # Raise exceptions instead of rendering exception templates.
26
+ config.action_dispatch.show_exceptions = false
27
+
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
30
+
31
+ # Store uploaded files on the local file system in a temporary directory
32
+ config.active_storage.service = :test
33
+
34
+ config.action_mailer.perform_caching = false
35
+
36
+ # Tell Action Mailer not to deliver emails to the real world.
37
+ # The :test delivery method accumulates sent emails in the
38
+ # ActionMailer::Base.deliveries array.
39
+ config.action_mailer.delivery_method = :test
40
+
41
+ # Print deprecation notices to the stderr.
42
+ config.active_support.deprecation = :stderr
43
+
44
+ # Raises error for missing translations
45
+ # config.action_view.raise_on_missing_translations = true
46
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ Cmor::Carousels.configure do |config|
2
+ end
3
+
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
3
+ end
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
Binary file
@@ -0,0 +1,55 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2019_03_31_085417) do
14
+
15
+ create_table "active_storage_attachments", force: :cascade do |t|
16
+ t.string "name", null: false
17
+ t.string "record_type", null: false
18
+ t.integer "record_id", null: false
19
+ t.integer "blob_id", null: false
20
+ t.datetime "created_at", null: false
21
+ t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
22
+ t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
23
+ end
24
+
25
+ create_table "active_storage_blobs", force: :cascade do |t|
26
+ t.string "key", null: false
27
+ t.string "filename", null: false
28
+ t.string "content_type"
29
+ t.text "metadata"
30
+ t.bigint "byte_size", null: false
31
+ t.string "checksum", null: false
32
+ t.datetime "created_at", null: false
33
+ t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
34
+ end
35
+
36
+ create_table "cmor_carousels_carousels", force: :cascade do |t|
37
+ t.string "locale"
38
+ t.string "identifier"
39
+ t.string "variant_options"
40
+ t.datetime "created_at"
41
+ t.datetime "updated_at"
42
+ end
43
+
44
+ create_table "cmor_carousels_item_details", force: :cascade do |t|
45
+ t.integer "carousel_id"
46
+ t.integer "asset_id"
47
+ t.string "url"
48
+ t.text "description"
49
+ t.integer "position"
50
+ t.datetime "published_at"
51
+ t.datetime "created_at"
52
+ t.datetime "updated_at"
53
+ end
54
+
55
+ end