liquidize 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/.ruby-version +1 -1
- data/.travis.yml +2 -1
- data/Appraisals +2 -2
- data/gemfiles/4.2.gemfile +2 -2
- data/gemfiles/5.0.gemfile +2 -2
- data/lib/liquidize/helper.rb +4 -1
- data/lib/liquidize/model.rb +1 -1
- data/lib/liquidize/version.rb +1 -1
- data/liquidize.gemspec +0 -1
- data/spec/lib/liquidize/model_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb3f0c969abfa195f84ae174743a95e18a36b09f
|
4
|
+
data.tar.gz: 6c55ceeb07e71fa0dc664e34168a12fb5df71d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5460dbf33d9c11bc97f373ff55d7a79117e68d72c21f31e0e9e6b84f0a511a6fdf972943d7282671f9e3328409b63c9f850e43f95b70523dd14927f225eb46dd
|
7
|
+
data.tar.gz: ef8ace4178c83c7f17baf530241fce658781f8be6f0f68b2bc500852d27aa87f6702caabe4db18a2bddac24563e51651c50d0ed0dfe8d2ba10b57e9918c569f9
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.0
|
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
data/gemfiles/4.2.gemfile
CHANGED
data/gemfiles/5.0.gemfile
CHANGED
data/lib/liquidize/helper.rb
CHANGED
@@ -6,7 +6,7 @@ module Liquidize
|
|
6
6
|
def self.recursive_stringify_keys(options)
|
7
7
|
if options.is_a?(Hash)
|
8
8
|
options.stringify_keys!
|
9
|
-
options.
|
9
|
+
options.each_value { |v| recursive_stringify_keys(v) }
|
10
10
|
elsif options.is_a?(Array)
|
11
11
|
options.map! { |a| recursive_stringify_keys(a) }
|
12
12
|
end
|
@@ -23,9 +23,12 @@ module Liquidize
|
|
23
23
|
# Decodes dump into the Ruby object
|
24
24
|
# @param dump [String] encoded dump
|
25
25
|
# @return [Object] decoded object
|
26
|
+
# @todo Find better alternative to Marshal.load
|
27
|
+
# rubocop:disable Security/MarshalLoad
|
26
28
|
def self.decode(dump)
|
27
29
|
Marshal.load(Base64.strict_decode64(dump))
|
28
30
|
end
|
31
|
+
# rubocop:enable
|
29
32
|
|
30
33
|
# Analogue of the ActiveSupport #present? method
|
31
34
|
# @param value [Object] value that should be checked
|
data/lib/liquidize/model.rb
CHANGED
data/lib/liquidize/version.rb
CHANGED
data/liquidize.gemspec
CHANGED
@@ -83,7 +83,7 @@ RSpec.describe Liquidize::Model do
|
|
83
83
|
|
84
84
|
it 'does not set @*_syntax_error instance variable with valid body' do
|
85
85
|
page.instance_variable_set(:@body_syntax_error, nil) # prevent warning
|
86
|
-
expect { page.body = valid_body }.not_to
|
86
|
+
expect { page.body = valid_body }.not_to(change { page.instance_variable_get(:@body_syntax_error) })
|
87
87
|
end
|
88
88
|
|
89
89
|
it 'sets @*_syntax_error instance variable with invalid body' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquidize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Borovykh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.6.
|
217
|
+
rubygems_version: 2.6.14
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Ruby library that adds Liquid template language support to your project.
|