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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 70d3e9a62d5dc47a400effe85954445549a8bae3
4
- data.tar.gz: ed930e4455fd1b2591408734b62b6780307ea284
2
+ SHA256:
3
+ metadata.gz: 510a88686fb1e591e98346e9cb81131d12911c00b7e1c47e2349a2aafa9e7377
4
+ data.tar.gz: 47d6c83161180e650c1d3357fb9f74ffced6c9128d482a9e0b294086996d886b
5
5
  SHA512:
6
- metadata.gz: a3252938470ec5eb9ee32aed8e52506af68d14c2d81be246d6f8731b4f33cba6c88639a8e5e33d83c10103bd31c283beb2d6de15e3717f8db6981ef70c9d5a8f
7
- data.tar.gz: 3a24ab58d66f443c98f5e743c7526d19258eb3e1546405ff353a1b41064e1897f31373134c2a9f667588b10281852abd72136eca619d25a79c3310f06db5ab4c
6
+ metadata.gz: da1b4457f2086a29644f77e33feceba3e178e0428f962c1782f20f08d5841b6762a292ea3bdb1a1973a1e488104e54b49aec86d58fab3924d36c1529979ff664
7
+ data.tar.gz: 7ab0fc06e3be20d0e95de6e8eac77d13c9a4d795608fa8c441ab5dfe8df527a06707624fcedbd4b027f27aed2ca54e8265ae654997c1ca905f5b9f7e9d40018c
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.0.9] - 2018-08-28
10
+ - fixed keyword arguments when they are with a leading hash
11
+
9
12
  ## [0.0.8] - 2018-08-28
10
13
  - fix html report output
11
14
 
@@ -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
- :lit, :lvar, :const, :str, :nil, :gvar, :back_ref,
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
@@ -1,3 +1,3 @@
1
1
  module CodeWeb
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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: 2018-08-29 00:00:00.000000000 Z
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
- rubyforge_project:
125
- rubygems_version: 2.6.13
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: