yeptris 0.6.2.1 → 0.6.3.1
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/yeptris/psych/visitors.rb +8 -4
- data/lib/yeptris.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12867121e6e3cef17b7cb46dcc80d1415faedba7183f33bba55d6cb9e5c5c472
|
|
4
|
+
data.tar.gz: 99242675e86f88d17d18d18db1cc557dd864e388112db1108cb974b8565221ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9c57c741bdebe557f453786bce7029b38b53d38895375f1764bcec675937a0a8bda6a5c645688f379f24ffefdbcfa35df007322003990457a63d946837251a2
|
|
7
|
+
data.tar.gz: ad7ee6c17f176b23133a18f4d2b46bc0ec32650eed17a2b53f26dbc522d260c8513f7e73aa214e0dd045cda1aa18f28d7b63574cc642e1b0f82211dcb74208e1
|
|
@@ -120,14 +120,18 @@ module Yeptris
|
|
|
120
120
|
# strings route through the builder's plain-safety helper
|
|
121
121
|
# (one quoting rule, DRY); other scalars are their own text
|
|
122
122
|
text =
|
|
123
|
-
if obj.is_a?(::
|
|
124
|
-
|
|
123
|
+
if obj.is_a?(::Time)
|
|
124
|
+
# psych-5's format_time (#300 family 1) — the FIRST cut
|
|
125
|
+
# put this branch after the Date||Time iso8601 one, dead
|
|
126
|
+
# code: Psych.dump of a Hash still emitted iso8601 (the
|
|
127
|
+
# neutral surface alone was pinned)
|
|
128
|
+
::Yeptris::YAML::BulkBuilder.time_text(obj)
|
|
129
|
+
elsif obj.is_a?(::Date)
|
|
130
|
+
obj.iso8601 # canonical calendar form (DateTime rides here too)
|
|
125
131
|
elsif obj.nil?
|
|
126
132
|
"" # libyaml's null rendering rides bare (issue #290)
|
|
127
133
|
elsif obj.is_a?(::Float)
|
|
128
134
|
::Yeptris::YAML::BulkBuilder.float_text(obj)
|
|
129
|
-
elsif obj.is_a?(::Time)
|
|
130
|
-
::Yeptris::YAML::BulkBuilder.time_text(obj)
|
|
131
135
|
else
|
|
132
136
|
obj.to_s
|
|
133
137
|
end
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Yeptris
|
|
4
4
|
# The gem's version lives in the parent namespace's file — the last
|
|
5
5
|
# internal require (yeptris/version) retired with it.
|
|
6
|
-
VERSION = "0.6.
|
|
6
|
+
VERSION = "0.6.3.1".freeze
|
|
7
7
|
# The error hierarchy lives in THIS file (the parent namespace's
|
|
8
8
|
# own file): nested constants do not trigger a parent-constant
|
|
9
9
|
# autoload, and the law forbids internal requires — defining the
|