tomlrb 1.2.8 → 1.2.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
2
  SHA256:
3
- metadata.gz: ed6d567784a3cc9c807a7a0f8fd598df93c61a1814ffb6b332de00f0fb283834
4
- data.tar.gz: 750ee2900fc4f8cc4d90943e088888ceb7aafcbff5c59ace2b57672e190213e2
3
+ metadata.gz: 7dc49f2c4a21fe5073871c84669412123b959d4cfa082d32bea1be9a8d9d23fe
4
+ data.tar.gz: 374170642d697bfe82f1bac48c9e14ff83a3b09b3badbc707c62110d19153f19
5
5
  SHA512:
6
- metadata.gz: 0331f20dcfbecaa645c1895febe1459e516592ca25ce27e2f4c85b42933f7041e4ae455a5a0e8581f3893ffb0d23995df549cc2fbbc942615ba0481807673f73
7
- data.tar.gz: ec8e6d286acb1cd62c2b336d9fdb6c0cc169c4acd76c9ac2e7e14501ce7a668db4b073c0d9d474a314c129d760af925df17f40006630f0e568e03143e77a84f9
6
+ metadata.gz: 0050d8b4e22c47f88b6e08d42edf9f301e3608e3ce22b5744087836e566fbc53af09d0291572449d6ecfb8f7a33ea29c6f8cc15d6763c017356e47669832d534
7
+ data.tar.gz: 91db307e0bf1c4fc5e2ebba6ca0ef8c0a7d32632a0c219059a44c7ac83fd0e41c4e6e55cb099a3031c26993de6632ce59e9303a3035192489bde407cb8ffdc47
@@ -18,7 +18,7 @@ module Tomlrb
18
18
  def self.parse(string_or_io, **options)
19
19
  io = string_or_io.is_a?(String) ? StringIO.new(string_or_io) : string_or_io
20
20
  scanner = Scanner.new(io)
21
- parser = Parser.new(scanner, options)
21
+ parser = Parser.new(scanner, **options)
22
22
  begin
23
23
  handler = parser.parse
24
24
  rescue Racc::ParseError => e
@@ -39,6 +39,6 @@ module Tomlrb
39
39
  # default external encoding. The default external encoding is set by
40
40
  # locale encoding or the interpreter -E option.
41
41
  tmp = File.read(path, :encoding=>'utf-8')
42
- Tomlrb.parse(tmp, options)
42
+ Tomlrb.parse(tmp, **options)
43
43
  end
44
44
  end
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.14
3
+ # This file is automatically generated by Racc 1.4.16.pre.1
4
4
  # from Racc grammer file "".
5
5
  #
6
6
 
@@ -10,50 +10,50 @@ module Tomlrb
10
10
  ##### State transition tables begin ###
11
11
 
12
12
  racc_action_table = [
13
- 2, 17, 11, 31, 12, 31, 13, 27, 14, 77,
14
- 15, 16, 8, 78, 32, 10, 33, 29, 34, 29,
13
+ 2, 32, 11, 31, 12, 31, 13, 33, 14, 77,
14
+ 15, 16, 8, 78, 34, 10, 35, 29, 36, 29,
15
15
  57, 58, 59, 60, 56, 53, 52, 54, 55, 46,
16
- 40, 41, 10, 57, 58, 59, 60, 56, 53, 52,
16
+ 73, 37, 10, 57, 58, 59, 60, 56, 53, 52,
17
17
  54, 55, 46, 69, 70, 10, 57, 58, 59, 60,
18
- 56, 53, 52, 54, 55, 46, 35, 36, 10, 57,
19
- 58, 59, 60, 56, 53, 52, 54, 55, 46, 37,
20
- 38, 10, 57, 58, 59, 60, 56, 53, 52, 54,
21
- 55, 46, 43, 66, 10, 57, 58, 59, 60, 56,
22
- 53, 52, 54, 55, 46, nil, nil, 10, 57, 58,
18
+ 56, 53, 52, 54, 55, 46, 40, 41, 10, 57,
19
+ 58, 59, 60, 56, 53, 52, 54, 55, 46, 38,
20
+ 43, 10, 57, 58, 59, 60, 56, 53, 52, 54,
21
+ 55, 46, 66, 17, 10, 57, 58, 59, 60, 56,
22
+ 53, 52, 54, 55, 46, 27, nil, 10, 57, 58,
23
23
  59, 60, 56, 53, 52, 54, 55, 46, nil, nil,
24
24
  10, 57, 58, 59, 60, 56, 53, 52, 54, 55,
25
- 46, 73, nil, 10, 57, 58, 59, 60, 56, 53,
25
+ 46, nil, nil, 10, 57, 58, 59, 60, 56, 53,
26
26
  52, 54, 55, 46, 73, 21, 10, 22, nil, 23,
27
27
  nil, 24, nil, 25, 26, 21, 19, 22, nil, 23,
28
28
  nil, 24, nil, 25, 26, nil, 19 ]
29
29
 
30
30
  racc_action_check = [
31
- 1, 2, 1, 9, 1, 70, 1, 8, 1, 74,
32
- 1, 1, 1, 74, 11, 1, 12, 9, 13, 70,
33
- 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
34
- 20, 20, 32, 33, 33, 33, 33, 33, 33, 33,
35
- 33, 33, 33, 42, 42, 33, 34, 34, 34, 34,
36
- 34, 34, 34, 34, 34, 34, 14, 15, 34, 35,
37
- 35, 35, 35, 35, 35, 35, 35, 35, 35, 16,
38
- 19, 35, 36, 36, 36, 36, 36, 36, 36, 36,
39
- 36, 36, 30, 40, 36, 37, 37, 37, 37, 37,
40
- 37, 37, 37, 37, 37, nil, nil, 37, 43, 43,
41
- 43, 43, 43, 43, 43, 43, 43, 43, nil, nil,
42
- 43, 45, 45, 45, 45, 45, 45, 45, 45, 45,
43
- 45, 45, nil, 45, 78, 78, 78, 78, 78, 78,
44
- 78, 78, 78, 78, 78, 7, 78, 7, nil, 7,
31
+ 1, 11, 1, 9, 1, 70, 1, 12, 1, 74,
32
+ 1, 1, 1, 74, 13, 1, 14, 9, 15, 70,
33
+ 78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
34
+ 78, 16, 78, 32, 32, 32, 32, 32, 32, 32,
35
+ 32, 32, 32, 42, 42, 32, 33, 33, 33, 33,
36
+ 33, 33, 33, 33, 33, 33, 20, 20, 33, 34,
37
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 19,
38
+ 30, 34, 35, 35, 35, 35, 35, 35, 35, 35,
39
+ 35, 35, 40, 2, 35, 36, 36, 36, 36, 36,
40
+ 36, 36, 36, 36, 36, 8, nil, 36, 37, 37,
41
+ 37, 37, 37, 37, 37, 37, 37, 37, nil, nil,
42
+ 37, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43
+ 43, nil, nil, 43, 45, 45, 45, 45, 45, 45,
44
+ 45, 45, 45, 45, 45, 7, 45, 7, nil, 7,
45
45
  nil, 7, nil, 7, 7, 41, 7, 41, nil, 41,
46
46
  nil, 41, nil, 41, 41, nil, 41 ]
47
47
 
48
48
  racc_action_pointer = [
49
- nil, 0, 1, nil, nil, nil, nil, 133, -5, 1,
50
- nil, -4, -2, 0, 38, 39, 51, nil, nil, 57,
51
- 17, nil, nil, nil, nil, nil, nil, nil, nil, nil,
52
- 64, nil, 17, 30, 43, 56, 69, 82, nil, nil,
53
- 70, 143, 27, 95, nil, 108, nil, nil, nil, nil,
49
+ nil, 0, 83, nil, nil, nil, nil, 133, 83, 1,
50
+ nil, -17, -11, -4, -2, 0, 13, nil, nil, 56,
51
+ 43, nil, nil, nil, nil, nil, nil, nil, nil, nil,
52
+ 52, nil, 30, 43, 56, 69, 82, 95, nil, nil,
53
+ 69, 143, 27, 108, nil, 121, nil, nil, nil, nil,
54
54
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
55
55
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
56
- 3, nil, nil, nil, -4, nil, nil, nil, 121, nil ]
56
+ 3, nil, nil, nil, -4, nil, nil, nil, 17, nil ]
57
57
 
58
58
  racc_action_default = [
59
59
  -1, -56, -56, -2, -3, -4, -5, -56, -8, -56,
@@ -66,8 +66,8 @@ racc_action_default = [
66
66
  -56, -28, -35, -36, -56, -26, -37, -38, -46, -39 ]
67
67
 
68
68
  racc_goto_table = [
69
- 28, 18, 1, 72, 44, 61, 62, 63, 64, 65,
70
- 3, 4, 5, 6, 7, 71, 39, 42, 68, 76,
69
+ 28, 18, 6, 72, 44, 61, 62, 63, 64, 65,
70
+ 7, 39, 42, 68, 1, 71, 76, 3, 4, 5,
71
71
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
72
72
  nil, nil, nil, nil, nil, 67, 79, nil, nil, nil,
73
73
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
@@ -75,8 +75,8 @@ racc_goto_table = [
75
75
  nil, 75 ]
76
76
 
77
77
  racc_goto_check = [
78
- 11, 7, 1, 18, 15, 15, 15, 15, 15, 15,
79
- 2, 3, 4, 5, 6, 15, 9, 13, 14, 19,
78
+ 11, 7, 5, 18, 15, 15, 15, 15, 15, 15,
79
+ 6, 9, 13, 14, 1, 15, 19, 2, 3, 4,
80
80
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
81
81
  nil, nil, nil, nil, nil, 7, 18, nil, nil, nil,
82
82
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
@@ -84,8 +84,8 @@ racc_goto_check = [
84
84
  nil, 11 ]
85
85
 
86
86
  racc_goto_pointer = [
87
- nil, 2, 9, 10, 11, 12, 13, -6, nil, -4,
88
- nil, -9, nil, -13, -24, -28, nil, nil, -42, -55,
87
+ nil, 14, 16, 17, 18, 1, 9, -6, nil, -9,
88
+ nil, -9, nil, -18, -29, -28, nil, nil, -42, -58,
89
89
  nil, nil, nil ]
90
90
 
91
91
  racc_goto_default = [
@@ -539,4 +539,4 @@ def _reduce_none(val, _values, result)
539
539
  end
540
540
 
541
541
  end # class GeneratedParser
542
- end # module Tomlrb
542
+ end # module Tomlrb
@@ -4,7 +4,7 @@ class Tomlrb::Parser < Tomlrb::GeneratedParser
4
4
 
5
5
  def initialize(tokenizer, **options)
6
6
  @tokenizer = tokenizer
7
- @handler = Tomlrb::Handler.new(options)
7
+ @handler = Tomlrb::Handler.new(**options)
8
8
  super()
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Tomlrb
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomlrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francois Bernier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-21 00:00:00.000000000 Z
11
+ date: 2019-11-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A racc based toml parser
14
14
  email: