rlp 0.7.1 → 0.7.2

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
  SHA1:
3
- metadata.gz: 939d0cbd86b85aac50e696c141eab6fef81498df
4
- data.tar.gz: 3beff680ee14484c63662e064c120b490ec19f2d
3
+ metadata.gz: cead02f7fbe91ad4769fc782868b1e5e3164aa57
4
+ data.tar.gz: 1fcd8e1cdd04cf859edb55948e97cc615a3014c2
5
5
  SHA512:
6
- metadata.gz: d683cf83b0fdd1287735d5292b14c9554ee74374ed562350e74c2e54b98fd2959378618bd9fc1b7c86fb34ca4a41694d42276c03ccbbe05fc61ed04a3da22ee9
7
- data.tar.gz: d1d94001e70c399ae14cac87c0c0fd0fc29efbffb9ef42085ec8b11c4824eae94bdaef280ab5825ae2890453dfadf8c439208ce0ef4c020aecbd937bbe50b7a6
6
+ metadata.gz: 4438a85ad8cbde73ff8dc84db0e2b62efcb5b4abd446ccbd2ef2b8a436ded2fcd2857d7449eb8b18f701bc9b2af473ebb856494f54c46cf70874822b7e71b377
7
+ data.tar.gz: 7c991c6c754fef3a6ddc1a3c148c5ba6e55decb65f7401dd1f2b98345dba33088843ec57f1d10fb45f592faafa0fae172821f62a6db5e28faabfba2a365a20e5
@@ -60,6 +60,7 @@ module RLP
60
60
 
61
61
  def decode_hex(s)
62
62
  raise TypeError, "Value must be an instance of string" unless s.instance_of?(String)
63
+ raise TypeError, 'Non-hexadecimal digit found' unless s =~ /\A[0-9a-fA-F]*\z/
63
64
  [s].pack("H*")
64
65
  end
65
66
 
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : ascii-8bit -*-
2
2
 
3
3
  module RLP
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Xie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake