liquid-tag-parser 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liquid/tag/parser.rb +16 -10
- data/lib/liquid/tag/parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2ddc5eedc353f83ee2cc3290c15777e20c8b1cc
|
4
|
+
data.tar.gz: 236f9580708750658e5a0fc526d18a0b308ec6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31124d52fb52b4c3132b777eeeef26ab610dad5e16bb7499139aa459d831450c1635f6edbc729242d5f9c85fadcdb028a2c1cc81f752d1afc48fcb21714a3f71
|
7
|
+
data.tar.gz: b74df38862a40ccc4738da0ce3130c6734f4430487ba68d32a9624c01a6a69936e7174219b563f71e9d07763f552527b197cd5b6569080aa11f3974d9e11fe98
|
data/lib/liquid/tag/parser.rb
CHANGED
@@ -2,23 +2,29 @@
|
|
2
2
|
# Copyright: 2017 - MIT License
|
3
3
|
# Encoding: utf-8
|
4
4
|
|
5
|
-
require "forwardable"
|
6
5
|
require "extras/hash"
|
6
|
+
require "forwardable/extended"
|
7
7
|
require "liquid"
|
8
8
|
|
9
9
|
module Liquid
|
10
10
|
class Tag
|
11
11
|
class Parser
|
12
12
|
attr_reader :args, :raw_args
|
13
|
-
extend Forwardable
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
extend Forwardable::Extended
|
14
|
+
|
15
|
+
rb_delegate :each, to: :@args
|
16
|
+
rb_delegate :to_enum, to: :@args
|
17
|
+
rb_delegate :key?, to: :@args
|
18
|
+
rb_delegate :to_h, to: :@args
|
19
|
+
rb_delegate :map, to: :@args
|
20
|
+
rb_delegate :[]=, to: :@args
|
21
|
+
rb_delegate :[], to: :@args
|
22
|
+
rb_delegate :merge, to: :@args
|
23
|
+
rb_delegate :merge!, to: :@args
|
24
|
+
rb_delegate :deep_merge, to: :@args
|
25
|
+
rb_delegate :deep_merge!, to: :@args
|
26
|
+
rb_delegate :args_with_indifferent_access, to: :@args, \
|
27
|
+
alias_of: :with_indifferent_access
|
22
28
|
|
23
29
|
# --
|
24
30
|
BOOLEAN_REGEXP = /^(?<!\\)(\!|@)/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid-tag-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|