liquid4-rails5 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/liquid-rails.rb +1 -0
  3. data/lib/liquid-rails/drops/collection_drop.rb +66 -68
  4. data/lib/liquid-rails/drops/drop.rb +1 -1
  5. data/lib/liquid-rails/drops/droppable.rb +5 -1
  6. data/lib/liquid-rails/railtie.rb +6 -3
  7. data/lib/liquid-rails/version.rb +1 -1
  8. data/liquid-rails.gemspec +1 -0
  9. data/spec/dummy/Rakefile +2 -2
  10. data/spec/dummy/bin/rails +1 -1
  11. data/spec/dummy/bin/setup +34 -0
  12. data/spec/dummy/bin/update +29 -0
  13. data/spec/dummy/config.ru +2 -1
  14. data/spec/dummy/config/application.rb +2 -12
  15. data/spec/dummy/config/boot.rb +2 -2
  16. data/spec/dummy/config/cable.yml +9 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +2 -2
  19. data/spec/dummy/config/environments/development.rb +32 -7
  20. data/spec/dummy/config/environments/production.rb +37 -31
  21. data/spec/dummy/config/environments/test.rb +11 -5
  22. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  23. data/spec/dummy/config/initializers/assets.rb +11 -0
  24. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  25. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  26. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  27. data/spec/dummy/config/initializers/session_store.rb +1 -1
  28. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
  29. data/spec/dummy/config/puma.rb +47 -0
  30. data/spec/dummy/config/secrets.yml +2 -10
  31. data/spec/dummy/config/spring.rb +6 -0
  32. data/spec/dummy/db/test.sqlite3 +0 -0
  33. data/spec/dummy/public/404.html +20 -11
  34. data/spec/dummy/public/422.html +20 -11
  35. data/spec/dummy/public/500.html +19 -10
  36. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  37. data/spec/dummy/public/apple-touch-icon.png +0 -0
  38. data/spec/fixtures/poro.rb +2 -2
  39. data/spec/lib/liquid-rails/drops/drop_spec.rb +2 -2
  40. metadata +43 -8
  41. data/.ruby-version +0 -1
  42. data/spec/dummy/README.rdoc +0 -28
  43. data/spec/dummy/config/initializers/secret_token.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba30caa8676da98a2ed6ac3037094790d8d1a93f
4
- data.tar.gz: 1f135293ee0d8c6012eafc92499544592a0e4993
3
+ metadata.gz: 177ab71e3e27da7d3f8d2a18d6db9e484c73593c
4
+ data.tar.gz: a37feced734f5aec6a8b77b7d031ce7b96366c87
5
5
  SHA512:
6
- metadata.gz: 7a7e2b1d626156344f39f1618b06258a4e833eab02d8aa4c235b709ab2c514bb36a105d44342f15f38fa33838f11b5e62be279501e400b746378c4a69b87b3fe
7
- data.tar.gz: 4f8c800d0049f3332bd43f4b93c69a75281ca153e14f2cedc8c2411ee90fd5abdb78f3599707a4d662a79e85f34e9d00745c0c9878e37b4fb46dc30ab4cb89f2
6
+ metadata.gz: 989abe139b73bd634f58bf15c08da8193f7525a8802c8f6d936ff55d832054d6e05f90eae9f80107b8a14bca0c53478d561132eb2e608452fcfec60ac01b8396
7
+ data.tar.gz: 2dcfdabfe8f467e10734334dfe970317b29b62c5b3d53f0d0011bf8d391b6ff732361408a235e0dcabaecb9b9bfafe747a518cae65410b8f4bc5d844c7a4e827
data/lib/liquid-rails.rb CHANGED
@@ -3,6 +3,7 @@ require 'liquid'
3
3
  require 'liquid-rails/liquid_monkey_patch'
4
4
  require 'kaminari'
5
5
  require 'active_support/concern'
6
+ require 'active_record'
6
7
 
7
8
  module Liquid
8
9
  module Rails
@@ -1,91 +1,89 @@
1
- module Liquid
2
- module Rails
3
- class CollectionDrop < ::Liquid::Drop
1
+ module ActiveRecord
2
+ class RelationDrop < ::Liquid::Drop
4
3
 
5
- class << self
6
- attr_accessor :_scopes
7
- end
4
+ class << self
5
+ attr_accessor :_scopes
6
+ end
8
7
 
9
- def self.inherited(base)
10
- base._scopes = []
11
- end
8
+ def self.inherited(base)
9
+ base._scopes = []
10
+ end
12
11
 
13
- def self.scope(*scope_names)
14
- @_scopes.concat scope_names
12
+ def self.scope(*scope_names)
13
+ @_scopes.concat scope_names
15
14
 
16
- scope_names.each do |scope_name|
17
- define_method(scope_name) do
18
- value = instance_variable_get("@_#{scope_name}")
19
- return value if value
15
+ scope_names.each do |scope_name|
16
+ define_method(scope_name) do
17
+ value = instance_variable_get("@_#{scope_name}")
18
+ return value if value
20
19
 
21
- raise ArgumentError, "#{objects.class.name} doesn't define scope: #{scope_name}" unless objects.respond_to?(scope_name)
22
- instance_variable_set("@_#{scope_name}", self.class.new(objects.send(scope_name)))
23
- end
20
+ raise ::Liquid::ArgumentError, "#{objects.class.name} doesn't define scope: #{scope_name}" unless objects.respond_to?(scope_name)
21
+ instance_variable_set("@_#{scope_name}", self.class.new(objects.send(scope_name)))
24
22
  end
25
23
  end
24
+ end
26
25
 
27
- array_methods = Array.instance_methods - Object.instance_methods
28
- delegate *array_methods, to: :dropped_collection
29
- delegate :total_count, :total_pages, to: :objects
26
+ array_methods = Array.instance_methods - Object.instance_methods
27
+ delegate *array_methods, to: :dropped_collection
28
+ delegate :total_count, :total_pages, to: :objects
30
29
 
31
- def initialize(objects, options={})
32
- options.assert_valid_keys(:with, :scope)
30
+ def initialize(objects, options={})
31
+ options.assert_valid_keys(:with, :scope)
33
32
 
34
- @objects = options[:scope].nil? ? objects : objects.send(options[:scope])
35
- @drop_class_name = options[:with]
36
- end
33
+ @objects = options[:scope].nil? ? objects : objects.send(options[:scope])
34
+ @drop_class_name = options[:with]
35
+ end
37
36
 
38
- def page(number)
39
- self.class.new(objects.page(number))
40
- end
37
+ def page(number)
38
+ self.class.new(objects.page(number))
39
+ end
41
40
 
42
- def per(number)
43
- self.class.new(objects.per(number))
44
- end
41
+ def per(number)
42
+ self.class.new(objects.per(number))
43
+ end
45
44
 
46
- def dropped_collection
47
- @dropped_collection ||= @objects.map { |item| drop_item(item) }
48
- end
45
+ def dropped_collection
46
+ @dropped_collection ||= @objects.map { |item| drop_item(item) }
47
+ end
49
48
 
50
- def kind_of?(klass)
51
- dropped_collection.kind_of?(klass) || super
52
- end
53
- alias_method :is_a?, :kind_of?
54
-
55
- ## :[] is invoked by parser before the actual. However, this method has the same name as array method.
56
- ## Override this, so it will work for both cases.
57
- ## {{ post_drop.comments[0] }}
58
- ## {{ post_drop.<other_methods> }}
59
- def [](method)
60
- if method.is_a?(Integer)
61
- dropped_collection.at(method)
62
- else
63
- public_send(method)
64
- end
49
+ def kind_of?(klass)
50
+ dropped_collection.kind_of?(klass) || super
51
+ end
52
+ alias_method :is_a?, :kind_of?
53
+
54
+ ## :[] is invoked by parser before the actual. However, this method has the same name as array method.
55
+ ## Override this, so it will work for both cases.
56
+ ## {{ post_drop.comments[0] }}
57
+ ## {{ post_drop.<other_methods> }}
58
+ def [](method)
59
+ if method.is_a?(Integer)
60
+ dropped_collection.at(method)
61
+ else
62
+ public_send(method)
65
63
  end
64
+ end
66
65
 
67
- ## Need to override this. I don't understand too, otherwise it will return an array of drop objects.
68
- ## Need to return self so that we can do chaining.
69
- def to_liquid
70
- self
71
- end
66
+ ## Need to override this. I don't understand too, otherwise it will return an array of drop objects.
67
+ ## Need to return self so that we can do chaining.
68
+ def to_liquid
69
+ self
70
+ end
72
71
 
73
- def inspect
74
- "#<#{self.class.name} of #{drop_class} for #{objects.inspect}>"
75
- end
72
+ def inspect
73
+ "#<#{self.class.name} of #{drop_class} for #{objects.inspect}>"
74
+ end
76
75
 
77
- protected
76
+ protected
78
77
 
79
- attr_reader :objects
78
+ attr_reader :objects
80
79
 
81
- def drop_class
82
- @drop_class ||= @drop_class_name.is_a?(String) ? @drop_class_name.safe_constantize : @drop_class_name
83
- end
80
+ def drop_class
81
+ @drop_class ||= @drop_class_name.is_a?(String) ? @drop_class_name.safe_constantize : @drop_class_name
82
+ end
84
83
 
85
- def drop_item(item)
86
- liquid_drop_class = drop_class || item.drop_class
87
- liquid_drop_class.new(item)
88
- end
89
- end
84
+ def drop_item(item)
85
+ liquid_drop_class = drop_class || item.drop_class
86
+ liquid_drop_class.new(item)
87
+ end
90
88
  end
91
89
  end
@@ -28,7 +28,7 @@ module Liquid
28
28
  # Array of products maps to `Liquid::Rails::CollectionDrop`.
29
29
  def self.drop_class_for(resource)
30
30
  if resource.respond_to?(:to_ary)
31
- Liquid::Rails::CollectionDrop
31
+ ::ActiveRecord::RelationDrop
32
32
  else
33
33
  if self == Liquid::Rails::Drop
34
34
  resource.drop_class
@@ -14,7 +14,11 @@ module Liquid
14
14
 
15
15
  module ClassMethods
16
16
  def drop_class
17
- "#{self.name}Drop".constantize
17
+ if self.name == 'ActiveRecord::Associations::CollectionProxy'
18
+ ActiveRecord::RelationDrop
19
+ else
20
+ "#{self.name}Drop".constantize
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -16,11 +16,14 @@ module Liquid
16
16
 
17
17
  initializer 'liquid-rails.setup_drop' do |app|
18
18
  [:active_record, :mongoid].each do |orm|
19
- ActiveSupport.on_load orm do
20
- Liquid::Rails.setup_drop self
19
+ ActiveSupport.on_load(orm) do
20
+ Liquid::Rails.setup_drop(self)
21
+ # if self.is_a? ActiveRecord::Base
22
+ Liquid::Rails.setup_drop(ActiveRecord::Relation)
23
+ # end
21
24
  end
22
25
  end
23
26
  end
24
27
  end
25
28
  end
26
- end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Liquid
2
2
  module Rails
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
data/liquid-rails.gemspec CHANGED
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'capybara', '~> 2.4.1'
32
32
  spec.add_development_dependency 'pry-rails'
33
33
  spec.add_development_dependency 'simplecov'
34
+ spec.add_development_dependency 'sqlite3'
34
35
  end
data/spec/dummy/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
2
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
3
 
4
- require File.expand_path('../config/application', __FILE__)
4
+ require_relative 'config/application'
5
5
 
6
- Dummy::Application.load_tasks
6
+ Rails.application.load_tasks
data/spec/dummy/bin/rails CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
3
  require_relative '../config/boot'
4
4
  require 'rails/commands'
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a starting point to setup your application.
15
+ # Add necessary setup steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ # puts "\n== Copying sample files =="
22
+ # unless File.exist?('config/database.yml')
23
+ # cp 'config/database.yml.sample', 'config/database.yml'
24
+ # end
25
+
26
+ puts "\n== Preparing database =="
27
+ system! 'bin/rails db:setup'
28
+
29
+ puts "\n== Removing old logs and tempfiles =="
30
+ system! 'bin/rails log:clear tmp:clear'
31
+
32
+ puts "\n== Restarting application server =="
33
+ system! 'bin/rails restart'
34
+ end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a way to update your development environment automatically.
15
+ # Add necessary update steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ puts "\n== Updating database =="
22
+ system! 'bin/rails db:migrate'
23
+
24
+ puts "\n== Removing old logs and tempfiles =="
25
+ system! 'bin/rails log:clear tmp:clear'
26
+
27
+ puts "\n== Restarting application server =="
28
+ system! 'bin/rails restart'
29
+ end
data/spec/dummy/config.ru CHANGED
@@ -1,4 +1,5 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require_relative 'config/environment'
4
+
4
5
  run Rails.application
@@ -1,8 +1,6 @@
1
- require File.expand_path('../boot', __FILE__)
1
+ require_relative 'boot'
2
2
 
3
- # Pick the frameworks you want:
4
- require "action_controller/railtie"
5
- # require "rails/test_unit/railtie"
3
+ require 'rails/all'
6
4
 
7
5
  Bundler.require(*Rails.groups)
8
6
  require "liquid-rails"
@@ -12,14 +10,6 @@ module Dummy
12
10
  # Settings in config/environments/* take precedence over those specified here.
13
11
  # Application configuration should go into files in config/initializers
14
12
  # -- all .rb files in that directory are automatically loaded.
15
-
16
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
17
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
18
- # config.time_zone = 'Central Time (US & Canada)'
19
-
20
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
21
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
22
- # config.i18n.default_locale = :de
23
13
  end
24
14
  end
25
15
 
@@ -1,5 +1,5 @@
1
1
  # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
3
 
4
4
  require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
5
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -0,0 +1,9 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: async
6
+
7
+ production:
8
+ adapter: redis
9
+ url: redis://localhost:6379/1
@@ -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: 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
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require_relative 'application'
3
3
 
