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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/static_literal_parser.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cc0aad9cacc1025e4ce59cab95bc7f076a21248def58633f8667a5279dc0866
4
- data.tar.gz: 1376efeb662024a50b6e315281915f80232948f059e23e9afbe85443c26724da
3
+ metadata.gz: 0b459bba28eff1d442f3b263827bd3fac5899c57e8f7eb6505b8f88f377ed0f4
4
+ data.tar.gz: '0937a15bf39622e403c00a37f0b4457321b039ca5a5afd71ee1208708273b4a7'
5
5
  SHA512:
6
- metadata.gz: 37147605518d3d1a32f5e5bb2e701c09b9e3118bc9d685b2958d48c421a12292b4c701e5c846dbde51945585ac156f00222da998d867d1df14357e189bbb35dd
7
- data.tar.gz: 69a957bb156cb283e60f4089552af90a3f2ef052ad44a3d6e082c90655ce18cb68f0de75f36d725f6705d9e1a237a3654a68aeedc9a695cd3fa53307a6461007
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.0
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-10-24 00:00:00.000000000 Z
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.3
42
+ rubygems_version: 3.2.0.rc.2
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: StaticLiteralParser.parse(str, constants)