cryptomate_api 0.1.2 → 0.1.3

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: a034da10f906a8e3be0ba5880b0a57420fb7181bb85b465298ab9d63d0a1fee1
4
- data.tar.gz: 922c21f2cf5a54408a16015ceb94b3972718888171009aa8122b4c1a8a97d8b8
3
+ metadata.gz: 199775a68145d85d1b95f122bc91c1a96a25a3da16b779fd6add53c438503f63
4
+ data.tar.gz: 8fe4b6f42b8ae304f70395db1fc78d2fa072ab1717b87ba1bbfed77076dfd2ef
5
5
  SHA512:
6
- metadata.gz: 5d488a6ae9436207836db335480e61f4eb110a13f5b00ea437e0c3323010b53be872a4f5468367f606c609e44aa4d42b90a0e1b6ad8a7ab63d09c2353a487012
7
- data.tar.gz: 200cfc3c1ab4593bbcd1ed99b62fa2980701e09ada02d69c2facdc02b8bd7d29fae34edc262f6b824126c4cd4eb908e19edb252e014a86984e03e3808dee6ae9
6
+ metadata.gz: ff6ef0361d747f4882e52942cd07204bc9aa9d3e76b6d537016702004b36b86b070b35cf1ba08cc0bcda83a108e3ce9dfb14887532b65b8ebb846710f0e7ccdb
7
+ data.tar.gz: a80ba960eb60371ef13fb766a5a4eb4e3bd3a3105d3069878608b1459512c1a5421d897285ba6e3f654812a3a9c193631a775b19a3f59cc7e07e6d2c53ea3735
@@ -3,11 +3,12 @@ require 'httparty'
3
3
  module CryptomateApi
4
4
  class Base
5
5
  include HTTParty
6
- base_uri CryptomateApi.configuration.base_uri
7
6
 
8
7
  # Initializes the client with the given API key
9
- def initialize(api_key = CryptomateApi.configuration.api_key)
10
- @api_key = api_key
8
+ def initialize
9
+ CryptomateApi.configuration ||= CryptomateApi::Configuration.new
10
+ @api_key = CryptomateApi.configuration.api_key
11
+ self.class.base_uri CryptomateApi.configuration.base_uri
11
12
  self.class.headers "Authorization" => "Bearer #{@api_key}"
12
13
  end
13
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CryptomateApi
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'cryptomate_api/base'
4
3
  require_relative 'cryptomate_api/configuration'
4
+ require_relative 'cryptomate_api/base'
5
5
 
6
6
  Dir[File.join(__dir__, 'cryptomate_api/{management,mpc,nft}/**/*.rb')].sort.each { |file| require file }
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptomate_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Albarello
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty