toby 1.0.0.pre.rc2 → 1.0.0.pre.rc3
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 +4 -4
- data/lib/toby.rb +1 -1
- data/lib/toby/toml/array.rb +1 -1
- data/lib/toby/toml/{toml_file.rb → toml_data.rb} +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce2b5aa328ae2fe6069c2b6d389affecea1766c6e65e8973403f22a24dbc7f4
|
4
|
+
data.tar.gz: 79932f22dc812332f2626e34db793c2b44c28cb579f353c9356405c983d73e63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d10c7e73f82202e130766c7dbf9b88099c93d739e91d76ec2d27dd9d831657cd4a5d8430988ad411c671c309aa055251bef06bffdc66015086404cc2e41978
|
7
|
+
data.tar.gz: d1a44248a5ae1b570c1a43f7c19509fbb70115feeab3b361fa64dcbbecf033e009e011b4446ca224f108581d33c6f9862e3480edb4e43551648fc78a98de216a
|
data/lib/toby.rb
CHANGED
@@ -23,7 +23,7 @@ require_relative 'toby/toml/array'
|
|
23
23
|
require_relative 'toby/toml/inline_table'
|
24
24
|
require_relative 'toby/toml/key_value'
|
25
25
|
require_relative 'toby/toml/table'
|
26
|
-
require_relative 'toby/toml/
|
26
|
+
require_relative 'toby/toml/toml_data'
|
27
27
|
|
28
28
|
require_relative 'toby/parser/string'
|
29
29
|
require_relative 'toby/parser/datetime'
|
data/lib/toby/toml/array.rb
CHANGED
@@ -22,7 +22,7 @@ module Toby
|
|
22
22
|
end
|
23
23
|
|
24
24
|
# @param options [Hash] The options hash for the object's #to_hash method when applicable
|
25
|
-
# (see Toby::TOML::
|
25
|
+
# (see Toby::TOML::TOMLData#to_hash)
|
26
26
|
# @return [Array] Returns the value of #value, the value of #to_hash,
|
27
27
|
# or the object itself for every object in the Toby::TOML::Array
|
28
28
|
def to_hash(options = {})
|
@@ -4,7 +4,7 @@ module Toby
|
|
4
4
|
module TOML
|
5
5
|
# Represents an entire TOML file
|
6
6
|
# @see https://toml.io/en/v1.0.0-rc.3
|
7
|
-
class
|
7
|
+
class TOMLData < Toby::TOML::Table
|
8
8
|
# @return [Array<Toby::TOML::Table>] The tables in the TOML file
|
9
9
|
attr_reader :tables
|
10
10
|
|
@@ -54,7 +54,7 @@ module Toby
|
|
54
54
|
end
|
55
55
|
|
56
56
|
tables.each do |table|
|
57
|
-
next if table.is_a? Toby::TOML::
|
57
|
+
next if table.is_a? Toby::TOML::TOMLData
|
58
58
|
|
59
59
|
output.puts table.dump
|
60
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Polny
|
@@ -30,7 +30,7 @@ files:
|
|
30
30
|
- lib/toby/toml/inline_table.rb
|
31
31
|
- lib/toby/toml/key_value.rb
|
32
32
|
- lib/toby/toml/table.rb
|
33
|
-
- lib/toby/toml/
|
33
|
+
- lib/toby/toml/toml_data.rb
|
34
34
|
homepage: https://github.com/joe-p/toby
|
35
35
|
licenses:
|
36
36
|
- MIT
|