coin-address-validators 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/coin-address-validators.rb +1 -1
- data/lib/coin-address-validators/version.rb +1 -1
- data/spec/lib/coin-address-validators_spec.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 638fba2600d5e49cc76c26aeed7da323568e0064
|
4
|
+
data.tar.gz: f9741d00c2fbbf8d75d5d2d8da6a8e9128f3a9a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d3c7763b04e3c769e20be2080c31adcc21fcdda26fa8553a1c2be99233cc6c1b833f2788aaf5d0113a52b952b2b6abdf669f25f543d8aacfde5e40fce57ece9
|
7
|
+
data.tar.gz: 97985c8319560e90f7614c26aa524d2528632884c483303a6d597a98c2427acd09d9e3dc26f07908e3871e6cc2dcf34406f9e145f4ee4b1459a2e726715faad1
|
data/Gemfile.lock
CHANGED
@@ -56,5 +56,15 @@ RSpec.describe CoinAddressValidators do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
59
|
-
end
|
60
59
|
|
60
|
+
describe "BchValidator" do
|
61
|
+
describe "#parse_cash_addr" do
|
62
|
+
context "invalid address" do
|
63
|
+
it "handles gracefully" do
|
64
|
+
legacy_address, ok = CoinAddressValidators["bch"].parse_cash_addr("ABC")
|
65
|
+
expect(ok).to be_falsey
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|