liquid-tag-parser 1.8.0 → 1.9.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
- SHA1:
3
- metadata.gz: c057e184a8a4d338d450a92300d8f8439394b713
4
- data.tar.gz: ca40ca9c306136b8b60d2b06c666d7990b8b746e
2
+ SHA256:
3
+ metadata.gz: 95964cbed02140b5f9a010ffbf65a105e56f90f84802e9db66e261dfa076990b
4
+ data.tar.gz: 187f06b17685649c3413b2a6b5b04685b32bf4d1c2a4bc51077b9526020fa79f
5
5
  SHA512:
6
- metadata.gz: 4d7330b46478d605bde569c1690e955384738e4a24cb66fb1edd69502f5054468f94610dde91853706ea9cdcb8d7ecbd530d0779f18afe99e9bdf57ae95cb967
7
- data.tar.gz: 23a809b5033f64da2ac0fa1d2b53b5eb2d1be27fcb4283bf89025c8e66ee7a205321b1ec5a3cc5b9e73f8f579faddbf85f7466c3d6fde6f337c31397664de7cc
6
+ metadata.gz: 7b3217969525dcb1a7909678eae91124b2ab0e794be553fcfa7e3a7faa24b2137f918fa24b6988cdc8f88a38ea158458c37aa00a7c155f25468eb062f3e432bc
7
+ data.tar.gz: 0ab6f3201ad06af9145bf3e94274b0e85946633707450d7af2bb2991869d08e54732d42b1aafcacb9ef7ef2a96c1735e8de62daf96fac621acffd923b735c67f
data/Gemfile CHANGED
@@ -5,12 +5,6 @@
5
5
  source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
- group :development do
9
- gem "pry", require: false
10
- gem "rubocop", require: false
11
- gem "rake", require: false
12
- end
13
-
14
8
  if ENV["LIQUID_VERSION"]
15
9
  gem "liquid", ENV["LIQUID_VERSION"]
16
10
  end
@@ -1,5 +1,6 @@
1
1
  # Frozen-string-literal: true
2
- # Copyright: 2017 - MIT License
2
+ # Copyright: 2017 - 2018 - MIT License
3
+ # Author: Jordon Bedwell
3
4
  # Encoding: utf-8
4
5
 
5
6
  require "extras/hash"
@@ -9,8 +10,9 @@ require "liquid"
9
10
  module Liquid
10
11
  class Tag
11
12
  class Parser
12
- attr_reader :args, :raw_args
13
+ attr_reader :args
13
14
  extend Forwardable::Extended
15
+ alias raw_args args
14
16
 
15
17
  # --
16
18
  rb_delegate :each, to: :@args
@@ -28,6 +30,7 @@ module Liquid
28
30
  rb_delegate :merge!, to: :@args
29
31
  rb_delegate :deep_merge, to: :@args
30
32
  rb_delegate :deep_merge!, to: :@args
33
+ rb_delegate :select, to: :@args
31
34
  rb_delegate :args_with_indifferent_access, {
32
35
  to: :@args, alias_of: :with_indifferent_access
33
36
  }
@@ -36,11 +39,11 @@ module Liquid
36
39
  FALSE = "!"
37
40
  FLOAT = %r!\A\d+\.\d+\Z!
38
41
  QUOTE = %r!("|')([^\1]*)(\1)!
39
- SPECIAL = %r!(?<\!\\)(@|\!|:|=)!
40
- BOOL = %r!\A(?<\!\\)(\!|@)([\w:]+)\Z!
41
- UNQUOTED_SPECIAL = %r!(?<\!\\)(://)!
42
- SPECIAL_ESCAPED = %r!\\(@|\!|:|=)!
43
- KEY = %r!\b(?<\!\\):!
42
+ SPECIAL = %r{(?<!\\)(@|!|:|=)}
43
+ BOOL = %r{\A(?<!\\)(!|@)([\w:]+)\Z}
44
+ UNQUOTED_SPECIAL = %r{(?<!\\)(://)}
45
+ SPECIAL_ESCAPED = %r{\\(@|!|:|=)}
46
+ KEY = %r{\b(?<!\\):}
44
47
  INT = %r!^\d+$!
45
48
  TRUE = "@"
46
49
 
@@ -54,7 +57,7 @@ module Liquid
54
57
  @unescaped_sep = sep
55
58
  @rsep = Regexp.escape(sep)
56
59
  @escaped_sep_regexp = %r!\\(#{@rsep})!
57
- @sep_regexp = %r!\b(?<\!\\)(#{@rsep})!
60
+ @sep_regexp = %r{\b(?<!\\)(#{@rsep})}
58
61
  @escaped_sep = "\\#{@sep}"
59
62
  @args = defaults
60
63
  @raw = raw
@@ -1,11 +1,12 @@
1
1
  # Frozen-string-literal: true
2
- # Copyright: 2017 - MIT License
2
+ # Copyright: 2017 - 2018 - MIT License
3
+ # Author: Jordon Bedwell
3
4
  # Encoding: utf-8
4
5
 
5
6
  module Liquid
6
7
  class Tag
7
8
  class Parser
8
- VERSION = "1.8.0"
9
+ VERSION = "1.9.0"
9
10
  end
10
11
  end
11
12
  end
metadata CHANGED
@@ -1,15 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-tag-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.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-11-22 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: '0.52'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: '0.52'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.16'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.16'
13
69
  - !ruby/object:Gem::Dependency
14
70
  name: rspec
15
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
164
  version: '0'
109
165
  requirements: []
110
166
  rubyforge_project:
111
- rubygems_version: 2.6.13
167
+ rubygems_version: 2.7.6
112
168
  signing_key:
113
169
  specification_version: 4
114
170
  summary: Parse liquid tags like a professional