bitcoin-ruby 0.0.17 → 0.0.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b5d77f8ba02009cbea4c5dc324670403d58c9ff
4
- data.tar.gz: d298f03cd6a1c826a8910b6d3ca65cb873f9b299
3
+ metadata.gz: b4f48a8cb6fda24adfe21240efb4da2f74d9528d
4
+ data.tar.gz: fe92c36e2756b66f9f676e7082ef8a7aac56fd44
5
5
  SHA512:
6
- metadata.gz: 931ee77123588e85096d693324184feb82a272b5ddae7254794f6df63b465519abe6e85dbcac50625e56e20a0c8f0ad6fd8b4eee2798dd1e753675a5cdad3ca5
7
- data.tar.gz: 6d30989aae958ab0de63eea149e4fba5f72ac230ed0257c49fd38baa7938413dc3cd2eb2f801e33d5b9eee4c1204f34db61ec088cf5197af2219415e31064fbc
6
+ metadata.gz: ead4745327db1385e88ef610de2518d692281f0750c767e8a08216328aaa198218e67420c4f96ee35df5393aa70b19dfc58aba2612fb840555ff3bcfcdabbf9a
7
+ data.tar.gz: 8bc95d49dcda8806d2e850e4060510518bf92c210f75a894f46646e4ec10368a957581cbadd859a814a4cdaa3f5ada1d120c5b2d96a93f0ccbd30d8060597bef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitcoin-ruby (0.0.17)
4
+ bitcoin-ruby (0.0.18)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -734,7 +734,7 @@ class Bitcoin::Script
734
734
 
735
735
  if is_witness_v0_keyhash? || is_witness_v0_scripthash?
736
736
  program_hex = chunks[1].unpack("H*").first
737
- return Bitcoin.encode_segwit_address(0, program_hex)
737
+ return [Bitcoin.encode_segwit_address(0, program_hex)]
738
738
  end
739
739
 
740
740
  []
@@ -1,3 +1,3 @@
1
1
  module Bitcoin
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
@@ -207,6 +207,8 @@ describe 'Bitcoin::Script' do
207
207
  Script.new(SCRIPT[3]).get_addresses
208
208
  .should == ["1JiaVc3N3U3CwwcLtzNX1Q4eYfeYxVjtuj",
209
209
  "19Fm2gY7qDTXriNTEhFY2wjxbHna3Gvenk", "1B6k6g1d2L975i7beAbiBRxfBWhxomPxvy"]
210
+ Script.new(SCRIPT[7]).get_addresses.
211
+ should == ["bc1qrcs9z5wfpstyw5mr6ydhhrprtnmv0454y6laym"]
210
212
  end
211
213
 
212
214
  it "should get op_return data" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoin-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - lian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a ruby library for interacting with the bitcoin protocol/network
14
14
  email: