visualize_ruby 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99eee38b1b8d2b5fc815dc04c37b5fec84a73762b66295898bed31bee5ee235d
4
- data.tar.gz: aa7d28887b07d5b4ae096b2341fc74e2906bbe7452effcb5f0a19db7ee42f2a9
3
+ metadata.gz: 6655cbb07b2f7220d53af06fbe613c97ca457360f36d9fbbc03bb8fa409fdcf6
4
+ data.tar.gz: f28064b42af7819dec8e73266e902217b399cbec08552c02ace05c311d8080fa
5
5
  SHA512:
6
- metadata.gz: f552a2787de005e1459951380fb1d58e412e2901298a73c65a1a4b3d984eb2d1f28d7681b1e3ea62fec3d89131e6507263d644037b0e5037155f4492aa4bd1ad
7
- data.tar.gz: 87539a36683428a0debda868deac2e9fc50c1f207ef4b64a9c87f7664482bb8929e5cdb5fbbfd2cea4cc8db8a0d1312e01e7739183bff415f833e15112b05f20
6
+ metadata.gz: 21021c4540db60df784411e44e360268fb52ceb3f097407053597a089a783bd72af4ed64c188e4069921807797637eca87f508a0c9a4ebf7a644585313880725
7
+ data.tar.gz: 9b7c47fb8d402cb7b3c01a4604dfd3327e7355c326f38ab68f7da3c25db6ee3f6b9b72dca465fc95c94297b54096c9c51304bfb1c02918a16ef310bc9270c511
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.7.0 - 2018-07-17
5
+ ### Fix
6
+ * Ruby types like Hash and Array causing error. Now render as code.
7
+
4
8
  ## 0.6.0 - 2018-06-27
5
9
  ### Enhancement
6
10
  * Visualize Enumerable looping
@@ -6,7 +6,7 @@ module VisualizeRuby
6
6
  end
7
7
 
8
8
  def description(ast: @ast)
9
- return ast if ast.is_a?(Symbol)
9
+ return ast unless ast.respond_to?(:type)
10
10
  Unparser.unparse(ast)
11
11
  end
12
12
  end
@@ -10,8 +10,8 @@ module VisualizeRuby
10
10
  edges << Edge.new(name: "OR", nodes: [node, last_node]) if last_node
11
11
  last_node = node
12
12
  nodes << node
13
- end.reverse
14
- return nodes, edges
13
+ end
14
+ return nodes.reverse, edges
15
15
  end
16
16
  end
17
17
  end
@@ -39,7 +39,7 @@ module VisualizeRuby
39
39
  private
40
40
 
41
41
  def parse_by_type
42
- Parser.const_get(ast.type.to_s.capitalize).new(ast).parse
42
+ Parser.const_get(ast.type.to_s.capitalize, false).new(ast).parse
43
43
  rescue NameError
44
44
  Str.new(ast).parse
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module VisualizeRuby
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualize_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-27 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.7.6
171
+ rubygems_version: 2.7.7
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Express logic visually with the code you already know, Ruby.