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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/kong.rb +0 -2
- data/lib/kong/base.rb +1 -5
- data/lib/kong/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3243d96e0ac895ff07767caee3051349ed2763
|
4
|
+
data.tar.gz: e7ead99c2540795104edbd72e7751b80b684aaea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130ec1c03f326ca65b2788ebdf497a7e86f9859726d29f762b678521c90fa35d56e151ce86aa8d56d2e2d48a64ced255c52e10582ba712e7236e2dec67de670b
|
7
|
+
data.tar.gz: 133536880bbb569936a15a2911a9442e97a3da3be4624d734fc1363775a2e472430581ebe2f8dc70bbeebdc9490406753cc56518bac4d46069551199a0e5cc23
|
data/CHANGELOG.md
CHANGED
@@ -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))
|
data/lib/kong.rb
CHANGED
@@ -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'
|
data/lib/kong/base.rb
CHANGED
@@ -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
|
123
|
+
response = client.put(@api_end_point, attributes, nil, headers)
|
128
124
|
init_attributes(response)
|
129
125
|
self
|
130
126
|
end
|
data/lib/kong/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|