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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/cbor-cri.gemspec +1 -1
  3. data/lib/cbor-cri.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7837e86b7141242b2c274f0fc1c8cb510f67cc060d4453321b71bd32cd09ddca
4
- data.tar.gz: b556e3ad03cd371159eb8656f0583ed0569c5c52e3e94655e874d5c39c7b0e06
3
+ metadata.gz: c0c11f15918e5795f242182b44abad12d149cfe0e24d95778355c4b3eb168f8e
4
+ data.tar.gz: 8583c3864b49d4e449ecd8fa936bc73db1a380e88109bb690cf8f75b701eaf4c
5
5
  SHA512:
6
- metadata.gz: 562339239e9243179307e64823a8fc780448cb6866bdd36493f41aaebe6f55c92436c16799fb0739985d9cc46cae55935f240a1a287f2c6d26ed258ed7a114f6
7
- data.tar.gz: fadba4388a27a3966f9cbb442ff48987d40823d62744a76285bb6f06ad714a2e8d44968aac5e606481301228512a1ffab5c2c8b2068e119617aaee6327d001f5
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"
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(".") if host_a.first.encoding != Encoding::BINARY
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbor-cri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann