kontakt 1.0.1 → 1.0.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kontakt.rb +6 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae40f5ca91c36ee62fa03d9129df12e2138c7027
4
- data.tar.gz: 9c96730519467e29ab52aa13de1790c75018de11
3
+ metadata.gz: 8ec280438191fe3c3bfdd9aa0f0b838ec57ba89f
4
+ data.tar.gz: d27bd20f4255741ef0ca8f9b069d2254f9397a90
5
5
  SHA512:
6
- metadata.gz: 45f258093f31e7ee4420f57a395dbccac882de846bf7711cd264516dac1c1f1e9efa3dc4564ad0b4ef3f32cb10fe528ddd920013bee9e657d8df593b8df1722f
7
- data.tar.gz: e93afd30d9c9267c8486cbaa0b41d56332d017ad71ec91f2b0a6fe87c71522dc97b6eac05fe41be39b768852eb0aeae9606f6aee7f953b778e27d6060309c4f8
6
+ metadata.gz: 7a8d8734934605f52c684d246c97c8060fe75e368f547bf9edb79c4deed9fce009fbde84e82770e3f6f1a63f70d64ca1de5c72f57bc319636624ce2a0aa62cb7
7
+ data.tar.gz: 28de5cdf8ee877b227ac66a9a1acd617af4ede6e40227b09f479203a1ddf6e5f321e930befad512ae63ad61bab8d0487894833595b03d75c51b7ae9de1aa827a
@@ -31,15 +31,17 @@ module Kontakt
31
31
  def key
32
32
  raise "The API key is needed" unless @key
33
33
  @key
34
- end
34
+ end
35
35
  end
36
36
 
37
- RESOURCE_DATA = {:accept => "application/vnd.com.kontakt+json;version=6", :"Api-Key" => Kontakt.configuration.key, :content_type => "application/x-www-form-urlencoded"}
37
+ def self.resource_data
38
+ return {:accept => "application/vnd.com.kontakt+json;version=6", :"Api-Key" => Kontakt.configuration.key, :content_type => "application/x-www-form-urlencoded"}
39
+ end
38
40
 
39
- class Auth
41
+ class Auth < Configuration
40
42
  # => Kontakt Authentication
41
43
  def self.make_request(method, path, options = {}, payload = {})
42
- RestClient::Request.execute(method: method.to_sym, url: API_URL + path, payload: payload, headers: options.merge(RESOURCE_DATA), verify_ssl: false)
44
+ RestClient::Request.execute(method: method.to_sym, url: API_URL + path, payload: payload, headers: options.merge(Kontakt.resource_data), verify_ssl: false)
43
45
  end
44
46
  end
45
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontakt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Winn