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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b13bedd48880500a221befb94a50e4846437428e1acd7c52639d31fbfc0f6eaa
4
- data.tar.gz: ee4a4bc0057c318236f3dd9152582b1bc9f621acd42e88081ba910280146280f
3
+ metadata.gz: 0305ee658756f0f00d70b606c22c24133ba5e91a0aa494dc15d2a314ebeb3942
4
+ data.tar.gz: d243731352a43fa3398ad6a51900632af5212d71fcc540b63d3888f25a4630a5
5
5
  SHA512:
6
- metadata.gz: 889019b38214fe663dced15fd1c01cf4d27cf06778b5f4f27480c0fd75630c8cfaa929b0c6a725d233e675ae1e07190282ba54e72c031e69201ee6d001dc9ff0
7
- data.tar.gz: f52ad51235bd80e03ac6fc4c4d191d1c63c6875eb0e6c794aa956f221cc09bbb8ba8375a91b28e0a1bbbd29da83368ed4ccfae36dc9cf80d9e3afa3ced68ed80
6
+ metadata.gz: 553a55fd1fd447709f5c9a334907b1f95e30e3121afaad30c753f9f6388367cdd56f7aa710ea50ac1b4d34556979657997a041d86008b4f532ff3451b3092ad0
7
+ data.tar.gz: 935370e50f81face4ed193fd9b96ad9353ccdded9011ff7c8fc3b1d885846bb4e40f7541a0d7d7034c7b9d089c4f0beef0dbd8ae7b98c843e7052b78e72f25dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1
4
+
5
+ - Add tests for wrappers
6
+
3
7
  ## 0.3.0
4
8
 
5
9
  - Fix convenience methods `names` and `codes`.
@@ -92,8 +92,9 @@ module Multibases
92
92
  )
93
93
  end
94
94
 
95
- def decorate(encoding, encoded = nil)
96
- return encoding.pack if encoding.is_a?(Encoded)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Multibases
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
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.0
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