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 +4 -4
- data/lib/cryptomate_api/base.rb +4 -3
- data/lib/cryptomate_api/version.rb +1 -1
- data/lib/cryptomate_api.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 199775a68145d85d1b95f122bc91c1a96a25a3da16b779fd6add53c438503f63
|
|
4
|
+
data.tar.gz: 8fe4b6f42b8ae304f70395db1fc78d2fa072ab1717b87ba1bbfed77076dfd2ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff6ef0361d747f4882e52942cd07204bc9aa9d3e76b6d537016702004b36b86b070b35cf1ba08cc0bcda83a108e3ce9dfb14887532b65b8ebb846710f0e7ccdb
|
|
7
|
+
data.tar.gz: a80ba960eb60371ef13fb766a5a4eb4e3bd3a3105d3069878608b1459512c1a5421d897285ba6e3f654812a3a9c193631a775b19a3f59cc7e07e6d2c53ea3735
|
data/lib/cryptomate_api/base.rb
CHANGED
|
@@ -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
|
|
10
|
-
|
|
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
|
data/lib/cryptomate_api.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2023-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|