cryptomate_api 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01ca8f5c3116e059e1bfc7988057b7ec6005f47cf7e13f3446929c16d2b92216
4
- data.tar.gz: e7ebffbebe64b76ae748fd3ad838c79f0d29b98bd34b0443bdecc7570897799a
3
+ metadata.gz: a034da10f906a8e3be0ba5880b0a57420fb7181bb85b465298ab9d63d0a1fee1
4
+ data.tar.gz: 922c21f2cf5a54408a16015ceb94b3972718888171009aa8122b4c1a8a97d8b8
5
5
  SHA512:
6
- metadata.gz: 59accf08c6decfa7958efea06fceecb1e6c216394edb56d3b47664e89fb21605468e50d785317c79abdb96d45adf0e7b472df4bdbae086e84f0d81dd48e7d316
7
- data.tar.gz: 9fc4a32a8856c6f67e25cd149002aa5ff5626afdc4cbee76e9ebdad8c3b66c70e5b67b334c1226773183c070c6df2b7f3442d96c0df3c682a22fe7b3e63e50cb
6
+ metadata.gz: 5d488a6ae9436207836db335480e61f4eb110a13f5b00ea437e0c3323010b53be872a4f5468367f606c609e44aa4d42b90a0e1b6ad8a7ab63d09c2353a487012
7
+ data.tar.gz: 200cfc3c1ab4593bbcd1ed99b62fa2980701e09ada02d69c2facdc02b8bd7d29fae34edc262f6b824126c4cd4eb908e19edb252e014a86984e03e3808dee6ae9
@@ -3,7 +3,7 @@ require 'httparty'
3
3
  module CryptomateApi
4
4
  class Base
5
5
  include HTTParty
6
- base_uri 'https://cryptomate.me/api'
6
+ base_uri CryptomateApi.configuration.base_uri
7
7
 
8
8
  # Initializes the client with the given API key
9
9
  def initialize(api_key = CryptomateApi.configuration.api_key)
@@ -11,10 +11,11 @@ module CryptomateApi
11
11
  end
12
12
 
13
13
  class Configuration
14
- attr_accessor :api_key
14
+ attr_accessor :api_key, :base_uri
15
15
 
16
16
  def initialize
17
17
  @api_key = nil
18
+ @base_uri = 'https://cryptomate.me/api'
18
19
  end
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CryptomateApi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
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.0
4
+ version: 0.1.2
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-24 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty