static_literal_parser 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/static_literal_parser.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b459bba28eff1d442f3b263827bd3fac5899c57e8f7eb6505b8f88f377ed0f4
|
4
|
+
data.tar.gz: '0937a15bf39622e403c00a37f0b4457321b039ca5a5afd71ee1208708273b4a7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eb6b4fbbf20b88b961caa97e6a8f197531a78b563a88124f18149d02ead1e21bd8817df05a99ae2cc906a0470b09199693859468806c3dbccca0491cac1ade2
|
7
|
+
data.tar.gz: 8bb488da5a444b33cbb4ef11bb9946375c3ced23f7feee56ace30a2faca1475dab605337027017718eb5e4fc349eac9c62977c5f213f824490102d9acaadcbba
|
@@ -13,7 +13,7 @@ module StaticLiteralParser
|
|
13
13
|
node.children[0..-2].map {|x| parse_(x, constants) }
|
14
14
|
when :HASH
|
15
15
|
Hash[*parse_(node.children[0], constants)]
|
16
|
-
when :LIT, :STR
|
16
|
+
when :LIT, :STR, :NIL
|
17
17
|
node.children[0]
|
18
18
|
when :CONST
|
19
19
|
constants[node.children[0]] or raise "Missing const: #{node.children[0]}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: static_literal_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuhiro Ujihisa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: StaticLiteralParser is a RubyGems library that you can convert a String
|
14
14
|
to a Ruby object, parsing the string as an executable Ruby code, but without actually
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
|
-
rubygems_version: 3.0.
|
42
|
+
rubygems_version: 3.2.0.rc.2
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: StaticLiteralParser.parse(str, constants)
|