4
4
  # Initialize the Rails application.
5
- Dummy::Application.initialize!
5
+ Rails.application.initialize!
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
@@ -9,21 +9,46 @@ Dummy::Application.configure do
9
9
  # Do not eager load code on boot.
10
10
  config.eager_load = false
11
11
 
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ if Rails.root.join('tmp/caching-dev.txt').exist?
17
+ config.action_controller.perform_caching = true
18
+
19
+ config.cache_store = :memory_store
20
+ config.public_file_server.headers = {
21
+ 'Cache-Control' => 'public, max-age=172800'
22
+ }
23
+ else
24
+ config.action_controller.perform_caching = false
25
+
26
+ config.cache_store = :null_store
27
+ end
15
28
 
16
29
  # Don't care if the mailer can't send.
17
- # config.action_mailer.raise_delivery_errors = false
30
+ config.action_mailer.raise_delivery_errors = false
31
+
32
+ config.action_mailer.perform_caching = false
18
33
 
19
34
  # Print deprecation notices to the Rails logger.
20
35
  config.active_support.deprecation = :log
21
36
 
22
- # Raise an error on page load if there are pending migrations
23
- # config.active_record.migration_error = :page_load
37
+ # Raise an error on page load if there are pending migrations.
38
+ config.active_record.migration_error = :page_load
24
39
 
25
40
  # Debug mode disables concatenation and preprocessing of assets.
26
41
  # This option may cause significant delays in view rendering with a large
27
42
  # number of complex assets.
28
43
  config.assets.debug = true
44
+
45
+ # Suppress logger output for asset requests.
46
+ config.assets.quiet = true
47
+
48
+ # Raises error for missing translations
49
+ # config.action_view.raise_on_missing_translations = true
50
+
51
+ # Use an evented file watcher to asynchronously detect changes in source code,
52
+ # routes, locales, etc. This feature depends on the listen gem.
53
+ # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
29
54
  end
@@ -1,11 +1,11 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
7
  # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
8
+ # your application in memory, allowing both threaded web servers
9
9
  # and those relying on copy on write to perform better.
10
10
  # Rake tasks automatically ignore this option for performance.
11
11
  config.eager_load = true
@@ -14,13 +14,9 @@ Dummy::Application.configure do
14
14
  config.consider_all_requests_local = false
15
15
  config.action_controller.perform_caching = true
16
16
 
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
17
+ # Disable serving static files from the `/public` folder by default since
18
+ # Apache or NGINX already handles this.
19
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
24
20
 
25
21
  # Compress JavaScripts and CSS.
26
22
  config.assets.js_compressor = :uglifier
@@ -29,52 +25,62 @@ Dummy::Application.configure do
29
25
  # Do not fallback to assets pipeline if a precompiled asset is missed.
30
26
  config.assets.compile = false
31
27
 
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
28
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
34
29
 
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
30
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
31
+ # config.action_controller.asset_host = 'http://assets.example.com'
37
32
 
38
33
  # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
34
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
35
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
36
+
37
+ # Mount Action Cable outside main process or domain
38
+ # config.action_cable.mount_path = nil
39
+ # config.action_cable.url = 'wss://example.com/cable'
40
+ # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
41
41
 
42
42
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
43
  # config.force_ssl = true
44
44
 
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
45
+ # Use the lowest log level to ensure availability of diagnostic information
46
+ # when problems arise.
47
+ config.log_level = :debug
47
48
 
48
49
  # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
50
+ config.log_tags = [ :request_id ]
53
51
 
54
52
  # Use a different cache store in production.
55
53
  # config.cache_store = :mem_cache_store
56
54
 
57
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
- # config.action_controller.asset_host = "http://assets.example.com"
59
-
60
- # Precompile additional assets.
61
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
- # config.assets.precompile += %w( search.js )
55
+ # Use a real queuing backend for Active Job (and separate queues per environment)
56
+ # config.active_job.queue_adapter = :resque
57
+ # config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
58
+ config.action_mailer.perform_caching = false
63
59
 
64
60
  # Ignore bad email addresses and do not raise email delivery errors.
65
61
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
62
  # config.action_mailer.raise_delivery_errors = false
67
63
 
68
64
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
- # the I18n.default_locale when a translation can not be found).
65
+ # the I18n.default_locale when a translation cannot be found).
70
66
  config.i18n.fallbacks = true
71
67
 
72
68
  # Send deprecation notices to registered listeners.
73
69
  config.active_support.deprecation = :notify
74
70
 
75
- # Disable automatic flushing of the log to improve performance.
76
- # config.autoflush_log = false
77
-
78
71
  # Use default logging formatter so that PID and timestamp are not suppressed.
