cryptomate_api 0.1.3 → 0.1.4

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: 199775a68145d85d1b95f122bc91c1a96a25a3da16b779fd6add53c438503f63
4
- data.tar.gz: 8fe4b6f42b8ae304f70395db1fc78d2fa072ab1717b87ba1bbfed77076dfd2ef
3
+ metadata.gz: 665269594527cdc382621877f03ce9945b856cd13564bda1602db1025fda8691
4
+ data.tar.gz: fe1fc8c40784ff932c02416be565846f6045dc8d3f06bd92185765fc2d4561aa
5
5
  SHA512:
6
- metadata.gz: ff6ef0361d747f4882e52942cd07204bc9aa9d3e76b6d537016702004b36b86b070b35cf1ba08cc0bcda83a108e3ce9dfb14887532b65b8ebb846710f0e7ccdb
7
- data.tar.gz: a80ba960eb60371ef13fb766a5a4eb4e3bd3a3105d3069878608b1459512c1a5421d897285ba6e3f654812a3a9c193631a775b19a3f59cc7e07e6d2c53ea3735
6
+ metadata.gz: 1b8d78e0075c9cb87a036aba6153cc5d5ef4f93e65e71346d749221a465b25808a400dd0fb874cf96435c54be05eaadba81006b3addef6fb9347674a8e515baf
7
+ data.tar.gz: dc44a554406da97883282b4bd583d343a9c6cd7732d78dd78dad1e9ac8db942d934f4b1cc91646888cb7f987461a9e6410eba03ee3fe0da01bdfe3d1b7ee060a
data/README.md CHANGED
@@ -31,6 +31,9 @@ require 'cryptomate_api'
31
31
 
32
32
  CryptomateApi.configure do |config|
33
33
  config.api_key = 'your_api_key_here'
34
+
35
+ # optional:
36
+ config.base_uri = 'your-sandbox-uri'
34
37
  end
35
38
  ```
36
39
  ## Usage
@@ -9,7 +9,7 @@ module CryptomateApi
9
9
  CryptomateApi.configuration ||= CryptomateApi::Configuration.new
10
10
  @api_key = CryptomateApi.configuration.api_key
11
11
  self.class.base_uri CryptomateApi.configuration.base_uri
12
- self.class.headers "Authorization" => "Bearer #{@api_key}"
12
+ self.class.headers "x-api-key" => "#{@api_key}"
13
13
  end
14
14
  end
15
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CryptomateApi
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptomate_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Albarello