liquid-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gitignore +24 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +17 -0
- data/Gemfile +12 -0
- data/Guardfile +33 -0
- data/LICENSE.txt +22 -0
- data/README.md +140 -0
- data/Rakefile +27 -0
- data/gemfiles/rails_32.gemfile +11 -0
- data/gemfiles/rails_40.gemfile +11 -0
- data/gemfiles/rails_41.gemfile +11 -0
- data/lib/liquid-rails.rb +23 -0
- data/lib/liquid-rails/drops/collection_drop.rb +91 -0
- data/lib/liquid-rails/drops/drop.rb +114 -0
- data/lib/liquid-rails/drops/droppable.rb +22 -0
- data/lib/liquid-rails/file_system.rb +14 -0
- data/lib/liquid-rails/filters/asset_tag_filter.rb +25 -0
- data/lib/liquid-rails/filters/asset_url_filter.rb +37 -0
- data/lib/liquid-rails/filters/date_filter.rb +19 -0
- data/lib/liquid-rails/filters/google_static_map_url_filter.rb +30 -0
- data/lib/liquid-rails/filters/misc_filter.rb +47 -0
- data/lib/liquid-rails/filters/number_filter.rb +24 -0
- data/lib/liquid-rails/filters/sanitize_filter.rb +19 -0
- data/lib/liquid-rails/filters/text_filter.rb +47 -0
- data/lib/liquid-rails/filters/translate_filter.rb +13 -0
- data/lib/liquid-rails/filters/url_filter.rb +24 -0
- data/lib/liquid-rails/matchers.rb +5 -0
- data/lib/liquid-rails/railtie.rb +26 -0
- data/lib/liquid-rails/rspec/drop_example_group.rb +38 -0
- data/lib/liquid-rails/rspec/drop_matchers.rb +159 -0
- data/lib/liquid-rails/rspec/filter_example_group.rb +24 -0
- data/lib/liquid-rails/rspec/tag_example_group.rb +24 -0
- data/lib/liquid-rails/rspec/view_controller_context.rb +44 -0
- data/lib/liquid-rails/tags/content_for_tag.rb +68 -0
- data/lib/liquid-rails/tags/csrf_meta_tags.rb +11 -0
- data/lib/liquid-rails/tags/google_analytics_tag.rb +43 -0
- data/lib/liquid-rails/tags/javascript_tag.rb +22 -0
- data/lib/liquid-rails/tags/paginate_tag.rb +117 -0
- data/lib/liquid-rails/template_handler.rb +44 -0
- data/lib/liquid-rails/version.rb +5 -0
- data/liquid-rails.gemspec +26 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/home_controller.rb +25 -0
- data/spec/dummy/app/controllers/pages_controller.rb +16 -0
- data/spec/dummy/app/helpers/application_helper.rb +5 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/home/_partial.liquid +1 -0
- data/spec/dummy/app/views/home/index.liquid +1 -0
- data/spec/dummy/app/views/home/index_partial.liquid +4 -0
- data/spec/dummy/app/views/home/index_partial_with_full_path.liquid +4 -0
- data/spec/dummy/app/views/home/index_with_filter.liquid +2 -0
- data/spec/dummy/app/views/home/index_with_layout.liquid +1 -0
- data/spec/dummy/app/views/layouts/application.liquid +2 -0
- data/spec/dummy/app/views/pages/index_without_filter.liquid +2 -0
- data/spec/dummy/app/views/shared/_partial.liquid +1 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +25 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +17 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +4 -0
- data/spec/dummy/config/locales/km.yml +4 -0
- data/spec/dummy/config/routes.rb +10 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/fixtures/poro.rb +58 -0
- data/spec/lib/liquid-rails/drops/drop_spec.rb +119 -0
- data/spec/lib/liquid-rails/filters/asset_tag_filter_spec.rb +22 -0
- data/spec/lib/liquid-rails/filters/asset_url_filter_spec.rb +34 -0
- data/spec/lib/liquid-rails/filters/google_static_map_url_filter_spec.rb +23 -0
- data/spec/lib/liquid-rails/filters/misc_filter_spec.rb +26 -0
- data/spec/lib/liquid-rails/filters/translate_filter_spec.rb +25 -0
- data/spec/lib/liquid-rails/railtie_spec.rb +9 -0
- data/spec/lib/liquid-rails/rspec/drop_matchers_spec.rb +34 -0
- data/spec/lib/liquid-rails/tags/content_for_tag_spec.rb +27 -0
- data/spec/lib/liquid-rails/tags/csrf_meta_tag_spec.rb +16 -0
- data/spec/lib/liquid-rails/tags/google_analtyics_tag_spec.rb +31 -0
- data/spec/lib/liquid-rails/tags/javascript_tag_spec.rb +14 -0
- data/spec/lib/liquid-rails/tags/paginate_tag_spec.rb +96 -0
- data/spec/lib/liquid-rails/template_handler_spec.rb +53 -0
- data/spec/spec_helper.rb +44 -0
- data/spec/support/delegate_matcher.rb +60 -0
- metadata +261 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Request', type: :feature do
|
4
|
+
context 'render without layout' do
|
5
|
+
it 'renders with liquid template' do
|
6
|
+
visit '/'
|
7
|
+
|
8
|
+
expect(page.body).to eq 'Liquid on Rails'
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'sets content_type as html by default' do
|
12
|
+
visit '/'
|
13
|
+
|
14
|
+
expect(page.response_headers['Content-Type']).to eq('text/html; charset=utf-8')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'render with layout' do
|
19
|
+
it 'renders with layout' do
|
20
|
+
visit '/index_with_layout'
|
21
|
+
|
22
|
+
expect(page.body).to eq "Application Layout\nLiquid on Rails"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'render with partial' do
|
27
|
+
it 'no full path for the current controller' do
|
28
|
+
visit '/index_partial'
|
29
|
+
|
30
|
+
expect(page.body).to eq "Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial"
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'full path' do
|
34
|
+
visit '/index_partial_with_full_path'
|
35
|
+
|
36
|
+
expect(page.body).to eq "Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'render with filter' do
|
41
|
+
it 'renders with helper' do
|
42
|
+
visit '/index_with_filter'
|
43
|
+
|
44
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\nThis...")
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'renders with helper' do
|
48
|
+
visit '/index_without_filter'
|
49
|
+
|
50
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\nThis is a long section of text")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
if ENV['CI'] || ENV['COVERAGE']
|
2
|
+
require 'coveralls'
|
3
|
+
require 'simplecov'
|
4
|
+
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
6
|
+
SimpleCov::Formatter::HTMLFormatter,
|
7
|
+
Coveralls::SimpleCov::Formatter
|
8
|
+
]
|
9
|
+
|
10
|
+
SimpleCov.start do
|
11
|
+
add_filter 'drop_example_group.rb'
|
12
|
+
add_filter 'tag_example_group.rb'
|
13
|
+
add_filter 'spec'
|
14
|
+
add_filter 'gemfiles'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# Configure Rails Environment
|
19
|
+
ENV['RAILS_ENV'] = 'test'
|
20
|
+
|
21
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
22
|
+
require 'pry'
|
23
|
+
require 'liquid-rails'
|
24
|
+
require 'rspec/rails'
|
25
|
+
require 'rspec/autorun'
|
26
|
+
require 'capybara/rspec'
|
27
|
+
require 'liquid-rails/matchers'
|
28
|
+
|
29
|
+
Liquid::Template.error_mode = :strict
|
30
|
+
|
31
|
+
Rails.backtrace_cleaner.remove_silencers!
|
32
|
+
|
33
|
+
# Load support files
|
34
|
+
require 'fixtures/poro'
|
35
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
36
|
+
|
37
|
+
RSpec.configure do |config|
|
38
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
39
|
+
config.filter_run focus: true
|
40
|
+
config.run_all_when_everything_filtered = true
|
41
|
+
config.include Capybara::RSpecMatchers
|
42
|
+
config.include ActiveSupport::Testing::SetupAndTeardown
|
43
|
+
config.include ActionController::TestCase::Behavior
|
44
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# RSpec matcher to spec delegations.
|
2
|
+
# Forked from https://gist.github.com/ssimeonov/5942729 with fixes
|
3
|
+
# for arity + custom prefix.
|
4
|
+
#
|
5
|
+
# Usage:
|
6
|
+
#
|
7
|
+
# describe Post do
|
8
|
+
# it { should delegate(:name).to(:author).with_prefix } # post.author_name
|
9
|
+
# it { should delegate(:name).to(:author).with_prefix(:any) } # post.any_name
|
10
|
+
# it { should delegate(:month).to(:created_at) }
|
11
|
+
# it { should delegate(:year).to(:created_at) }
|
12
|
+
# it { should delegate(:something).to(:'@instance_var') }
|
13
|
+
# end
|
14
|
+
|
15
|
+
RSpec::Matchers.define :delegate do |method|
|
16
|
+
match do |delegator|
|
17
|
+
@method = @prefix ? :"#{@prefix}_#{method}" : method
|
18
|
+
@delegator = delegator
|
19
|
+
|
20
|
+
if @to.to_s[0] == '@'
|
21
|
+
# Delegation to an instance variable
|
22
|
+
old_value = @delegator.instance_variable_get(@to)
|
23
|
+
begin
|
24
|
+
@delegator.instance_variable_set(@to, receiver_double(method))
|
25
|
+
@delegator.send(@method) == :called
|
26
|
+
ensure
|
27
|
+
@delegator.instance_variable_set(@to, old_value)
|
28
|
+
end
|
29
|
+
elsif @delegator.respond_to?(@to, true)
|
30
|
+
unless [0,-1].include?(@delegator.method(@to).arity)
|
31
|
+
raise "#{@delegator}'s' #{@to} method does not have zero or -1 arity (it expects parameters)"
|
32
|
+
end
|
33
|
+
@delegator.stub(@to).and_return receiver_double(method)
|
34
|
+
@delegator.send(@method) == :called
|
35
|
+
else
|
36
|
+
raise "#{@delegator} does not respond to #{@to}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
description do
|
41
|
+
"delegate :#{@method} to its #{@to}#{@prefix ? ' with prefix' : ''}"
|
42
|
+
end
|
43
|
+
|
44
|
+
failure_message_for_should do |text|
|
45
|
+
"expected #{@delegator} to delegate :#{@method} to its #{@to}#{@prefix ? ' with prefix' : ''}"
|
46
|
+
end
|
47
|
+
|
48
|
+
failure_message_for_should_not do |text|
|
49
|
+
"expected #{@delegator} not to delegate :#{@method} to its #{@to}#{@prefix ? ' with prefix' : ''}"
|
50
|
+
end
|
51
|
+
|
52
|
+
chain(:to) { |receiver| @to = receiver }
|
53
|
+
chain(:with_prefix) { |prefix| @prefix = prefix || @to }
|
54
|
+
|
55
|
+
def receiver_double(method)
|
56
|
+
double('receiver').tap do |receiver|
|
57
|
+
receiver.stub(method).and_return :called
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: liquid-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chamnap Chhorn
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: liquid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.0.rc1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.0.rc1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: kaminari
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.16.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.16.1
|
55
|
+
description: It allows you to render .liquid templates with layout and partial support.
|
56
|
+
It also provides filters, tags, drops class to be used inside your liquid template.
|
57
|
+
email:
|
58
|
+
- chamnapchhorn@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".coveralls.yml"
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rspec"
|
66
|
+
- ".ruby-gemset"
|
67
|
+
- ".ruby-version"
|
68
|
+
- ".travis.yml"
|
69
|
+
- Gemfile
|
70
|
+
- Guardfile
|
71
|
+
- LICENSE.txt
|
72
|
+
- README.md
|
73
|
+
- Rakefile
|
74
|
+
- gemfiles/rails_32.gemfile
|
75
|
+
- gemfiles/rails_40.gemfile
|
76
|
+
- gemfiles/rails_41.gemfile
|
77
|
+
- lib/liquid-rails.rb
|
78
|
+
- lib/liquid-rails/drops/collection_drop.rb
|
79
|
+
- lib/liquid-rails/drops/drop.rb
|
80
|
+
- lib/liquid-rails/drops/droppable.rb
|
81
|
+
- lib/liquid-rails/file_system.rb
|
82
|
+
- lib/liquid-rails/filters/asset_tag_filter.rb
|
83
|
+
- lib/liquid-rails/filters/asset_url_filter.rb
|
84
|
+
- lib/liquid-rails/filters/date_filter.rb
|
85
|
+
- lib/liquid-rails/filters/google_static_map_url_filter.rb
|
86
|
+
- lib/liquid-rails/filters/misc_filter.rb
|
87
|
+
- lib/liquid-rails/filters/number_filter.rb
|
88
|
+
- lib/liquid-rails/filters/sanitize_filter.rb
|
89
|
+
- lib/liquid-rails/filters/text_filter.rb
|
90
|
+
- lib/liquid-rails/filters/translate_filter.rb
|
91
|
+
- lib/liquid-rails/filters/url_filter.rb
|
92
|
+
- lib/liquid-rails/matchers.rb
|
93
|
+
- lib/liquid-rails/railtie.rb
|
94
|
+
- lib/liquid-rails/rspec/drop_example_group.rb
|
95
|
+
- lib/liquid-rails/rspec/drop_matchers.rb
|
96
|
+
- lib/liquid-rails/rspec/filter_example_group.rb
|
97
|
+
- lib/liquid-rails/rspec/tag_example_group.rb
|
98
|
+
- lib/liquid-rails/rspec/view_controller_context.rb
|
99
|
+
- lib/liquid-rails/tags/content_for_tag.rb
|
100
|
+
- lib/liquid-rails/tags/csrf_meta_tags.rb
|
101
|
+
- lib/liquid-rails/tags/google_analytics_tag.rb
|
102
|
+
- lib/liquid-rails/tags/javascript_tag.rb
|
103
|
+
- lib/liquid-rails/tags/paginate_tag.rb
|
104
|
+
- lib/liquid-rails/template_handler.rb
|
105
|
+
- lib/liquid-rails/version.rb
|
106
|
+
- liquid-rails.gemspec
|
107
|
+
- spec/dummy/README.rdoc
|
108
|
+
- spec/dummy/Rakefile
|
109
|
+
- spec/dummy/app/assets/images/.keep
|
110
|
+
- spec/dummy/app/assets/javascripts/application.js
|
111
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
112
|
+
- spec/dummy/app/controllers/application_controller.rb
|
113
|
+
- spec/dummy/app/controllers/concerns/.keep
|
114
|
+
- spec/dummy/app/controllers/home_controller.rb
|
115
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
116
|
+
- spec/dummy/app/helpers/application_helper.rb
|
117
|
+
- spec/dummy/app/mailers/.keep
|
118
|
+
- spec/dummy/app/models/.keep
|
119
|
+
- spec/dummy/app/models/concerns/.keep
|
120
|
+
- spec/dummy/app/views/home/_partial.liquid
|
121
|
+
- spec/dummy/app/views/home/index.liquid
|
122
|
+
- spec/dummy/app/views/home/index_partial.liquid
|
123
|
+
- spec/dummy/app/views/home/index_partial_with_full_path.liquid
|
124
|
+
- spec/dummy/app/views/home/index_with_filter.liquid
|
125
|
+
- spec/dummy/app/views/home/index_with_layout.liquid
|
126
|
+
- spec/dummy/app/views/layouts/application.liquid
|
127
|
+
- spec/dummy/app/views/pages/index_without_filter.liquid
|
128
|
+
- spec/dummy/app/views/shared/_partial.liquid
|
129
|
+
- spec/dummy/bin/bundle
|
130
|
+
- spec/dummy/bin/rails
|
131
|
+
- spec/dummy/bin/rake
|
132
|
+
- spec/dummy/config.ru
|
133
|
+
- spec/dummy/config/application.rb
|
134
|
+
- spec/dummy/config/boot.rb
|
135
|
+
- spec/dummy/config/environment.rb
|
136
|
+
- spec/dummy/config/environments/development.rb
|
137
|
+
- spec/dummy/config/environments/production.rb
|
138
|
+
- spec/dummy/config/environments/test.rb
|
139
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
140
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
141
|
+
- spec/dummy/config/initializers/inflections.rb
|
142
|
+
- spec/dummy/config/initializers/mime_types.rb
|
143
|
+
- spec/dummy/config/initializers/secret_token.rb
|
144
|
+
- spec/dummy/config/initializers/session_store.rb
|
145
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
146
|
+
- spec/dummy/config/locales/en.yml
|
147
|
+
- spec/dummy/config/locales/km.yml
|
148
|
+
- spec/dummy/config/routes.rb
|
149
|
+
- spec/dummy/lib/assets/.keep
|
150
|
+
- spec/dummy/log/.keep
|
151
|
+
- spec/dummy/public/404.html
|
152
|
+
- spec/dummy/public/422.html
|
153
|
+
- spec/dummy/public/500.html
|
154
|
+
- spec/dummy/public/favicon.ico
|
155
|
+
- spec/fixtures/poro.rb
|
156
|
+
- spec/lib/liquid-rails/drops/drop_spec.rb
|
157
|
+
- spec/lib/liquid-rails/filters/asset_tag_filter_spec.rb
|
158
|
+
- spec/lib/liquid-rails/filters/asset_url_filter_spec.rb
|
159
|
+
- spec/lib/liquid-rails/filters/google_static_map_url_filter_spec.rb
|
160
|
+
- spec/lib/liquid-rails/filters/misc_filter_spec.rb
|
161
|
+
- spec/lib/liquid-rails/filters/translate_filter_spec.rb
|
162
|
+
- spec/lib/liquid-rails/railtie_spec.rb
|
163
|
+
- spec/lib/liquid-rails/rspec/drop_matchers_spec.rb
|
164
|
+
- spec/lib/liquid-rails/tags/content_for_tag_spec.rb
|
165
|
+
- spec/lib/liquid-rails/tags/csrf_meta_tag_spec.rb
|
166
|
+
- spec/lib/liquid-rails/tags/google_analtyics_tag_spec.rb
|
167
|
+
- spec/lib/liquid-rails/tags/javascript_tag_spec.rb
|
168
|
+
- spec/lib/liquid-rails/tags/paginate_tag_spec.rb
|
169
|
+
- spec/lib/liquid-rails/template_handler_spec.rb
|
170
|
+
- spec/spec_helper.rb
|
171
|
+
- spec/support/delegate_matcher.rb
|
172
|
+
homepage: ''
|
173
|
+
licenses:
|
174
|
+
- MIT
|
175
|
+
metadata: {}
|
176
|
+
post_install_message:
|
177
|
+
rdoc_options: []
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: 2.0.0
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 1.8.11
|
190
|
+
requirements: []
|
191
|
+
rubyforge_project:
|
192
|
+
rubygems_version: 2.2.2
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: Renders liquid templates with layout and partial support
|
196
|
+
test_files:
|
197
|
+
- spec/dummy/README.rdoc
|
198
|
+
- spec/dummy/Rakefile
|
199
|
+
- spec/dummy/app/assets/images/.keep
|
200
|
+
- spec/dummy/app/assets/javascripts/application.js
|
201
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
202
|
+
- spec/dummy/app/controllers/application_controller.rb
|
203
|
+
- spec/dummy/app/controllers/concerns/.keep
|
204
|
+
- spec/dummy/app/controllers/home_controller.rb
|
205
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
206
|
+
- spec/dummy/app/helpers/application_helper.rb
|
207
|
+
- spec/dummy/app/mailers/.keep
|
208
|
+
- spec/dummy/app/models/.keep
|
209
|
+
- spec/dummy/app/models/concerns/.keep
|
210
|
+
- spec/dummy/app/views/home/_partial.liquid
|
211
|
+
- spec/dummy/app/views/home/index.liquid
|
212
|
+
- spec/dummy/app/views/home/index_partial.liquid
|
213
|
+
- spec/dummy/app/views/home/index_partial_with_full_path.liquid
|
214
|
+
- spec/dummy/app/views/home/index_with_filter.liquid
|
215
|
+
- spec/dummy/app/views/home/index_with_layout.liquid
|
216
|
+
- spec/dummy/app/views/layouts/application.liquid
|
217
|
+
- spec/dummy/app/views/pages/index_without_filter.liquid
|
218
|
+
- spec/dummy/app/views/shared/_partial.liquid
|
219
|
+
- spec/dummy/bin/bundle
|
220
|
+
- spec/dummy/bin/rails
|
221
|
+
- spec/dummy/bin/rake
|
222
|
+
- spec/dummy/config.ru
|
223
|
+
- spec/dummy/config/application.rb
|
224
|
+
- spec/dummy/config/boot.rb
|
225
|
+
- spec/dummy/config/environment.rb
|
226
|
+
- spec/dummy/config/environments/development.rb
|
227
|
+
- spec/dummy/config/environments/production.rb
|
228
|
+
- spec/dummy/config/environments/test.rb
|
229
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
230
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
231
|
+
- spec/dummy/config/initializers/inflections.rb
|
232
|
+
- spec/dummy/config/initializers/mime_types.rb
|
233
|
+
- spec/dummy/config/initializers/secret_token.rb
|
234
|
+
- spec/dummy/config/initializers/session_store.rb
|
235
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
236
|
+
- spec/dummy/config/locales/en.yml
|
237
|
+
- spec/dummy/config/locales/km.yml
|
238
|
+
- spec/dummy/config/routes.rb
|
239
|
+
- spec/dummy/lib/assets/.keep
|
240
|
+
- spec/dummy/log/.keep
|
241
|
+
- spec/dummy/public/404.html
|
242
|
+
- spec/dummy/public/422.html
|
243
|
+
- spec/dummy/public/500.html
|
244
|
+
- spec/dummy/public/favicon.ico
|
245
|
+
- spec/fixtures/poro.rb
|
246
|
+
- spec/lib/liquid-rails/drops/drop_spec.rb
|
247
|
+
- spec/lib/liquid-rails/filters/asset_tag_filter_spec.rb
|
248
|
+
- spec/lib/liquid-rails/filters/asset_url_filter_spec.rb
|
249
|
+
- spec/lib/liquid-rails/filters/google_static_map_url_filter_spec.rb
|
250
|
+
- spec/lib/liquid-rails/filters/misc_filter_spec.rb
|
251
|
+
- spec/lib/liquid-rails/filters/translate_filter_spec.rb
|
252
|
+
- spec/lib/liquid-rails/railtie_spec.rb
|
253
|
+
- spec/lib/liquid-rails/rspec/drop_matchers_spec.rb
|
254
|
+
- spec/lib/liquid-rails/tags/content_for_tag_spec.rb
|
255
|
+
- spec/lib/liquid-rails/tags/csrf_meta_tag_spec.rb
|
256
|
+
- spec/lib/liquid-rails/tags/google_analtyics_tag_spec.rb
|
257
|
+
- spec/lib/liquid-rails/tags/javascript_tag_spec.rb
|
258
|
+
- spec/lib/liquid-rails/tags/paginate_tag_spec.rb
|
259
|
+
- spec/lib/liquid-rails/template_handler_spec.rb
|
260
|
+
- spec/spec_helper.rb
|
261
|
+
- spec/support/delegate_matcher.rb
|