digifi_api 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 583124d9612e11aa5ff17c6cb865e9acbce3bf8a
4
- data.tar.gz: a1c05711f35d4dfbce804487312e2362c1ac4900
3
+ metadata.gz: dd0dd2a4d737290d6637ca599e9a86823b27a3c1
4
+ data.tar.gz: 430d1d03336d1e50266034b2cda9878c7dfbca88
5
5
  SHA512:
6
- metadata.gz: 968466570b31f5a271fc29a2c768a3010e11e63989a7463836b71d74866c20cdbd811cacb6a9135565c8c4fe059c133650e66d3bb86b972fdc3d94ed6e74cfc8
7
- data.tar.gz: 9470bf1d94a0016625afa55393cd205b2cd24b4c2e0dab37d39f8e8e835a7e43cf9c81c4e833cd881d7baa1696e1c90b3bdcc27a36f66d60c5ee99916322729e
6
+ metadata.gz: 215ae1d949676e59b0c96a657f38c6e404ce564f1cddd4f9ad63e174458e8da3d5b6a84a7616482749d62a052bf7f927ee60bfa21c8796d718f4ca207da7248d
7
+ data.tar.gz: c98fa8686f85781d02699023bac2aaf42a2902ce814a818d7b53f34d63580f8b5353d142b4ef8dfcebf4a2b4cb882ae30d67140004455380254df25d1af6ee7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- digifi_api (2.0.1)
4
+ digifi_api (2.0.2)
5
5
  json (~> 2.1.0)
6
6
  rest-client (~> 2.0.2)
7
7
 
@@ -5,7 +5,9 @@ module DigifiApi
5
5
  class Base
6
6
 
7
7
  def self.headers
8
- {content_type: :json, accept: :json}
8
+ headers = {content_type: :json, accept: :json}
9
+ headers['x-access-token'] = DigifiApi.configuration.x_access_token unless DigifiApi.configuration.x_access_token.nil?
10
+ return headers
9
11
  end
10
12
 
11
13
  def self.payload(elements)
@@ -13,7 +15,6 @@ module DigifiApi
13
15
  body_hash['client_id'] = DigifiApi.configuration.client_id
14
16
  body_hash['client_public_key'] = DigifiApi.configuration.client_public_key
15
17
  body_hash['client_secret'] = DigifiApi.configuration.secret
16
- body_hash['x-access-token'] = DigifiApi.configuration.x_access_token unless DigifiApi.configuration.x_access_token.nil?
17
18
  body_hash.merge!(elements)
18
19
  end
19
20
 
@@ -1,3 +1,3 @@
1
1
  module DigifiApi
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digifi_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Justin Lyman