yeptris 0.1.8.0 → 0.1.8.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/version.rb +1 -1
- data/lib/yeptris/yaml.rb +8 -5
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cce504357e9e57226d9b6011ee06517ece957d208069248c7d8cad4730e07bf3
|
|
4
|
+
data.tar.gz: 4c9e00bc652956849708b2947762acfa89310122fedcce225390251ab079b4d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c9f7bad9c4990646c33145483ddfe7f3b398c5293797704b666b6826129178573c48ff073a480c40c8ef659e11e3856d173565e2809f6dd16e016277a546af8
|
|
7
|
+
data.tar.gz: 7ab59b9e81f80fdcbe13b67220d01eccc4104a06dbb9d653cc801dfa3f2c93e9a9093f55771d849c5031328ddea219012865fd9d38f1978a38645507e6f19709
|
data/lib/yeptris/version.rb
CHANGED
data/lib/yeptris/yaml.rb
CHANGED
|
@@ -85,7 +85,7 @@ module Yeptris
|
|
|
85
85
|
|
|
86
86
|
def dump(obj, canonical: false)
|
|
87
87
|
parts = []
|
|
88
|
-
blob =
|
|
88
|
+
blob = String.new(encoding: Encoding::BINARY)
|
|
89
89
|
off = [0]
|
|
90
90
|
# one pack per SCALAR; containers reuse frozen constants
|
|
91
91
|
emit = lambda do |op, style, o, len|
|
|
@@ -134,10 +134,13 @@ module Yeptris
|
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
def scalar(text, plain, emit, blob, off)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
# a BINARY blob absorbs any String bytewise (String#<< on
|
|
138
|
+
# ASCII-8BIT is compatible with every encoding) — the old
|
|
139
|
+
# text.b made a throwaway copy of every scalar before the
|
|
140
|
+
# blob's own copy
|
|
141
|
+
emit.call(SCALAR, plain ? STYLE_PLAIN : STYLE_DQ, off[0], text.bytesize)
|
|
142
|
+
blob << text
|
|
143
|
+
off[0] += text.bytesize
|
|
141
144
|
end
|
|
142
145
|
|
|
143
146
|
def key_text(k)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yeptris
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.8.
|
|
4
|
+
version: 0.1.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: ffi
|
|
@@ -55,7 +54,6 @@ metadata:
|
|
|
55
54
|
homepage_uri: https://github.com/leptris/yeptris
|
|
56
55
|
source_code_uri: https://github.com/leptris/yeptris
|
|
57
56
|
changelog_uri: https://github.com/leptris/yeptris/releases
|
|
58
|
-
post_install_message:
|
|
59
57
|
rdoc_options: []
|
|
60
58
|
require_paths:
|
|
61
59
|
- lib
|
|
@@ -70,8 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
68
|
- !ruby/object:Gem::Version
|
|
71
69
|
version: '0'
|
|
72
70
|
requirements: []
|
|
73
|
-
rubygems_version:
|
|
74
|
-
signing_key:
|
|
71
|
+
rubygems_version: 4.0.16
|
|
75
72
|
specification_version: 4
|
|
76
73
|
summary: 'The YAML counterpart of libleptris: ultra-performance YAML 1.2 for Ruby'
|
|
77
74
|
test_files: []
|