tezos_client 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 46ed335e425ed73c260d946303db2c18422cc446c938a3e0d386591058692ccf
4
- data.tar.gz: 47210c2b24fefe92c408f1e1e05c6466eab719fbca394cbb636958efb08d6fce
3
+ metadata.gz: 0f8a5f5e9b66ff1d74d7682cb6d47ff7022897b9dc4d741c5813506e13d9d05c
4
+ data.tar.gz: 2c3603060e3206a92d187a22c256519aa628fd8ab5cbbcb3c152118e524d5394
5
5
  SHA512:
6
- metadata.gz: 128df332ac3f2f29150eb324594856a0c91b7a5194c222782bfdf2a56b953bb1d5d21e9969dc7fc3e69853809518fbeb806941ad361a47b44c1d9b66ee4b3d6b
7
- data.tar.gz: fb412b5a3bad46ddbcbb52b99ab56d6068700bb4eb621854ff389a672c97a6b3b323e2abb87c8b0a2eb42cb5025fa1df82f7261aa76574b6efad48232c42c82f
6
+ metadata.gz: 00460ec7577382a2d8d7a94ea838fd336cbb9cd156ac54dde53da302b52b33ac32e5aeda71379bb1d899da292bd3eedd095fa70b4e628d656b2ae12c47c607ee
7
+ data.tar.gz: 67eb3bb185ac4d929ce7e33a57fc39c52176fe8f774228615b67f06790924c33d414052349de0e236f7954e8da842cc382e662b89a18f63d1cf47494e9162d15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tezos_client (0.4.1)
4
+ tezos_client (0.4.2)
5
5
  activesupport (~> 5.2.0)
6
6
  base58 (~> 0.2.3)
7
7
  bip_mnemonic (~> 0.0.2)
@@ -45,7 +45,7 @@ GEM
45
45
  domain_name (0.5.20180417)
46
46
  unf (>= 0.0.5, < 1.0.0)
47
47
  erubi (1.8.0)
48
- ffi (1.10.0)
48
+ ffi (1.11.1)
49
49
  hashdiff (0.3.8)
50
50
  http-cookie (1.0.3)
51
51
  domain_name (~> 0.5)
@@ -61,7 +61,7 @@ GEM
61
61
  method_source (0.9.2)
62
62
  mime-types (3.2.2)
63
63
  mime-types-data (~> 3.2015)
64
- mime-types-data (3.2018.0812)
64
+ mime-types-data (3.2019.0331)
65
65
  mini_portile2 (2.4.0)
66
66
  minitest (5.11.3)
67
67
  money-tree (0.10.0)
@@ -129,7 +129,7 @@ GEM
129
129
  thread_safe (~> 0.1)
130
130
  unf (0.1.4)
131
131
  unf_ext
132
- unf_ext (0.0.7.5)
132
+ unf_ext (0.0.7.6)
133
133
  unicode-display_width (1.4.1)
134
134
  vcr (4.0.0)
135
135
  webmock (3.5.1)
@@ -63,8 +63,14 @@ class TezosClient
63
63
 
64
64
  private
65
65
 
66
+ def get_error_id(error)
67
+ error[:id]
68
+ rescue TypeError
69
+ nil
70
+ end
71
+
66
72
  def exception_klass(error)
67
- case error[:id]
73
+ case get_error_id(error)
68
74
  when "proto.003-PsddFKi3.operation.invalid_activation"
69
75
  TezosClient::InvalidActivation
70
76
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class TezosClient
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
@@ -7,7 +7,7 @@ sudo apt-get install -y -qq libgmp-dev
7
7
 
8
8
  # do this in a second step
9
9
  # for ubuntu, these packages are too old or not available in xenial
10
- sudo add-apt-repository "deb http://fr.archive.ubuntu.com/ubuntu artful main universe"
10
+ sudo add-apt-repository "deb http://fr.archive.ubuntu.com/ubuntu bionic main universe"
11
11
  sudo apt-get update -qq
12
12
  sudo apt-get install -y -qq \
13
13
  libsecp256k1-dev libsecp256k1-0 libsodium-dev libssl-dev \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tezos_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Michard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler