perfect_toml_improved 0.9.1 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perfect_toml.rb +10 -4
- 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: acc9ed1b175bc4a719a9d83a9bc90e4b6e184ac7235314e8071d257c4b901837
|
4
|
+
data.tar.gz: 93c0665a983b1bd6f685c26a871a65fc820cb16cb8bcf620392061ce10a39d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36eae407ecb6089971330d14b4c5b72424868e6e8245794fe60176096e4b13b0d7d58b81e5fd68fad2de6842eb42e13fb20f78d8667d226ddc80bd1e31a73c5a
|
7
|
+
data.tar.gz: 11639736c84619dfc81505162e385706dce946f998a8c2aaa5df65e5ff8d629c9bd86b6c1e0d579f5f96fa3fb223c66cf4e6e894ba45ad8607ec5e66a454d227
|
data/lib/perfect_toml.rb
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
require "strscan"
|
24
24
|
|
25
25
|
module PerfectTOML
|
26
|
-
VERSION = "0.9.
|
26
|
+
VERSION = "0.9.3"
|
27
27
|
|
28
28
|
class LocalDateTimeBase
|
29
29
|
def to_inline_toml
|
@@ -211,9 +211,15 @@ module PerfectTOML
|
|
211
211
|
#
|
212
212
|
# See PerfectTOML.parse for options.
|
213
213
|
def self.load_file(io, **opts)
|
214
|
-
|
215
|
-
|
216
|
-
|
214
|
+
data = if IO === io
|
215
|
+
io.read
|
216
|
+
else
|
217
|
+
File.open(io, encoding: "UTF-8") do |file|
|
218
|
+
file.read
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
parse(data, **opts)
|
217
223
|
end
|
218
224
|
|
219
225
|
# call-seq:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perfect_toml_improved
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Endoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "PerfectTOML is yet another TOML parser.\nIt is fully compliant with
|
14
14
|
TOML v1.0.0, and faster than existing TOML parsers for Ruby.\nPerfectTomlImproved
|