cryptomate_api 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/cryptomate_api/base.rb +5 -4
- 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: 665269594527cdc382621877f03ce9945b856cd13564bda1602db1025fda8691
|
4
|
+
data.tar.gz: fe1fc8c40784ff932c02416be565846f6045dc8d3f06bd92185765fc2d4561aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b8d78e0075c9cb87a036aba6153cc5d5ef4f93e65e71346d749221a465b25808a400dd0fb874cf96435c54be05eaadba81006b3addef6fb9347674a8e515baf
|
7
|
+
data.tar.gz: dc44a554406da97883282b4bd583d343a9c6cd7732d78dd78dad1e9ac8db942d934f4b1cc91646888cb7f987461a9e6410eba03ee3fe0da01bdfe3d1b7ee060a
|
data/README.md
CHANGED
data/lib/cryptomate_api/base.rb
CHANGED
@@ -3,12 +3,13 @@ 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
|
-
|
11
|
-
|
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
|
12
|
+
self.class.headers "x-api-key" => "#{@api_key}"
|
12
13
|
end
|
13
14
|
end
|
14
15
|
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.4
|
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
|