toml-rb 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/toml-rb/table_array.rb +1 -0
- data/test/example.toml +10 -0
- data/test/toml_examples.rb +6 -1
- data/test/toml_test.rb +8 -1
- data/toml-rb.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32ade102e20e23061b94e8ca46213e6339bb6ed5
|
4
|
+
data.tar.gz: 2c733d188a03f4a82eed240b97ebdbfdc30d7773
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c0af758d312662bddf908b2e7640fba6f7eacdd81d4c70b59bf85d63858d5422f7035a5979d7397080eeac528b5446afc2483312f78e76dff2bc17a3ed83d9
|
7
|
+
data.tar.gz: 1dd538cd557011d7a2a1c8fe8c1583788d3080cabf0b42239dd92fcad9f26573a93cf003b6b401a89afeaa84adc8bb465ec523fad1ba69233ce2dc530ab91ed3
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Parser Usage
|
|
19
19
|
------------
|
20
20
|
|
21
21
|
```ruby
|
22
|
-
require 'toml'
|
22
|
+
require 'toml-rb'
|
23
23
|
|
24
24
|
# From a file!
|
25
25
|
path = File.join(File.dirname(__FILE__), 'path', 'to', 'file')
|
@@ -45,7 +45,7 @@ Dumper Usage
|
|
45
45
|
------------
|
46
46
|
|
47
47
|
```ruby
|
48
|
-
require 'toml'
|
48
|
+
require 'toml-rb'
|
49
49
|
|
50
50
|
# Simple example
|
51
51
|
TomlRB.dump( simple: true)
|
data/lib/toml-rb/table_array.rb
CHANGED
data/test/example.toml
CHANGED
data/test/toml_examples.rb
CHANGED
@@ -162,7 +162,12 @@ class TomlRB::Examples
|
|
162
162
|
'durable' => true,
|
163
163
|
'auto_delete' => false
|
164
164
|
}
|
165
|
-
}
|
165
|
+
},
|
166
|
+
"products" => [
|
167
|
+
{ "name" => "Hammer", "sku" => 738_594_937 },
|
168
|
+
{},
|
169
|
+
{ "name" => "Nail", "sku" => 284_758_393, "color" => "gray" }
|
170
|
+
]
|
166
171
|
}
|
167
172
|
end
|
168
173
|
|
data/test/toml_test.rb
CHANGED
@@ -75,7 +75,14 @@ class TomlTest < Minitest::Test
|
|
75
75
|
durable: true,
|
76
76
|
auto_delete: false
|
77
77
|
}
|
78
|
-
}
|
78
|
+
},
|
79
|
+
|
80
|
+
products: [
|
81
|
+
{ name: "Hammer", sku: 738_594_937 },
|
82
|
+
{},
|
83
|
+
{ name: "Nail", sku: 284_758_393, color: "gray" }
|
84
|
+
]
|
85
|
+
|
79
86
|
}
|
80
87
|
|
81
88
|
assert_equal(hash, parsed)
|
data/toml-rb.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toml-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emiliano Mancuso
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: citrus
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.6.12
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Toml parser in ruby, for ruby.
|