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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4e05f73f3bdec1a05b5b4e722f1325869cd027a
4
- data.tar.gz: a565cdc08c58e74278811fd7364d11d9508c7229
3
+ metadata.gz: b2ddc5eedc353f83ee2cc3290c15777e20c8b1cc
4
+ data.tar.gz: 236f9580708750658e5a0fc526d18a0b308ec6b7
5
5
  SHA512:
6
- metadata.gz: 7df084e39f519d237393fbac97ccc0b4b0021623b69723dd053d5dce5e0fcffd2ff7eed6afb21944b8bf950d1a802446876c6b3d583e1ed06f1bd8c77a25ae25
7
- data.tar.gz: 8d0e8a16f6d61e90532e6f28274225ac5dc2c61770d432f0c8caeeb1c6d4b2631e26cbe50850302daf8dffffb5e29e3b417a14d747b533f3007dee42fed98501
6
+ metadata.gz: 31124d52fb52b4c3132b777eeeef26ab610dad5e16bb7499139aa459d831450c1635f6edbc729242d5f9c85fadcdb028a2c1cc81f752d1afc48fcb21714a3f71
7
+ data.tar.gz: b74df38862a40ccc4738da0ce3130c6734f4430487ba68d32a9624c01a6a69936e7174219b563f71e9d07763f552527b197cd5b6569080aa11f3974d9e11fe98
@@ -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
- def_delegator :@args, :each
16
- def_delegator :@args, :to_enum
17
- def_delegator :@args, :key?
18
- def_delegator :@args, :to_h
19
- def_delegator :@args, :map
20
- def_delegator :@args, :[]=
21
- def_delegator :@args, :[]
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 = /^(?<!\\)(\!|@)/
@@ -5,7 +5,7 @@
5
5
  module Liquid
6
6
  class Tag
7
7
  class Parser
8
- VERSION = "1.1.6"
8
+ VERSION = "1.2.0"
9
9
  end
10
10
  end
11
11
  end
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.1.6
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-01 00:00:00.000000000 Z
11
+ date: 2017-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec