liquid_debug 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +56 -41
- data/README.md +1 -1
- data/lib/liquid_debug/error_handler.rb +3 -5
- data/lib/liquid_debug/version.rb +1 -1
- data/lib/liquid_debug.rb +1 -1
- data/liquid_debug.gemspec +14 -8
- metadata +67 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906a482f4dbe636b58ae6047b5f65b80b6498180d390af2fe6b665f312a71c5a
|
4
|
+
data.tar.gz: 3f3df7ae8e0eee1ea8b5498e1ddb7e6fb469e9f0f177a99268ab9994084b449f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b6d72ea461940014cc95c3ac22c8bd7ddbe1dd8fe44599d65963cd6428c62e82f46fa65461336a3b35d2b969f2483c7251ec272589c0e4e39ff246b401220b
|
7
|
+
data.tar.gz: 6ce8b5486af8d33186ccca0eace869c9addb7c94ab42698f5292731d97c3dbb8c71393a2ed1a4bfaf38b1f6b042fb06fc7e1ff34df061760fef74b949154cdbe
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.9
|
data/Gemfile.lock
CHANGED
@@ -1,69 +1,84 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
liquid_debug (0.
|
5
|
-
liquid (~>
|
4
|
+
liquid_debug (0.1.1)
|
5
|
+
liquid (~> 5.3)
|
6
6
|
paint (~> 2.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ast (2.4.
|
12
|
-
betterp (0.1.
|
11
|
+
ast (2.4.2)
|
12
|
+
betterp (0.1.6)
|
13
13
|
paint (~> 2.0)
|
14
|
-
concurrent-ruby (1.1.
|
15
|
-
diff-lcs (1.
|
16
|
-
i18n (1.
|
14
|
+
concurrent-ruby (1.1.10)
|
15
|
+
diff-lcs (1.5.0)
|
16
|
+
i18n (1.10.0)
|
17
17
|
concurrent-ruby (~> 1.0)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
rspec-
|
29
|
-
rspec-
|
30
|
-
|
31
|
-
|
32
|
-
|
18
|
+
liquid (5.3.0)
|
19
|
+
paint (2.2.1)
|
20
|
+
parallel (1.22.1)
|
21
|
+
parser (3.1.2.0)
|
22
|
+
ast (~> 2.4.1)
|
23
|
+
rainbow (3.1.1)
|
24
|
+
rake (13.0.6)
|
25
|
+
regexp_parser (2.4.0)
|
26
|
+
rexml (3.2.5)
|
27
|
+
rspec (3.11.0)
|
28
|
+
rspec-core (~> 3.11.0)
|
29
|
+
rspec-expectations (~> 3.11.0)
|
30
|
+
rspec-mocks (~> 3.11.0)
|
31
|
+
rspec-core (3.11.0)
|
32
|
+
rspec-support (~> 3.11.0)
|
33
|
+
rspec-expectations (3.11.0)
|
33
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
+
rspec-support (~> 3.11.0)
|
35
36
|
rspec-its (1.3.0)
|
36
37
|
rspec-core (>= 3.0.0)
|
37
38
|
rspec-expectations (>= 3.0.0)
|
38
|
-
rspec-mocks (3.
|
39
|
+
rspec-mocks (3.11.1)
|
39
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-support (3.
|
42
|
-
rubocop (
|
43
|
-
jaro_winkler (~> 1.5.1)
|
41
|
+
rspec-support (~> 3.11.0)
|
42
|
+
rspec-support (3.11.0)
|
43
|
+
rubocop (1.29.1)
|
44
44
|
parallel (~> 1.10)
|
45
|
-
parser (>=
|
45
|
+
parser (>= 3.1.0.0)
|
46
46
|
rainbow (>= 2.2.2, < 4.0)
|
47
|
+
regexp_parser (>= 1.8, < 3.0)
|
48
|
+
rexml (>= 3.2.5, < 4.0)
|
49
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
47
50
|
ruby-progressbar (~> 1.7)
|
48
|
-
unicode-display_width (>= 1.4.0, <
|
49
|
-
|
50
|
-
|
51
|
-
|
51
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
52
|
+
rubocop-ast (1.18.0)
|
53
|
+
parser (>= 3.1.1.0)
|
54
|
+
rubocop-performance (1.13.3)
|
55
|
+
rubocop (>= 1.7.0, < 2.0)
|
56
|
+
rubocop-ast (>= 0.4.0)
|
57
|
+
rubocop-rake (0.6.0)
|
58
|
+
rubocop (~> 1.0)
|
59
|
+
rubocop-rspec (2.11.1)
|
60
|
+
rubocop (~> 1.19)
|
61
|
+
ruby-progressbar (1.11.0)
|
62
|
+
strong_versions (0.4.5)
|
63
|
+
i18n (>= 0.5)
|
52
64
|
paint (~> 2.0)
|
53
|
-
unicode-display_width (1.
|
65
|
+
unicode-display_width (2.1.0)
|
54
66
|
|
55
67
|
PLATFORMS
|
56
68
|
ruby
|
57
69
|
|
58
70
|
DEPENDENCIES
|
59
|
-
betterp (~> 0.1.
|
60
|
-
bundler (~> 2.
|
71
|
+
betterp (~> 0.1.6)
|
72
|
+
bundler (~> 2.3)
|
61
73
|
liquid_debug!
|
62
|
-
rake (~>
|
63
|
-
rspec (~> 3.
|
74
|
+
rake (~> 13.0)
|
75
|
+
rspec (~> 3.11)
|
64
76
|
rspec-its (~> 1.3)
|
65
|
-
rubocop (~>
|
66
|
-
|
77
|
+
rubocop (~> 1.29)
|
78
|
+
rubocop-performance (~> 1.13)
|
79
|
+
rubocop-rake (~> 0.6.0)
|
80
|
+
rubocop-rspec (~> 2.11)
|
81
|
+
strong_versions (~> 0.4.5)
|
67
82
|
|
68
83
|
BUNDLED WITH
|
69
|
-
2.
|
84
|
+
2.3.11
|
data/README.md
CHANGED
@@ -20,13 +20,11 @@ module LiquidDebug
|
|
20
20
|
|
21
21
|
# rubocop:disable Metrics/AbcSize
|
22
22
|
def report(limit)
|
23
|
+
@output.puts("\n#{red(@error.to_s)}")
|
23
24
|
return nil if backtrace.empty?
|
24
25
|
|
25
|
-
@output.puts("\n" + red(@error.to_s))
|
26
26
|
@output.puts(message(limit, backtrace))
|
27
|
-
if backtrace.size > 1
|
28
|
-
backtrace[0...-1].each { |frame| @output.puts(" #{frame}") }
|
29
|
-
end
|
27
|
+
backtrace[0...-1].each { |frame| @output.puts(" #{frame}") } if backtrace.size > 1
|
30
28
|
|
31
29
|
@output.puts(open_highlight + backtrace[-1] + close_highlight)
|
32
30
|
@output.puts("\n")
|
@@ -87,7 +85,7 @@ module LiquidDebug
|
|
87
85
|
end
|
88
86
|
|
89
87
|
def message(_limit, _backtrace)
|
90
|
-
Paint['Backtrace:', :white]
|
88
|
+
"#{Paint['Backtrace:', :white]}\n\n"
|
91
89
|
end
|
92
90
|
|
93
91
|
def red(text)
|
data/lib/liquid_debug/version.rb
CHANGED
data/lib/liquid_debug.rb
CHANGED
data/liquid_debug.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.name = 'liquid_debug'
|
10
10
|
spec.version = LiquidDebug::VERSION
|
11
11
|
spec.authors = ['Bob Farrell']
|
12
|
-
spec.email = ['
|
12
|
+
spec.email = ['git@gmail.com']
|
13
13
|
|
14
14
|
spec.summary = "Debug Shopify's Liquid templating language"
|
15
15
|
spec.description = 'Extends Liquid for enhanced debugging'
|
@@ -21,18 +21,24 @@ Gem::Specification.new do |spec|
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
spec.required_ruby_version = '>= 2.6'
|
25
|
+
|
24
26
|
spec.bindir = 'exe'
|
25
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
28
|
spec.require_paths = ['lib']
|
27
29
|
|
28
|
-
spec.add_runtime_dependency 'liquid', '~>
|
30
|
+
spec.add_runtime_dependency 'liquid', '~> 5.3'
|
29
31
|
spec.add_runtime_dependency 'paint', '~> 2.1'
|
30
32
|
|
31
|
-
spec.add_development_dependency 'betterp', '~> 0.1.
|
32
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
33
|
-
spec.add_development_dependency 'rake', '~>
|
34
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
33
|
+
spec.add_development_dependency 'betterp', '~> 0.1.6'
|
34
|
+
spec.add_development_dependency 'bundler', '~> 2.3'
|
35
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
36
|
+
spec.add_development_dependency 'rspec', '~> 3.11'
|
35
37
|
spec.add_development_dependency 'rspec-its', '~> 1.3'
|
36
|
-
spec.add_development_dependency 'rubocop', '~>
|
37
|
-
spec.add_development_dependency '
|
38
|
+
spec.add_development_dependency 'rubocop', '~> 1.29'
|
39
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.13'
|
40
|
+
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
|
41
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 2.11'
|
42
|
+
spec.add_development_dependency 'strong_versions', '~> 0.4.5'
|
43
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
38
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid_debug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: paint
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,56 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.6
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.6
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '13.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
89
|
+
version: '3.11'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
96
|
+
version: '3.11'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec-its
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,31 +114,73 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '1.29'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '1.29'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-performance
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.13'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.13'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.6.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.6.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop-rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.11'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.11'
|
125
167
|
- !ruby/object:Gem::Dependency
|
126
168
|
name: strong_versions
|
127
169
|
requirement: !ruby/object:Gem::Requirement
|
128
170
|
requirements:
|
129
171
|
- - "~>"
|
130
172
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
173
|
+
version: 0.4.5
|
132
174
|
type: :development
|
133
175
|
prerelease: false
|
134
176
|
version_requirements: !ruby/object:Gem::Requirement
|
135
177
|
requirements:
|
136
178
|
- - "~>"
|
137
179
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
180
|
+
version: 0.4.5
|
139
181
|
description: Extends Liquid for enhanced debugging
|
140
182
|
email:
|
141
|
-
-
|
183
|
+
- git@gmail.com
|
142
184
|
executables: []
|
143
185
|
extensions: []
|
144
186
|
extra_rdoc_files: []
|
@@ -146,6 +188,7 @@ files:
|
|
146
188
|
- ".gitignore"
|
147
189
|
- ".rspec"
|
148
190
|
- ".rubocop.yml"
|
191
|
+
- ".ruby-version"
|
149
192
|
- ".travis.yml"
|
150
193
|
- Gemfile
|
151
194
|
- Gemfile.lock
|
@@ -162,8 +205,9 @@ files:
|
|
162
205
|
- liquid_debug.gemspec
|
163
206
|
homepage: https://github.com/bobf/liquid_debug
|
164
207
|
licenses: []
|
165
|
-
metadata:
|
166
|
-
|
208
|
+
metadata:
|
209
|
+
rubygems_mfa_required: 'true'
|
210
|
+
post_install_message:
|
167
211
|
rdoc_options: []
|
168
212
|
require_paths:
|
169
213
|
- lib
|
@@ -171,16 +215,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
215
|
requirements:
|
172
216
|
- - ">="
|
173
217
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
218
|
+
version: '2.6'
|
175
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
220
|
requirements:
|
177
221
|
- - ">="
|
178
222
|
- !ruby/object:Gem::Version
|
179
223
|
version: '0'
|
180
224
|
requirements: []
|
181
|
-
|
182
|
-
|
183
|
-
signing_key:
|
225
|
+
rubygems_version: 3.0.3.1
|
226
|
+
signing_key:
|
184
227
|
specification_version: 4
|
185
228
|
summary: Debug Shopify's Liquid templating language
|
186
229
|
test_files: []
|