liquidize 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +85 -0
- data/Rakefile +7 -0
- data/lib/liquidize.rb +6 -0
- data/lib/liquidize/helper.rb +14 -0
- data/lib/liquidize/model.rb +100 -0
- data/lib/liquidize/version.rb +3 -0
- data/liquidize.gemspec +30 -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 +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/non_active_record_page.rb +5 -0
- data/spec/dummy/app/models/page.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -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 +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +82 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -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 +4 -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 +23 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20140904151853_create_pages.rb +8 -0
- data/spec/dummy/db/schema.rb +21 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/lib/liquidize/helper_spec.rb +12 -0
- data/spec/lib/liquidize/model_spec.rb +134 -0
- data/spec/lib/liquidize_spec.rb +7 -0
- data/spec/spec_helper.rb +84 -0
- metadata +236 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
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>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
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>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Liquidize::Helper do
|
4
|
+
describe '.recursive_stringify_keys' do
|
5
|
+
let(:original) { { first: { a: 'a', b: 'b', c: 3}, second: :qwerty, third: [] } }
|
6
|
+
let(:result) { { 'first' => { 'a' => 'a', 'b' => 'b', 'c' => 3}, 'second' => :qwerty, 'third' => [] } }
|
7
|
+
|
8
|
+
it 'converts all keys to strings' do
|
9
|
+
expect(Liquidize::Helper.recursive_stringify_keys(original)).to eq(result)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Helper method that converts string to the dumped representation
|
4
|
+
# @param value [String] original string
|
5
|
+
# @return [String] dump representation
|
6
|
+
def string_to_dump(value)
|
7
|
+
parsed_value = Liquid::Template.parse(value)
|
8
|
+
Base64.strict_encode64(Marshal.dump(parsed_value))
|
9
|
+
end
|
10
|
+
|
11
|
+
RSpec.describe Liquidize::Model do
|
12
|
+
describe 'include' do
|
13
|
+
shared_examples 'both' do
|
14
|
+
it 'adds class methods' do
|
15
|
+
expect(klass).to respond_to(:liquidize )
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with ActiveRecord' do
|
20
|
+
let(:klass) { Page }
|
21
|
+
it_behaves_like 'both'
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'with plain Ruby' do
|
25
|
+
let(:klass) { NonActiveRecordPage }
|
26
|
+
it_behaves_like 'both'
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe '.liquidize' do
|
31
|
+
shared_examples 'both' do
|
32
|
+
it 'defines new instance methods' do
|
33
|
+
expect(page).to respond_to(:liquid_body_template)
|
34
|
+
expect(page).to respond_to(:parse_liquid_body!)
|
35
|
+
expect(page).to respond_to(:render_body)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'with ActiveRecord' do
|
40
|
+
let(:page) { Page.new }
|
41
|
+
it_behaves_like 'both'
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'with plain Ruby' do
|
45
|
+
let(:page) { NonActiveRecordPage.new }
|
46
|
+
it_behaves_like 'both'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe '#render_*' do
|
51
|
+
shared_examples 'both' do
|
52
|
+
it 'renders valid template' do
|
53
|
+
page.body = 'Hello, {{username}}!'
|
54
|
+
expect(page.render_body({ username: 'Alex' })).to eq('Hello, Alex!')
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'with ActiveRecord' do
|
59
|
+
let(:page) { Page.new }
|
60
|
+
it_behaves_like 'both'
|
61
|
+
end
|
62
|
+
|
63
|
+
context 'with plain Ruby' do
|
64
|
+
let(:page) { NonActiveRecordPage.new }
|
65
|
+
it_behaves_like 'both'
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe 'setter' do
|
70
|
+
let(:valid_body) { "Hi, {{username}}" }
|
71
|
+
let(:invalid_body) { "Hi, {{username" }
|
72
|
+
let(:syntax_error_message) { "Variable '{{' was not properly terminated with regexp: /\\}\\}/ " }
|
73
|
+
|
74
|
+
shared_examples 'both' do
|
75
|
+
it 'still works as default setter' do
|
76
|
+
expect{ page.body = valid_body }.to change(page, :body).from(nil).to(valid_body)
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'parses new value' do
|
80
|
+
expect(page).to receive(:parse_liquid_body!)
|
81
|
+
page.body = valid_body
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'does not set @*_syntax_error instance variable with valid body' do
|
85
|
+
page.instance_variable_set(:@body_syntax_error, nil) # prevent warning
|
86
|
+
expect{ page.body = valid_body }.not_to change{ page.instance_variable_get(:@body_syntax_error) }
|
87
|
+
end
|
88
|
+
|
89
|
+
it 'sets @*_syntax_error instance variable with invalid body' do
|
90
|
+
page.instance_variable_set(:@body_syntax_error, nil) # prevent warning
|
91
|
+
expect{ page.body = invalid_body }.to change{ page.instance_variable_get(:@body_syntax_error) }.from(nil).to(syntax_error_message)
|
92
|
+
end
|
93
|
+
|
94
|
+
it 'resets syntax error when valid value is passed' do
|
95
|
+
page.instance_variable_set(:@body_syntax_error, nil) # prevent warning
|
96
|
+
expect{ page.body = invalid_body }.to change{ page.instance_variable_get(:@body_syntax_error) }.from(nil).to(syntax_error_message)
|
97
|
+
expect{ page.body = valid_body }.to change{ page.instance_variable_get(:@body_syntax_error) }.from(syntax_error_message).to(nil)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
context 'with ActiveRecord' do
|
102
|
+
let(:page) { Page.new }
|
103
|
+
it_behaves_like 'both'
|
104
|
+
|
105
|
+
it 'sets liquid_body attribute' do
|
106
|
+
expect { page.body = valid_body }.to change(page, :liquid_body).from(nil).to(string_to_dump(valid_body))
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'syntaxically correct values does not make record invalid' do
|
110
|
+
page.body = valid_body
|
111
|
+
expect(page).to be_valid
|
112
|
+
end
|
113
|
+
|
114
|
+
it 'value with syntax error makes record invalid' do
|
115
|
+
page.body = invalid_body
|
116
|
+
expect(page).not_to be_valid
|
117
|
+
expect(page.errors.messages).to eq({body: [syntax_error_message]})
|
118
|
+
end
|
119
|
+
|
120
|
+
it 'does not parse body for the second time if it was already parsed and saved' do
|
121
|
+
page = Page.create(body: valid_body)
|
122
|
+
page_from_db = Page.find(page.id)
|
123
|
+
expect(page_from_db).not_to receive(:parse_liquid_body!)
|
124
|
+
render = page_from_db.render_body({ username: 'Alex' })
|
125
|
+
expect(render).to eq('Hi, Alex')
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
context 'with plain Ruby' do
|
130
|
+
let(:page) { NonActiveRecordPage.new }
|
131
|
+
it_behaves_like 'both'
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
require 'liquidize'
|
6
|
+
|
7
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
8
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
9
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
10
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
11
|
+
#
|
12
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
13
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
14
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
15
|
+
# individual file that may not need all of that loaded. Instead, make a
|
16
|
+
# separate helper file that requires this one and then use it only in the specs
|
17
|
+
# that actually need it.
|
18
|
+
#
|
19
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
20
|
+
# users commonly want.
|
21
|
+
#
|
22
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
23
|
+
RSpec.configure do |config|
|
24
|
+
# The settings below are suggested to provide a good initial experience
|
25
|
+
# with RSpec, but feel free to customize to your heart's content.
|
26
|
+
|
27
|
+
# These two settings work together to allow you to limit a spec run
|
28
|
+
# to individual examples or groups you care about by tagging them with
|
29
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
30
|
+
# get run.
|
31
|
+
config.filter_run :focus
|
32
|
+
config.run_all_when_everything_filtered = true
|
33
|
+
|
34
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
35
|
+
# file, and it's useful to allow more verbose output when running an
|
36
|
+
# individual spec file.
|
37
|
+
if config.files_to_run.one?
|
38
|
+
# Use the documentation formatter for detailed output,
|
39
|
+
# unless a formatter has already been configured
|
40
|
+
# (e.g. via a command-line flag).
|
41
|
+
config.default_formatter = 'doc'
|
42
|
+
end
|
43
|
+
|
44
|
+
# Print the 10 slowest examples and example groups at the
|
45
|
+
# end of the spec run, to help surface which specs are running
|
46
|
+
# particularly slow.
|
47
|
+
config.profile_examples = 10
|
48
|
+
|
49
|
+
# Run specs in random order to surface order dependencies. If you find an
|
50
|
+
# order dependency and want to debug it, you can fix the order by providing
|
51
|
+
# the seed, which is printed after each run.
|
52
|
+
# --seed 1234
|
53
|
+
config.order = :random
|
54
|
+
|
55
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
56
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
57
|
+
# test failures related to randomization by passing the same `--seed` value
|
58
|
+
# as the one that triggered the failure.
|
59
|
+
Kernel.srand config.seed
|
60
|
+
|
61
|
+
# rspec-expectations config goes here. You can use an alternate
|
62
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
63
|
+
# assertions if you prefer.
|
64
|
+
config.expect_with :rspec do |expectations|
|
65
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
66
|
+
# For more details, see:
|
67
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
68
|
+
expectations.syntax = :expect
|
69
|
+
end
|
70
|
+
|
71
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
72
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
73
|
+
config.mock_with :rspec do |mocks|
|
74
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
75
|
+
# For more details, see:
|
76
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
77
|
+
mocks.syntax = :expect
|
78
|
+
|
79
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
80
|
+
# a real object. This is generally recommended.
|
81
|
+
mocks.verify_partial_doubles = true
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,236 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: liquidize
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexander Borovykh
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: liquid
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Ruby library that adds Liquid template language support to your project.
|
98
|
+
email:
|
99
|
+
- immaculate.pine@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".ruby-gemset"
|
107
|
+
- ".ruby-version"
|
108
|
+
- ".travis.yml"
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- lib/liquidize.rb
|
114
|
+
- lib/liquidize/helper.rb
|
115
|
+
- lib/liquidize/model.rb
|
116
|
+
- lib/liquidize/version.rb
|
117
|
+
- liquidize.gemspec
|
118
|
+
- spec/dummy/README.rdoc
|
119
|
+
- spec/dummy/Rakefile
|
120
|
+
- spec/dummy/app/assets/images/.keep
|
121
|
+
- spec/dummy/app/assets/javascripts/application.js
|
122
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
123
|
+
- spec/dummy/app/controllers/application_controller.rb
|
124
|
+
- spec/dummy/app/controllers/concerns/.keep
|
125
|
+
- spec/dummy/app/helpers/application_helper.rb
|
126
|
+
- spec/dummy/app/mailers/.keep
|
127
|
+
- spec/dummy/app/models/concerns/.keep
|
128
|
+
- spec/dummy/app/models/non_active_record_page.rb
|
129
|
+
- spec/dummy/app/models/page.rb
|
130
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
131
|
+
- spec/dummy/bin/bundle
|
132
|
+
- spec/dummy/bin/rails
|
133
|
+
- spec/dummy/bin/rake
|
134
|
+
- spec/dummy/config.ru
|
135
|
+
- spec/dummy/config/application.rb
|
136
|
+
- spec/dummy/config/boot.rb
|
137
|
+
- spec/dummy/config/database.yml
|
138
|
+
- spec/dummy/config/environment.rb
|
139
|
+
- spec/dummy/config/environments/development.rb
|
140
|
+
- spec/dummy/config/environments/production.rb
|
141
|
+
- spec/dummy/config/environments/test.rb
|
142
|
+
- spec/dummy/config/initializers/assets.rb
|
143
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
144
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
145
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
146
|
+
- spec/dummy/config/initializers/inflections.rb
|
147
|
+
- spec/dummy/config/initializers/mime_types.rb
|
148
|
+
- spec/dummy/config/initializers/session_store.rb
|
149
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
150
|
+
- spec/dummy/config/locales/en.yml
|
151
|
+
- spec/dummy/config/routes.rb
|
152
|
+
- spec/dummy/config/secrets.yml
|
153
|
+
- spec/dummy/db/migrate/20140904151853_create_pages.rb
|
154
|
+
- spec/dummy/db/schema.rb
|
155
|
+
- spec/dummy/lib/assets/.keep
|
156
|
+
- spec/dummy/log/.keep
|
157
|
+
- spec/dummy/public/404.html
|
158
|
+
- spec/dummy/public/422.html
|
159
|
+
- spec/dummy/public/500.html
|
160
|
+
- spec/dummy/public/favicon.ico
|
161
|
+
- spec/lib/liquidize/helper_spec.rb
|
162
|
+
- spec/lib/liquidize/model_spec.rb
|
163
|
+
- spec/lib/liquidize_spec.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
homepage: ''
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: 1.9.3
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.2.2
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: Ruby library that adds Liquid template language support to your project.
|
189
|
+
test_files:
|
190
|
+
- spec/dummy/README.rdoc
|
191
|
+
- spec/dummy/Rakefile
|
192
|
+
- spec/dummy/app/assets/images/.keep
|
193
|
+
- spec/dummy/app/assets/javascripts/application.js
|
194
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
195
|
+
- spec/dummy/app/controllers/application_controller.rb
|
196
|
+
- spec/dummy/app/controllers/concerns/.keep
|
197
|
+
- spec/dummy/app/helpers/application_helper.rb
|
198
|
+
- spec/dummy/app/mailers/.keep
|
199
|
+
- spec/dummy/app/models/concerns/.keep
|
200
|
+
- spec/dummy/app/models/non_active_record_page.rb
|
201
|
+
- spec/dummy/app/models/page.rb
|
202
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
203
|
+
- spec/dummy/bin/bundle
|
204
|
+
- spec/dummy/bin/rails
|
205
|
+
- spec/dummy/bin/rake
|
206
|
+
- spec/dummy/config.ru
|
207
|
+
- spec/dummy/config/application.rb
|
208
|
+
- spec/dummy/config/boot.rb
|
209
|
+
- spec/dummy/config/database.yml
|
210
|
+
- spec/dummy/config/environment.rb
|
211
|
+
- spec/dummy/config/environments/development.rb
|
212
|
+
- spec/dummy/config/environments/production.rb
|
213
|
+
- spec/dummy/config/environments/test.rb
|
214
|
+
- spec/dummy/config/initializers/assets.rb
|
215
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
216
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
217
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
218
|
+
- spec/dummy/config/initializers/inflections.rb
|
219
|
+
- spec/dummy/config/initializers/mime_types.rb
|
220
|
+
- spec/dummy/config/initializers/session_store.rb
|
221
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
222
|
+
- spec/dummy/config/locales/en.yml
|
223
|
+
- spec/dummy/config/routes.rb
|
224
|
+
- spec/dummy/config/secrets.yml
|
225
|
+
- spec/dummy/db/migrate/20140904151853_create_pages.rb
|
226
|
+
- spec/dummy/db/schema.rb
|
227
|
+
- spec/dummy/lib/assets/.keep
|
228
|
+
- spec/dummy/log/.keep
|
229
|
+
- spec/dummy/public/404.html
|
230
|
+
- spec/dummy/public/422.html
|
231
|
+
- spec/dummy/public/500.html
|
232
|
+
- spec/dummy/public/favicon.ico
|
233
|
+
- spec/lib/liquidize/helper_spec.rb
|
234
|
+
- spec/lib/liquidize/model_spec.rb
|
235
|
+
- spec/lib/liquidize_spec.rb
|
236
|
+
- spec/spec_helper.rb
|