liquid-rails 0.1.4 → 0.2.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -8
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -1
- data/Rakefile +4 -3
- data/gemfiles/{rails_32.gemfile → rails_50.gemfile} +2 -2
- data/gemfiles/{rails_40.gemfile → rails_51.gemfile} +2 -1
- data/gemfiles/{rails_41.gemfile → rails_52.gemfile} +2 -1
- data/lib/liquid-rails.rb +1 -1
- data/lib/liquid-rails/file_system.rb +29 -4
- data/lib/liquid-rails/railtie.rb +1 -6
- data/lib/liquid-rails/rspec/drop_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/filter_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/tag_example_group.rb +2 -2
- data/lib/liquid-rails/rspec/view_controller_context.rb +4 -4
- data/lib/liquid-rails/tags/paginate_tag.rb +1 -1
- data/lib/liquid-rails/template_handler.rb +15 -5
- data/lib/liquid-rails/version.rb +1 -1
- data/liquid-rails.gemspec +3 -3
- data/spec/dummy/Rakefile +2 -2
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/controllers/home_controller.rb +8 -4
- data/spec/dummy/app/controllers/pages_controller.rb +2 -2
- data/spec/dummy/app/views/foospace/bar/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/app/views/foospace/bar/{index_partial.liquid → index_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{_html_liquid_partial.liquid → _html_liquid_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{erb_with_html_liquid_partial.erb → erb_with_html_liquid_partial.html.erb} +0 -0
- data/spec/dummy/app/views/home/{index.liquid → index.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_partial.liquid → index_partial.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_partial_with_full_path.liquid → index_partial_with_full_path.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_with_filter.liquid → index_with_filter.html.liquid} +0 -0
- data/spec/dummy/app/views/home/{index_with_layout.liquid → index_with_layout.html.liquid} +0 -0
- data/spec/dummy/app/views/home/index_with_rss.rss.liquid +17 -0
- data/spec/dummy/app/views/layouts/{application.liquid → application.html.liquid} +0 -0
- data/spec/dummy/app/views/pages/{index_without_filter.liquid → index_without_filter.html.liquid} +0 -0
- data/spec/dummy/app/views/shared/{_partial.liquid → _partial.html.liquid} +0 -0
- data/spec/dummy/config.ru +2 -1
- data/spec/dummy/config/application.rb +11 -11
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +34 -5
- data/spec/dummy/config/environments/production.rb +37 -26
- data/spec/dummy/config/environments/test.rb +6 -3
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/new_framework_defaults.rb +30 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/spec/dummy/config/puma.rb +56 -0
- data/spec/dummy/config/routes.rb +4 -2
- data/spec/dummy/config/secrets.yml +31 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +20 -11
- data/spec/dummy/public/422.html +20 -11
- data/spec/dummy/public/500.html +19 -10
- data/spec/dummy/public/robots.txt +1 -0
- data/spec/dummy/vendor/theme/foospace/bar/_partial.html.liquid +1 -0
- data/spec/dummy/vendor/theme/home/_partial.html.liquid +1 -0
- data/spec/dummy/vendor/theme/shared/_partial.html.liquid +1 -0
- data/spec/lib/liquid-rails/filters/misc_filter_spec.rb +4 -4
- data/spec/lib/liquid-rails/filters/translate_filter_spec.rb +5 -5
- data/spec/lib/liquid-rails/tags/paginate_tag_spec.rb +5 -7
- data/spec/lib/liquid-rails/template_handler_spec.rb +81 -33
- metadata +68 -45
- data/gemfiles/rails_42.gemfile +0 -12
- data/spec/dummy/config/initializers/secret_token.rb +0 -17
data/spec/dummy/public/422.html
CHANGED
@@ -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:
|
15
|
-
|
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
|
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
|
-
|
34
|
-
|
35
|
-
|
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
|
-
<
|
54
|
-
|
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>
|
data/spec/dummy/public/500.html
CHANGED
@@ -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:
|
15
|
-
|
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
|
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
|
-
|
34
|
-
|
35
|
-
|
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
|
-
<
|
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>
|
@@ -0,0 +1 @@
|
|
1
|
+
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
@@ -0,0 +1 @@
|
|
1
|
+
Vendor Theme Bar Partial
|
@@ -0,0 +1 @@
|
|
1
|
+
Vendor Theme Home Partial
|
@@ -0,0 +1 @@
|
|
1
|
+
Vendor Theme Shared Partial
|
@@ -8,19 +8,19 @@ module Liquid
|
|
8
8
|
context '#index' do
|
9
9
|
it 'returns value at the specified index' do
|
10
10
|
context['array'] = [1, 2, 3]
|
11
|
-
expect(::Liquid::Variable.new("array | index: 0").render(context)).to eq(1)
|
11
|
+
expect(::Liquid::Variable.new("array | index: 0", ParseContext.new).render(context)).to eq(1)
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'returns nil when outside range' do
|
15
15
|
context['array'] = [1, 2, 3]
|
16
|
-
expect(::Liquid::Variable.new("array | index: 5").render(context)).to eq(nil)
|
16
|
+
expect(::Liquid::Variable.new("array | index: 5", ParseContext.new).render(context)).to eq(nil)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
it '#jsonify' do
|
21
21
|
context['listing'] = { name: 'Listing A' }
|
22
|
-
expect(::Liquid::Variable.new("listing | jsonify").render(context)).to eq(%|{"name":"Listing A"}|)
|
22
|
+
expect(::Liquid::Variable.new("listing | jsonify", ParseContext.new).render(context)).to eq(%|{"name":"Listing A"}|)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|
@@ -10,20 +10,20 @@ module Liquid
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it 'translate with default locale' do
|
13
|
-
expect(::Liquid::Variable.new("'welcome' | translate").render(context)).to eq('Welcome everyone!')
|
13
|
+
expect(::Liquid::Variable.new("'welcome' | translate", ParseContext.new).render(context)).to eq('Welcome everyone!')
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'translate with specified locale' do
|
17
|
-
expect(::Liquid::Variable.new("'welcome' | translate: locale: 'km'").render(context)).to eq('សូមស្វាគមន៍')
|
17
|
+
expect(::Liquid::Variable.new("'welcome' | translate: locale: 'km'", ParseContext.new).render(context)).to eq('សូមស្វាគមន៍')
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'translate with scope' do
|
21
|
-
expect(::Liquid::Variable.new("'home' | translate: locale: 'km', scope: 'links'").render(context)).to eq('ទំព័រដើម')
|
21
|
+
expect(::Liquid::Variable.new("'home' | translate: locale: 'km', scope: 'links'", ParseContext.new).render(context)).to eq('ទំព័រដើម')
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'translate with interpolation' do
|
25
|
-
expect(::Liquid::Variable.new("'welcome_name' | translate: locale: 'en', name: 'Jeremy'").render(context)).to eq('Welcome, Jeremy')
|
25
|
+
expect(::Liquid::Variable.new("'welcome_name' | translate: locale: 'en', name: 'Jeremy'", ParseContext.new).render(context)).to eq('Welcome, Jeremy')
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
@@ -57,8 +57,7 @@ module Liquid
|
|
57
57
|
end
|
58
58
|
|
59
59
|
context 'second_page' do
|
60
|
-
before(:
|
61
|
-
after(:all) { controller.params[:page] = nil }
|
60
|
+
before(:each) { controller.params[:page] = 2 }
|
62
61
|
|
63
62
|
it '#current_page' do
|
64
63
|
expect_template_result("{% paginate post.comments by 2 %}{{ paginate.current_page }}{% endpaginate %}", '2', { 'post' => @post_drop })
|
@@ -74,8 +73,7 @@ module Liquid
|
|
74
73
|
end
|
75
74
|
|
76
75
|
context 'last_page' do
|
77
|
-
before(:
|
78
|
-
after(:all) { controller.params[:page] = nil }
|
76
|
+
before(:each) { controller.params[:page] = 3 }
|
79
77
|
|
80
78
|
it 'returns the page size' do
|
81
79
|
expect_template_result("{% paginate post.comments by 2 %}{{ paginate.collection | size }}{% endpaginate %}", '1', { 'post' => @post_drop })
|
@@ -119,7 +117,7 @@ module Liquid
|
|
119
117
|
end
|
120
118
|
|
121
119
|
context 'default_pagination' do
|
122
|
-
after(:
|
120
|
+
after(:each) { controller.params[:page] = nil }
|
123
121
|
|
124
122
|
it 'is in the first_page' do
|
125
123
|
controller.params[:page] = 1
|
@@ -138,7 +136,7 @@ module Liquid
|
|
138
136
|
end
|
139
137
|
|
140
138
|
context 'bootstrap_pagination' do
|
141
|
-
after(:
|
139
|
+
after(:each) { controller.params[:page] = nil }
|
142
140
|
|
143
141
|
it 'is in the first_page' do
|
144
142
|
controller.params[:page] = 1
|
@@ -157,4 +155,4 @@ module Liquid
|
|
157
155
|
end
|
158
156
|
end
|
159
157
|
end
|
160
|
-
end
|
158
|
+
end
|
@@ -1,67 +1,115 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'Request', type: :feature do
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
describe 'layout' do
|
5
|
+
context 'render without layout' do
|
6
|
+
it 'renders with liquid template' do
|
7
|
+
visit '/'
|
7
8
|
|
8
|
-
|
9
|
+
expect(page.body).to eq('Liquid on Rails')
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'sets content_type as html by default' do
|
13
|
+
visit '/'
|
14
|
+
|
15
|
+
expect(page.response_headers['Content-Type']).to eq('text/html; charset=utf-8')
|
16
|
+
end
|
9
17
|
end
|
10
18
|
|
11
|
-
|
12
|
-
|
19
|
+
context 'render with layout' do
|
20
|
+
it 'renders with layout' do
|
21
|
+
visit '/index_with_layout'
|
13
22
|
|
14
|
-
|
23
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails")
|
24
|
+
end
|
15
25
|
end
|
16
26
|
end
|
17
27
|
|
18
|
-
|
19
|
-
|
20
|
-
|
28
|
+
describe 'partial' do
|
29
|
+
context 'render with partial' do
|
30
|
+
it 'no full path for the current controller' do
|
31
|
+
visit '/index_partial'
|
32
|
+
|
33
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial")
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'full path' do
|
37
|
+
visit '/index_partial_with_full_path'
|
38
|
+
|
39
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nHome Partial\nShared Partial")
|
40
|
+
end
|
21
41
|
|
22
|
-
|
42
|
+
it 'respects namespace of original template for partials path' do
|
43
|
+
visit '/foospace/bar/index_partial'
|
44
|
+
|
45
|
+
expect(page.body.strip).to eq("Foospace::BarController\n\nBar Partial")
|
46
|
+
end
|
23
47
|
end
|
24
48
|
end
|
25
49
|
|
26
|
-
|
27
|
-
|
28
|
-
|
50
|
+
describe 'filter' do
|
51
|
+
context 'render with filter' do
|
52
|
+
it 'renders with helper' do
|
53
|
+
visit '/index_with_filter'
|
54
|
+
|
55
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\nThis...")
|
56
|
+
end
|
29
57
|
|
30
|
-
|
58
|
+
it 'renders with helper' do
|
59
|
+
visit '/index_without_filter'
|
60
|
+
|
61
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\nThis is a long section of text")
|
62
|
+
end
|
31
63
|
end
|
64
|
+
end
|
32
65
|
|
33
|
-
|
34
|
-
|
66
|
+
describe 'erb' do
|
67
|
+
context 'render html within an erb template' do
|
68
|
+
it 'does not escape the html' do
|
69
|
+
visit '/erb_with_html_liquid_partial'
|
35
70
|
|
36
|
-
|
71
|
+
expect(page.body.strip).to eq("Application Layout\n<p>Partial Content</p>")
|
72
|
+
end
|
37
73
|
end
|
74
|
+
end
|
38
75
|
|
39
|
-
|
40
|
-
|
76
|
+
describe 'content_type' do
|
77
|
+
context 'render RSS with an ERB template' do
|
78
|
+
it 'returns an rss content type' do
|
79
|
+
visit '/index_with_rss.rss'
|
41
80
|
|
42
|
-
|
81
|
+
expect(page.response_headers['Content-Type']).to eq('application/rss+xml; charset=utf-8')
|
82
|
+
end
|
43
83
|
end
|
44
84
|
end
|
45
85
|
|
46
|
-
|
47
|
-
|
48
|
-
|
86
|
+
describe 'custom actionview resolver' do
|
87
|
+
before do
|
88
|
+
ApplicationController.class_eval do
|
89
|
+
before_action :prepend_view_path_if_param_present
|
49
90
|
|
50
|
-
|
91
|
+
def prepend_view_path_if_param_present
|
92
|
+
prepend_view_path Rails.root.join('vendor/theme') if params[:prepend_view_path]
|
93
|
+
end
|
94
|
+
end
|
51
95
|
end
|
52
96
|
|
53
|
-
it '
|
54
|
-
visit '/
|
97
|
+
it 'no full path for the current controller' do
|
98
|
+
visit '/index_partial?prepend_view_path=true'
|
55
99
|
|
56
|
-
expect(page.body).to eq("Application Layout\nLiquid on Rails\
|
100
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nVendor Theme Home Partial\n\nVendor Theme Shared Partial\n")
|
57
101
|
end
|
58
|
-
end
|
59
102
|
|
60
|
-
|
61
|
-
|
62
|
-
|
103
|
+
it 'full path' do
|
104
|
+
visit '/index_partial_with_full_path?prepend_view_path=true'
|
105
|
+
|
106
|
+
expect(page.body).to eq("Application Layout\nLiquid on Rails\n\nVendor Theme Home Partial\n\nVendor Theme Shared Partial\n")
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'respects namespace of original template for partials path' do
|
110
|
+
visit '/foospace/bar/index_partial?prepend_view_path=true'
|
63
111
|
|
64
|
-
expect(page.body.strip).to eq("
|
112
|
+
expect(page.body.strip).to eq("Foospace::BarController\n\nVendor Theme Bar Partial")
|
65
113
|
end
|
66
114
|
end
|
67
115
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chamnap Chhorn
|
@@ -16,48 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
19
|
+
version: 5.0.6
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
26
|
+
version: 5.0.6
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: liquid
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
33
|
+
version: 4.0.0
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: 4.0.0
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: kaminari
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 1.1.1
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: 1.1.1
|
61
55
|
description: It allows you to render .liquid templates with layout and partial support.
|
62
56
|
It also provides filters, tags, drops class to be used inside your liquid template.
|
63
57
|
email:
|
@@ -78,10 +72,9 @@ files:
|
|
78
72
|
- LICENSE.txt
|
79
73
|
- README.md
|
80
74
|
- Rakefile
|
81
|
-
- gemfiles/
|
82
|
-
- gemfiles/
|
83
|
-
- gemfiles/
|
84
|
-
- gemfiles/rails_42.gemfile
|
75
|
+
- gemfiles/rails_50.gemfile
|
76
|
+
- gemfiles/rails_51.gemfile
|
77
|
+
- gemfiles/rails_52.gemfile
|
85
78
|
- lib/liquid-rails.rb
|
86
79
|
- lib/liquid-rails/drops/collection_drop.rb
|
87
80
|
- lib/liquid-rails/drops/drop.rb
|
@@ -115,6 +108,7 @@ files:
|
|
115
108
|
- liquid-rails.gemspec
|
116
109
|
- spec/dummy/README.rdoc
|
117
110
|
- spec/dummy/Rakefile
|
111
|
+
- spec/dummy/app/assets/config/manifest.js
|
118
112
|
- spec/dummy/app/assets/images/.keep
|
119
113
|
- spec/dummy/app/assets/javascripts/application.js
|
120
114
|
- spec/dummy/app/assets/stylesheets/application.css
|
@@ -127,45 +121,59 @@ files:
|
|
127
121
|
- spec/dummy/app/mailers/.keep
|
128
122
|
- spec/dummy/app/models/.keep
|
129
123
|
- spec/dummy/app/models/concerns/.keep
|
130
|
-
- spec/dummy/app/views/foospace/bar/_partial.liquid
|
131
|
-
- spec/dummy/app/views/foospace/bar/index_partial.liquid
|
132
|
-
- spec/dummy/app/views/home/_html_liquid_partial.liquid
|
133
|
-
- spec/dummy/app/views/home/_partial.liquid
|
134
|
-
- spec/dummy/app/views/home/erb_with_html_liquid_partial.erb
|
135
|
-
- spec/dummy/app/views/home/index.liquid
|
136
|
-
- spec/dummy/app/views/home/index_partial.liquid
|
137
|
-
- spec/dummy/app/views/home/index_partial_with_full_path.liquid
|
138
|
-
- spec/dummy/app/views/home/index_with_filter.liquid
|
139
|
-
- spec/dummy/app/views/home/index_with_layout.liquid
|
140
|
-
- spec/dummy/app/views/
|
141
|
-
- spec/dummy/app/views/
|
142
|
-
- spec/dummy/app/views/
|
124
|
+
- spec/dummy/app/views/foospace/bar/_partial.html.liquid
|
125
|
+
- spec/dummy/app/views/foospace/bar/index_partial.html.liquid
|
126
|
+
- spec/dummy/app/views/home/_html_liquid_partial.html.liquid
|
127
|
+
- spec/dummy/app/views/home/_partial.html.liquid
|
128
|
+
- spec/dummy/app/views/home/erb_with_html_liquid_partial.html.erb
|
129
|
+
- spec/dummy/app/views/home/index.html.liquid
|
130
|
+
- spec/dummy/app/views/home/index_partial.html.liquid
|
131
|
+
- spec/dummy/app/views/home/index_partial_with_full_path.html.liquid
|
132
|
+
- spec/dummy/app/views/home/index_with_filter.html.liquid
|
133
|
+
- spec/dummy/app/views/home/index_with_layout.html.liquid
|
134
|
+
- spec/dummy/app/views/home/index_with_rss.rss.liquid
|
135
|
+
- spec/dummy/app/views/layouts/application.html.liquid
|
136
|
+
- spec/dummy/app/views/pages/index_without_filter.html.liquid
|
137
|
+
- spec/dummy/app/views/shared/_partial.html.liquid
|
143
138
|
- spec/dummy/bin/bundle
|
144
139
|
- spec/dummy/bin/rails
|
145
140
|
- spec/dummy/bin/rake
|
146
141
|
- spec/dummy/config.ru
|
147
142
|
- spec/dummy/config/application.rb
|
148
143
|
- spec/dummy/config/boot.rb
|
144
|
+
- spec/dummy/config/database.yml
|
149
145
|
- spec/dummy/config/environment.rb
|
150
146
|
- spec/dummy/config/environments/development.rb
|
151
147
|
- spec/dummy/config/environments/production.rb
|
152
148
|
- spec/dummy/config/environments/test.rb
|
149
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
150
|
+
- spec/dummy/config/initializers/assets.rb
|
153
151
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
152
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
154
153
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
155
154
|
- spec/dummy/config/initializers/inflections.rb
|
156
155
|
- spec/dummy/config/initializers/mime_types.rb
|
157
|
-
- spec/dummy/config/initializers/
|
156
|
+
- spec/dummy/config/initializers/new_framework_defaults.rb
|
158
157
|
- spec/dummy/config/initializers/session_store.rb
|
159
158
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
160
159
|
- spec/dummy/config/locales/en.yml
|
161
160
|
- spec/dummy/config/locales/km.yml
|
161
|
+
- spec/dummy/config/puma.rb
|
162
162
|
- spec/dummy/config/routes.rb
|
163
|
+
- spec/dummy/config/secrets.yml
|
164
|
+
- spec/dummy/config/spring.rb
|
165
|
+
- spec/dummy/db/test.sqlite3
|
163
166
|
- spec/dummy/lib/assets/.keep
|
164
167
|
- spec/dummy/log/.keep
|
168
|
+
- spec/dummy/package.json
|
165
169
|
- spec/dummy/public/404.html
|
166
170
|
- spec/dummy/public/422.html
|
167
171
|
- spec/dummy/public/500.html
|
168
172
|
- spec/dummy/public/favicon.ico
|
173
|
+
- spec/dummy/public/robots.txt
|
174
|
+
- spec/dummy/vendor/theme/foospace/bar/_partial.html.liquid
|
175
|
+
- spec/dummy/vendor/theme/home/_partial.html.liquid
|
176
|
+
- spec/dummy/vendor/theme/shared/_partial.html.liquid
|
169
177
|
- spec/fixtures/poro.rb
|
170
178
|
- spec/lib/liquid-rails/drops/drop_spec.rb
|
171
179
|
- spec/lib/liquid-rails/filters/asset_tag_filter_spec.rb
|
@@ -214,6 +222,7 @@ summary: Renders liquid templates with layout and partial support
|
|
214
222
|
test_files:
|
215
223
|
- spec/dummy/README.rdoc
|
216
224
|
- spec/dummy/Rakefile
|
225
|
+
- spec/dummy/app/assets/config/manifest.js
|
217
226
|
- spec/dummy/app/assets/images/.keep
|
218
227
|
- spec/dummy/app/assets/javascripts/application.js
|
219
228
|
- spec/dummy/app/assets/stylesheets/application.css
|
@@ -226,45 +235,59 @@ test_files:
|
|
226
235
|
- spec/dummy/app/mailers/.keep
|
227
236
|
- spec/dummy/app/models/.keep
|
228
237
|
- spec/dummy/app/models/concerns/.keep
|
229
|
-
- spec/dummy/app/views/foospace/bar/_partial.liquid
|
230
|
-
- spec/dummy/app/views/foospace/bar/index_partial.liquid
|
231
|
-
- spec/dummy/app/views/home/_html_liquid_partial.liquid
|
232
|
-
- spec/dummy/app/views/home/_partial.liquid
|
233
|
-
- spec/dummy/app/views/home/erb_with_html_liquid_partial.erb
|
234
|
-
- spec/dummy/app/views/home/index.liquid
|
235
|
-
- spec/dummy/app/views/home/index_partial.liquid
|
236
|
-
- spec/dummy/app/views/home/index_partial_with_full_path.liquid
|
237
|
-
- spec/dummy/app/views/home/index_with_filter.liquid
|
238
|
-
- spec/dummy/app/views/home/index_with_layout.liquid
|
239
|
-
- spec/dummy/app/views/
|
240
|
-
- spec/dummy/app/views/
|
241
|
-
- spec/dummy/app/views/
|
238
|
+
- spec/dummy/app/views/foospace/bar/_partial.html.liquid
|
239
|
+
- spec/dummy/app/views/foospace/bar/index_partial.html.liquid
|
240
|
+
- spec/dummy/app/views/home/_html_liquid_partial.html.liquid
|
241
|
+
- spec/dummy/app/views/home/_partial.html.liquid
|
242
|
+
- spec/dummy/app/views/home/erb_with_html_liquid_partial.html.erb
|
243
|
+
- spec/dummy/app/views/home/index.html.liquid
|
244
|
+
- spec/dummy/app/views/home/index_partial.html.liquid
|
245
|
+
- spec/dummy/app/views/home/index_partial_with_full_path.html.liquid
|
246
|
+
- spec/dummy/app/views/home/index_with_filter.html.liquid
|
247
|
+
- spec/dummy/app/views/home/index_with_layout.html.liquid
|
248
|
+
- spec/dummy/app/views/home/index_with_rss.rss.liquid
|
249
|
+
- spec/dummy/app/views/layouts/application.html.liquid
|
250
|
+
- spec/dummy/app/views/pages/index_without_filter.html.liquid
|
251
|
+
- spec/dummy/app/views/shared/_partial.html.liquid
|
242
252
|
- spec/dummy/bin/bundle
|
243
253
|
- spec/dummy/bin/rails
|
244
254
|
- spec/dummy/bin/rake
|
245
255
|
- spec/dummy/config.ru
|
246
256
|
- spec/dummy/config/application.rb
|
247
257
|
- spec/dummy/config/boot.rb
|
258
|
+
- spec/dummy/config/database.yml
|
248
259
|
- spec/dummy/config/environment.rb
|
249
260
|
- spec/dummy/config/environments/development.rb
|
250
261
|
- spec/dummy/config/environments/production.rb
|
251
262
|
- spec/dummy/config/environments/test.rb
|
263
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
264
|
+
- spec/dummy/config/initializers/assets.rb
|
252
265
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
266
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
253
267
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
254
268
|
- spec/dummy/config/initializers/inflections.rb
|
255
269
|
- spec/dummy/config/initializers/mime_types.rb
|
256
|
-
- spec/dummy/config/initializers/
|
270
|
+
- spec/dummy/config/initializers/new_framework_defaults.rb
|
257
271
|
- spec/dummy/config/initializers/session_store.rb
|
258
272
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
259
273
|
- spec/dummy/config/locales/en.yml
|
260
274
|
- spec/dummy/config/locales/km.yml
|
275
|
+
- spec/dummy/config/puma.rb
|
261
276
|
- spec/dummy/config/routes.rb
|
277
|
+
- spec/dummy/config/secrets.yml
|
278
|
+
- spec/dummy/config/spring.rb
|
279
|
+
- spec/dummy/db/test.sqlite3
|
262
280
|
- spec/dummy/lib/assets/.keep
|
263
281
|
- spec/dummy/log/.keep
|
282
|
+
- spec/dummy/package.json
|
264
283
|
- spec/dummy/public/404.html
|
265
284
|
- spec/dummy/public/422.html
|
266
285
|
- spec/dummy/public/500.html
|
267
286
|
- spec/dummy/public/favicon.ico
|
287
|
+
- spec/dummy/public/robots.txt
|
288
|
+
- spec/dummy/vendor/theme/foospace/bar/_partial.html.liquid
|
289
|
+
- spec/dummy/vendor/theme/home/_partial.html.liquid
|
290
|
+
- spec/dummy/vendor/theme/shared/_partial.html.liquid
|
268
291
|
- spec/fixtures/poro.rb
|
269
292
|
- spec/lib/liquid-rails/drops/drop_spec.rb
|
270
293
|
- spec/lib/liquid-rails/filters/asset_tag_filter_spec.rb
|