code_web 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +3 -0
- data/lib/code_web/code_parser.rb +9 -4
- data/lib/code_web/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 510a88686fb1e591e98346e9cb81131d12911c00b7e1c47e2349a2aafa9e7377
|
4
|
+
data.tar.gz: 47d6c83161180e650c1d3357fb9f74ffced6c9128d482a9e0b294086996d886b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da1b4457f2086a29644f77e33feceba3e178e0428f962c1782f20f08d5841b6762a292ea3bdb1a1973a1e488104e54b49aec86d58fab3924d36c1529979ff664
|
7
|
+
data.tar.gz: 7ab0fc06e3be20d0e95de6e8eac77d13c9a4d795608fa8c441ab5dfe8df527a06707624fcedbd4b027f27aed2ca54e8265ae654997c1ca905f5b9f7e9d40018c
|
data/CHANGELOG.md
CHANGED
data/lib/code_web/code_parser.rb
CHANGED
@@ -29,14 +29,14 @@ module CodeWeb
|
|
29
29
|
#dstr = define string ("abc#{here}"),
|
30
30
|
#evstr evaluate string (#{HERE})
|
31
31
|
#attrasgn = attribute assignment
|
32
|
-
when :block, :if, :ensure, :rescue, :case, :when, :begin,
|
32
|
+
when :block, :lambda, :if, :ensure, :rescue, :case, :when, :begin,
|
33
33
|
:while, :until, :defined, :resbody, :match2, :match3, :dot2, :dot3,
|
34
34
|
:dstr, :evstr, :dsym, :dregx, :hash, :array, :return, :and, :or,
|
35
35
|
:next, :to_ary, :splat, :block_pass, :until, :yield,
|
36
36
|
/asgn/, :ivar, :arglist, :args, :kwarg, :kwargs, :kwsplat, :zsuper, :not, #statements[]
|
37
|
-
:super, :xstr, :for, :until, :dxstr,
|
37
|
+
:super, :xstr, :for, :until, :dxstr, :lit,
|
38
38
|
#these end up being no-ops:
|
39
|
-
:
|
39
|
+
:lvar, :const, :str, :nil, :gvar, :back_ref,
|
40
40
|
:true, :false, :colon2, :colon3, :next, :alias,
|
41
41
|
:nth_ref, :sclass, :cvdecl, :break, :retry, :undef,
|
42
42
|
#random
|
@@ -117,7 +117,7 @@ module CodeWeb
|
|
117
117
|
end
|
118
118
|
case ast.node_type
|
119
119
|
when :hash #name, value, name, value, ...
|
120
|
-
if ast[1].is_a?(Sexp) && ast[1].node_type == :kwsplat
|
120
|
+
if ast[1].is_a?(Sexp) && (ast[1].node_type == :kwsplat || ast[1].node_type == :lit)
|
121
121
|
ast[1..-1].map { |i| collapse_ast(i) }
|
122
122
|
else
|
123
123
|
Hash[*ast[1..-1].map { |i| collapse_ast(i) }]
|
@@ -183,6 +183,11 @@ module CodeWeb
|
|
183
183
|
end
|
184
184
|
@file_count += 1
|
185
185
|
rescue => e
|
186
|
+
if defined?(Pry)
|
187
|
+
binding.pry
|
188
|
+
elsif defined?(Byebug)
|
189
|
+
byebug
|
190
|
+
end
|
186
191
|
STDERR.puts("#{e}: [#{file_data.size}] #{file_name}")
|
187
192
|
end
|
188
193
|
end
|
data/lib/code_web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keenan Brock
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_parser
|
@@ -106,7 +106,7 @@ metadata:
|
|
106
106
|
changelog_uri: https://github.com/kbrock/code_web/blob/master/CHANGELOG.md
|
107
107
|
source_code_uri: https://github.com/kbrock/code_web/
|
108
108
|
bug_tracker_uri: https://github.com/kbrock/code_web/issues
|
109
|
-
post_install_message:
|
109
|
+
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|
112
112
|
- lib
|
@@ -121,9 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
|
126
|
-
signing_key:
|
124
|
+
rubygems_version: 3.0.3
|
125
|
+
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Display methods
|
129
128
|
test_files:
|