79
72
  config.log_formatter = ::Logger::Formatter.new
73
+
74
+ # Use a different logger for distributed setups.
75
+ # require 'syslog/logger'
76
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
77
+
78
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
79
+ logger = ActiveSupport::Logger.new(STDOUT)
80
+ logger.formatter = config.log_formatter
81
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
82
+ end
83
+
84
+ # Do not dump schema after migrations.
85
+ config.active_record.dump_schema_after_migration = false
80
86
  end
@@ -1,4 +1,4 @@
1
- Dummy::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -12,9 +12,11 @@ Dummy::Application.configure do
12
12
  # preloads Rails for running tests, you may have to set it to true.
13
13
  config.eager_load = false
14
14
 
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
17
- config.static_cache_control = "public, max-age=3600"
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=3600'
19
+ }
18
20
 
19
21
  # Show full error reports and disable caching.
20
22
  config.consider_all_requests_local = true
@@ -25,12 +27,16 @@ Dummy::Application.configure do
25
27
 
26
28
  # Disable request forgery protection in test environment.
27
29
  config.action_controller.allow_forgery_protection = false
30
+ config.action_mailer.perform_caching = false
28
31
 
29
32
  # Tell Action Mailer not to deliver emails to the real world.
30
33
  # The :test delivery method accumulates sent emails in the
31
34
  # ActionMailer::Base.deliveries array.
32
- # config.action_mailer.delivery_method = :test
35
+ config.action_mailer.delivery_method = :test
33
36
 
34
37
  # Print deprecation notices to the stderr.
35
38
  config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
36
42
  end
@@ -0,0 +1,6 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ApplicationController.renderer.defaults.merge!(
4
+ # http_host: 'example.org',
5
+ # https: false
6
+ # )
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -2,4 +2,3 @@
2
2
 
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,24 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains migration options to ease your Rails 5.0 upgrade.
4
+ #
5
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
6
+
7
+ # Enable per-form CSRF tokens. Previous versions had false.
8
+ Rails.application.config.action_controller.per_form_csrf_tokens = true
9
+
10
+ # Enable origin-checking CSRF mitigation. Previous versions had false.
11
+ Rails.application.config.action_controller.forgery_protection_origin_check = true
12
+
13
+ # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
14
+ # Previous versions had false.
15
+ ActiveSupport.to_time_preserves_timezone = true
16
+
17
+ # Require `belongs_to` associations by default. Previous versions had false.
18
+ Rails.application.config.active_record.belongs_to_required_by_default = true
19
+
20
+ # Do not halt callback chains when a callback returns false. Previous versions had true.
21
+ ActiveSupport.halt_callback_chains_on_return_false = false
22
+
23
+ # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24
+ Rails.application.config.ssl_options = { hsts: { subdomains: true } }
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -5,10 +5,10 @@
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8
+ wrap_parameters format: [:json]
9
9
  end
10
10
 
11
11
  # To enable root element in JSON for ActiveRecord objects.
12
12
  # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
13
+ # self.include_root_in_json = true
14
14
  # end
@@ -0,0 +1,47 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum, this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests, default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory. If you use this option
30
+ # you need to make sure to reconnect any threads in the `on_worker_boot`
31
+ # block.
32
+ #
33
+ # preload_app!
34
+
35
+ # The code in the `on_worker_boot` will be called if you are using
36
+ # clustered mode by specifying a number of `workers`. After each worker
37
+ # process is booted this block will be run, if you are using `preload_app!`
38
+ # option you will want to use this block to reconnect to any threads
39
+ # or connections that may have been created at application boot, Ruby
40
+ # cannot share connections between processes.
41
+ #
42
+ # on_worker_boot do
43
+ # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
44
+ # end
45
+
46
+ # Allow puma to be restarted by `rails restart` command.
47
+ plugin :tmp_restart
@@ -10,21 +10,13 @@
10
10
  # Make sure the secrets in this file are kept private
11
11
  # if you're sharing your code publicly.
12
12
 
13
- # Shared secrets are available across all environments.
14
-
15
- shared:
16
- api_key: 123
17
-
18
- # Environmental secrets are only available for that specific environment.
19
-
20
13
  development:
21
- secret_key_base: 6c8ad54079996a5a3a75a6c237fc3b24b395062ebb253d94124463d0a8886769e44b5577dd22843ddee62a2111f73ccf3a476e0790816fcbf7e24ccff0d84d5b
14
+ secret_key_base: 3293caedf1b47a3710816ee7f0d951d14a42bbccd65fc351415f788ba56bdae36dcc036bed8d75db70e3d5828cdfc6544b2bf64aeb3db49998fc9db166deafd2
22
15
 
23
16
  test:
24
- secret_key_base: 5e9938a8de5615369f24fd059a7701e85cc1ee3335b7ae0581d52a5b29559683b9cc5ecb640c1ac66dc5e29b5a8829306f80dde272a7cc539171268be41081a9
17
+ secret_key_base: ab3a32cb0e9c41ef7dd52d93482056ff5d1240c7f1dc89118dc40887b2a1aa70506134f7c69225e0cb543bb4fc34e50d0b8e9a4e56e6e648549831b0de76bc50
25
18
 
26
19
  # Do not keep production secrets in the repository,
27
20
  # instead read values from the environment.
28
-
29
21
  production:
30
22
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
File without changes
@@ -2,17 +2,23 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
5
6
  <style>
6
7
  body {
7
8
  background-color: #EFEFEF;
8
9
  color: #2E2F30;
9
10
  text-align: center;
10
11
  font-family: arial, sans-serif;
12
+ margin: 0;
11
13
  }
12
14
 
13
15
  div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
16
22
  border: 1px solid #CCC;
17
23
  border-right-color: #999;
18
24
  border-left-color: #999;
@@ -21,7 +27,8 @@
21
27
  border-top-left-radius: 9px;
22
28
  border-top-right-radius: 9px;
23
29
  background-color: white;
24
- padding: 7px 4em 0 4em;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
25
32
  }
26
33
 
27
34
  h1 {
@@ -30,19 +37,19 @@
30
37
  line-height: 1.5em;
31
38
  }
32
39
 
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
37
43
  background-color: #F7F7F7;
38
44
  border: 1px solid #CCC;
39
45
  border-right-color: #999;
46
+ border-left-color: #999;
40
47
  border-bottom-color: #999;
41
48
  border-bottom-left-radius: 4px;
42
49
  border-bottom-right-radius: 4px;
43
50
  border-top-color: #DADADA;
44
51
  color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -50,9 +57,11 @@
50
57
  <body>
51
58
  <!-- This file lives in public/404.html -->
52
59
  <div class="dialog">
53
- <h1>The page you were looking for doesn't exist.</h1>
54
- <p>You may have mistyped the address or the page may have moved.</p>
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
55
65
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
66
  </body>
58
67
  </html>
@@ -2,17 +2,23 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
5
6
  <style>
6
7
  body {
7
8
  background-color: #EFEFEF;
8
9
  color: #2E2F30;
9
10
  text-align: center;
10
11
  font-family: arial, sans-serif;
12
+ margin: 0;
11
13
  }
12
14
 
13
15
  div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
16
22
  border: 1px solid #CCC;
17
23
  border-right-color: #999;
18
24
  border-left-color: #999;
@@ -21,7 +27,8 @@
21
27
  border-top-left-radius: 9px;
22
28
  border-top-right-radius: 9px;
23
29
  background-color: white;
24
- padding: 7px 4em 0 4em;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
25
32
  }
26
33
 
27
34
  h1 {
@@ -30,19 +37,19 @@
30
37
  line-height: 1.5em;
31
38
  }
32
39
 
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
37
43
  background-color: #F7F7F7;
38
44
  border: 1px solid #CCC;
39
45
  border-right-color: #999;
46
+ border-left-color: #999;
40
47
  border-bottom-color: #999;
41
48
  border-bottom-left-radius: 4px;
42
49
  border-bottom-right-radius: 4px;
43
50
  border-top-color: #DADADA;
44
51
  color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -50,9 +57,11 @@
50
57
  <body>
51
58
  <!-- This file lives in public/422.html -->
52
59
  <div class="dialog">
53
- <h1>The change you wanted was rejected.</h1>
54
- <p>Maybe you tried to change something you didn't have access to.</p>
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
55
65
  </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
66
  </body>
58
67
  </html>
@@ -2,17 +2,23 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
5
6
  <style>
6
7
  body {
7
8
  background-color: #EFEFEF;
8
9
  color: #2E2F30;
9
10
  text-align: center;
10
11
  font-family: arial, sans-serif;
12
+ margin: 0;
11
13
  }
12
14
 
13
15
  div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
16
22
  border: 1px solid #CCC;
17
23
  border-right-color: #999;
18
24
  border-left-color: #999;
@@ -21,7 +27,8 @@
21
27
  border-top-left-radius: 9px;
22
28
  border-top-right-radius: 9px;
23
29
  background-color: white;
24
- padding: 7px 4em 0 4em;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
25
32
  }
26
33
 
27
34
  h1 {
@@ -30,19 +37,19 @@
30
37
  line-height: 1.5em;
31
38
  }
32
39
 
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
37
43
  background-color: #F7F7F7;
38
44
  border: 1px solid #CCC;
39
45
  border-right-color: #999;
46
+ border-left-color: #999;
40
47
  border-bottom-color: #999;
41
48
  border-bottom-left-radius: 4px;
42
49
  border-bottom-right-radius: 4px;
43
50
  border-top-color: #DADADA;
44
51
  color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
46
53
  }
47
54
  </style>
48
55
  </head>
@@ -50,8 +57,10 @@
50
57
  <body>
51
58
  <!-- This file lives in public/500.html -->
52
59
  <div class="dialog">
53
- <h1>We're sorry, but something went wrong.</h1>
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
54
64
  </div>
55
- <p>If you are the application owner check the logs for more information.</p>
56
65
  </body>
57
66
  </html>
File without changes
@@ -52,7 +52,7 @@ CommentDrop = Class.new(Liquid::Rails::Drop) do
52
52
  end
53
53
 
54
54
  ReProfileDrop = Class.new(Liquid::Rails::Drop)
55
- PostsDrop = Class.new(Liquid::Rails::CollectionDrop)
55
+ PostsDrop = Class.new(ActiveRecord::RelationDrop)
56
56
  RePostDrop = Class.new(Liquid::Rails::Drop)
57
57
  ReCommentDrop = Class.new(Liquid::Rails::Drop)
58
- CommentsDrop = Class.new(Liquid::Rails::CollectionDrop)
58
+ CommentsDrop = Class.new(ActiveRecord::RelationDrop)
@@ -49,7 +49,7 @@ module Liquid
49
49
  it "instantitates with collection drop class" do
50
50
  array = [1, 2, 3]
51
51
 
52
- expect(Liquid::Rails::Drop.dropify(array)).to be_instance_of(Liquid::Rails::CollectionDrop)
52
+ expect(Liquid::Rails::Drop.dropify(array)).to be_instance_of(ActiveRecord::RelationDrop)
53
53
  end
54
54
  end
55
55
  end
@@ -74,7 +74,7 @@ module Liquid
74
74
  end
75
75
 
76
76
  it '#comments returns as CollectionDrop object' do
77
- expect(@post_drop.comments).to be_instance_of(Liquid::Rails::CollectionDrop)
77
+ expect(@post_drop.comments).to be_instance_of(ActiveRecord::RelationDrop)
78
78
  end
79
79
 
80
80
  it '#recomments returns as CommentsDrop object' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid4-rails5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor Fonic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-04 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: sqlite3
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  description: It allows you to render .liquid templates with layout and partial support.
154
168
  It also provides filters, tags, drops class to be used inside your liquid template.
155
169
  email:
@@ -161,7 +175,6 @@ files:
161
175
  - ".coveralls.yml"
162
176
  - ".gitignore"
163
177
  - ".rspec"
164
- - ".ruby-version"
165
178
  - ".travis.yml"
166
179
  - CHANGELOG.md
167
180
  - Gemfile
@@ -193,7 +206,6 @@ files:
193
206
  - lib/liquid-rails/template_handler.rb
194
207
  - lib/liquid-rails/version.rb
195
208
  - liquid-rails.gemspec
196
- - spec/dummy/README.rdoc
197
209
  - spec/dummy/Rakefile
198
210
  - spec/dummy/app/assets/images/.keep
199
211
  - spec/dummy/app/assets/javascripts/application.js
@@ -223,29 +235,41 @@ files:
223
235
  - spec/dummy/bin/bundle
224
236
  - spec/dummy/bin/rails
225
237
  - spec/dummy/bin/rake
238
+ - spec/dummy/bin/setup
239
+ - spec/dummy/bin/update
226
240
  - spec/dummy/config.ru
227
241
  - spec/dummy/config/application.rb
228
242
  - spec/dummy/config/boot.rb
243
+ - spec/dummy/config/cable.yml
244
+ - spec/dummy/config/database.yml
229
245
  - spec/dummy/config/environment.rb
230
246
  - spec/dummy/config/environments/development.rb
231
247
  - spec/dummy/config/environments/production.rb
232
248
  - spec/dummy/config/environments/test.rb
249
+ - spec/dummy/config/initializers/application_controller_renderer.rb
250
+ - spec/dummy/config/initializers/assets.rb
233
251
  - spec/dummy/config/initializers/backtrace_silencers.rb
252
+ - spec/dummy/config/initializers/cookies_serializer.rb
234
253
  - spec/dummy/config/initializers/filter_parameter_logging.rb
235
254
  - spec/dummy/config/initializers/inflections.rb
236
255
  - spec/dummy/config/initializers/mime_types.rb
237
- - spec/dummy/config/initializers/secret_token.rb
256
+ - spec/dummy/config/initializers/new_framework_defaults.rb
238
257
  - spec/dummy/config/initializers/session_store.rb
239
258
  - spec/dummy/config/initializers/wrap_parameters.rb
