kong 0.3.3 → 0.3.4

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
  SHA1:
3
- metadata.gz: 128c39dcd5396b44c6ea3489766feb2f330ffd61
4
- data.tar.gz: 06ea2dfe3e8a7f768274d72dad955fd255dd47b8
3
+ metadata.gz: 0f3243d96e0ac895ff07767caee3051349ed2763
4
+ data.tar.gz: e7ead99c2540795104edbd72e7751b80b684aaea
5
5
  SHA512:
6
- metadata.gz: e6e526da140002b3b139eccd3fba81a9477432d584c15b9b67ab8390948aa73f9d800a452d886f4fa34c6fe6bc65dd59ff847a523aa1ef10fca3c6d2a7561857
7
- data.tar.gz: 15d3f6f50314fdd9b240b656369c68706b252ea35c68ebc32c250e8a9cd706af5bc077d4f27efd5f984f4dcb11e83fc311e01b55bb8b08578b3d5d731184a757
6
+ metadata.gz: 130ec1c03f326ca65b2788ebdf497a7e86f9859726d29f762b678521c90fa35d56e151ce86aa8d56d2e2d48a64ced255c52e10582ba712e7236e2dec67de670b
7
+ data.tar.gz: 133536880bbb569936a15a2911a9442e97a3da3be4624d734fc1363775a2e472430581ebe2f8dc70bbeebdc9490406753cc56518bac4d46069551199a0e5cc23
@@ -1,3 +1,6 @@
1
+ # 0.3.4 (2018-09-12)
2
+ - Re-built gem package
3
+
1
4
  # 0.3.3 (2018-09-07)
2
5
  - Switch to application json content type ([#28](https://github.com/kontena/kong-client-ruby/pull/28))
3
6
  - Flatten nested plugin config items ([#27](https://github.com/kontena/kong-client-ruby/pull/27))
@@ -2,8 +2,6 @@ require 'kong/version'
2
2
  require_relative 'kong/base'
3
3
  require_relative 'kong/api'
4
4
  require_relative 'kong/belongs_to_api'
5
- require_relative 'kong/service'
6
- require_relative 'kong/route'
7
5
  require_relative 'kong/client'
8
6
  require_relative 'kong/consumer'
9
7
  require_relative 'kong/belongs_to_consumer'
@@ -103,10 +103,6 @@ module Kong
103
103
  self.id.nil?
104
104
  end
105
105
 
106
- def primary_key
107
- self.new? ? self.name : self.id
108
- end
109
-
110
106
  # Save resource to Kong
111
107
  def save
112
108
  create_or_update
@@ -124,7 +120,7 @@ module Kong
124
120
  # Data is sent to Kong in JSON format and HTTP PUT request is used
125
121
  def create_or_update
126
122
  headers = { 'Content-Type' => 'application/json' }
127
- response = client.put(@api_end_point+self.primary_key, attributes, nil, headers)
123
+ response = client.put(@api_end_point, attributes, nil, headers)
128
124
  init_attributes(response)
129
125
  self
130
126
  end
@@ -1,3 +1,3 @@
1
1
  module Kong
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Nevala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-07 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler