multibases 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/multibases/bare.rb +3 -2
- data/lib/multibases/version.rb +1 -1
- data/multibases.gemspec +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0305ee658756f0f00d70b606c22c24133ba5e91a0aa494dc15d2a314ebeb3942
|
4
|
+
data.tar.gz: d243731352a43fa3398ad6a51900632af5212d71fcc540b63d3888f25a4630a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 553a55fd1fd447709f5c9a334907b1f95e30e3121afaad30c753f9f6388367cdd56f7aa710ea50ac1b4d34556979657997a041d86008b4f532ff3451b3092ad0
|
7
|
+
data.tar.gz: 935370e50f81face4ed193fd9b96ad9353ccdded9011ff7c8fc3b1d885846bb4e40f7541a0d7d7034c7b9d089c4f0beef0dbd8ae7b98c843e7052b78e72f25dc
|
data/CHANGELOG.md
CHANGED
data/lib/multibases/bare.rb
CHANGED
@@ -92,8 +92,9 @@ module Multibases
|
|
92
92
|
)
|
93
93
|
end
|
94
94
|
|
95
|
-
def decorate(
|
96
|
-
return
|
95
|
+
def decorate(encoded, encoding = nil)
|
96
|
+
return encoded.pack if encoded.is_a?(Encoded)
|
97
|
+
raise ArgumentError, 'Missing encoding of encoded data' unless encoding
|
97
98
|
|
98
99
|
encoded = encoded.bytes unless encoded.is_a?(Array)
|
99
100
|
|
data/lib/multibases/version.rb
CHANGED
data/multibases.gemspec
CHANGED
@@ -9,6 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.version = Multibases::VERSION
|
10
10
|
spec.authors = ['Derk-Jan Karrenbeld']
|
11
11
|
spec.email = ['derk-jan+github@karrenbeld.info']
|
12
|
+
spec.license = 'MIT'
|
12
13
|
|
13
14
|
spec.summary = 'Ruby implementation of the multibase specification'
|
14
15
|
spec.description = %q(
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multibases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
@@ -88,7 +88,8 @@ files:
|
|
88
88
|
- lib/table.csv
|
89
89
|
- multibases.gemspec
|
90
90
|
homepage: https://github.com/SleeplessByte/ruby-multibase
|
91
|
-
licenses:
|
91
|
+
licenses:
|
92
|
+
- MIT
|
92
93
|
metadata:
|
93
94
|
homepage_uri: https://github.com/SleeplessByte/ruby-multibase
|
94
95
|
source_code_uri: https://github.com/SleeplessByte/ruby-multibase
|