240
259
  - spec/dummy/config/locales/en.yml
241
260
  - spec/dummy/config/locales/km.yml
261
+ - spec/dummy/config/puma.rb
242
262
  - spec/dummy/config/routes.rb
243
263
  - spec/dummy/config/secrets.yml
264
+ - spec/dummy/config/spring.rb
265
+ - spec/dummy/db/test.sqlite3
244
266
  - spec/dummy/lib/assets/.keep
245
267
  - spec/dummy/log/.keep
246
268
  - spec/dummy/public/404.html
247
269
  - spec/dummy/public/422.html
248
270
  - spec/dummy/public/500.html
271
+ - spec/dummy/public/apple-touch-icon-precomposed.png
272
+ - spec/dummy/public/apple-touch-icon.png
249
273
  - spec/dummy/public/favicon.ico
250
274
  - spec/fixtures/poro.rb
251
275
  - spec/lib/liquid-rails/drops/drop_spec.rb
@@ -280,12 +304,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
304
  version: 1.8.11
281
305
  requirements: []
282
306
  rubyforge_project:
283
- rubygems_version: 2.6.8
307
+ rubygems_version: 2.6.10
284
308
  signing_key:
285
309
  specification_version: 4
286
310
  summary: Renders liquid templates with layout and partial support
287
311
  test_files:
288
- - spec/dummy/README.rdoc
289
312
  - spec/dummy/Rakefile
290
313
  - spec/dummy/app/assets/images/.keep
291
314
  - spec/dummy/app/assets/javascripts/application.js
@@ -315,29 +338,41 @@ test_files:
315
338
  - spec/dummy/bin/bundle
316
339
  - spec/dummy/bin/rails
317
340
  - spec/dummy/bin/rake
341
+ - spec/dummy/bin/setup
342
+ - spec/dummy/bin/update
318
343
  - spec/dummy/config.ru
319
344
  - spec/dummy/config/application.rb
320
345
  - spec/dummy/config/boot.rb
346
+ - spec/dummy/config/cable.yml
347
+ - spec/dummy/config/database.yml
321
348
  - spec/dummy/config/environment.rb
322
349
  - spec/dummy/config/environments/development.rb
323
350
  - spec/dummy/config/environments/production.rb
324
351
  - spec/dummy/config/environments/test.rb
352
+ - spec/dummy/config/initializers/application_controller_renderer.rb
353
+ - spec/dummy/config/initializers/assets.rb
325
354
  - spec/dummy/config/initializers/backtrace_silencers.rb
355
+ - spec/dummy/config/initializers/cookies_serializer.rb
326
356
  - spec/dummy/config/initializers/filter_parameter_logging.rb
327
357
  - spec/dummy/config/initializers/inflections.rb
328
358
  - spec/dummy/config/initializers/mime_types.rb
329
- - spec/dummy/config/initializers/secret_token.rb
359
+ - spec/dummy/config/initializers/new_framework_defaults.rb
330
360
  - spec/dummy/config/initializers/session_store.rb
331
361
  - spec/dummy/config/initializers/wrap_parameters.rb
332
362
  - spec/dummy/config/locales/en.yml
333
363
  - spec/dummy/config/locales/km.yml
364
+ - spec/dummy/config/puma.rb
334
365
  - spec/dummy/config/routes.rb
335
366
  - spec/dummy/config/secrets.yml
367
+ - spec/dummy/config/spring.rb
368
+ - spec/dummy/db/test.sqlite3
336
369
  - spec/dummy/lib/assets/.keep
337
370
  - spec/dummy/log/.keep
338
371
  - spec/dummy/public/404.html
339
372
  - spec/dummy/public/422.html
340
373
  - spec/dummy/public/500.html
374
+ - spec/dummy/public/apple-touch-icon-precomposed.png
375
+ - spec/dummy/public/apple-touch-icon.png
341
376
  - spec/dummy/public/favicon.ico
342
377
  - spec/fixtures/poro.rb
343
378
  - spec/lib/liquid-rails/drops/drop_spec.rb
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.3.3
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,17 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- # if Rails.
13
- if Rails::VERSION::MAJOR == 3
14
- Dummy::Application.config.secret_token = '31a12e1f7a76d71cbb17a0bf67eaf2743235eac6282de87f3a717d87e06ef7ff8de58a52d5d391bbe135d59913c12ac0deb37706cd10c9df701ab2f5967fa0f0'
15
- elsif Rails::VERSION::MAJOR == 4
16
- Dummy::Application.config.secret_key_base = '31a12e1f7a76d71cbb17a0bf67eaf2743235eac6282de87f3a717d87e06ef7ff8de58a52d5d391bbe135d59913c12ac0deb37706cd10c9df701ab2f5967fa0f0'
17
- end