cbor-cri 0.0.3 → 0.0.4
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/cbor-cri.gemspec +1 -1
- data/lib/cbor-cri.rb +2 -2
- 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: c0c11f15918e5795f242182b44abad12d149cfe0e24d95778355c4b3eb168f8e
|
|
4
|
+
data.tar.gz: 8583c3864b49d4e449ecd8fa936bc73db1a380e88109bb690cf8f75b701eaf4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ee749d7a648d54e87c7c119def805c89a93e46a1f9c195bd81b57d3559b27ea7513b5f503a96ad2f90b69c01c0b4766f29ecfebdafb456afd261931e673e49d
|
|
7
|
+
data.tar.gz: b67da8c0432bc946196e0cf564c9bbf65b20a0c32731a47a79796951bded631c796056288fb55e7a40ea5d9b17b0219003285d4a089e76ff2bc114254cacbf5c
|
data/cbor-cri.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "cbor-cri"
|
|
3
|
-
s.version = "0.0.
|
|
3
|
+
s.version = "0.0.4"
|
|
4
4
|
s.summary = "CBOR (Concise Binary Object Representation) diagnostic notation"
|
|
5
5
|
s.description = %q{cbor-cri implements CBOR constrained resource identifiers, draft-ietf-core-href}
|
|
6
6
|
s.author = "Carsten Bormann"
|
data/lib/cbor-cri.rb
CHANGED
|
@@ -119,7 +119,7 @@ class CBOR::CRI
|
|
|
119
119
|
end
|
|
120
120
|
if fragment
|
|
121
121
|
ret << "#"
|
|
122
|
-
ret << fragment
|
|
122
|
+
ret << Array(fragment).join("") # XXX PET workaround
|
|
123
123
|
end
|
|
124
124
|
ret
|
|
125
125
|
end
|
|
@@ -154,7 +154,7 @@ class CBOR::CRI
|
|
|
154
154
|
if Array === authority
|
|
155
155
|
p = authority.last
|
|
156
156
|
host_a = authority[0...-1] if Integer === p
|
|
157
|
-
return host_a.join(".")
|
|
157
|
+
return host_a.join(".") unless String === host_a.first && host_a.first.encoding == Encoding::BINARY
|
|
158
158
|
n_to_a(host_a.first)
|
|
159
159
|
end
|
|
160
160
|
end
|