kongfigure 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kongfigure/cli.rb +4 -0
- data/lib/kongfigure/resources/route.rb +3 -1
- data/lib/kongfigure/synchronizers/plugin.rb +1 -1
- data/lib/kongfigure/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99d468f0288a7b9f14c3e9e8ded209a7517a5f28c682c8f84319d0c0b00bfa8b
|
4
|
+
data.tar.gz: cc69fd670c1b3d0276bfb803279b6ba3c1ac232177e3563625c23fa0af26f951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea935b1241cb38b811becbb0be527b9e6cab322f9daed2d1028871b949ac22fa94a71821e4c23ea62345f2d94d1bc4d54ed5823e087903d57fa5645af185a15b
|
7
|
+
data.tar.gz: 3327024b27c02ba4b68c30ad9c5ef6050b581427b7e95ea6f953c56020fdcedb68246f20e98a36e6636a85f9ac16d6eb4fa073f0ff6607b53d1c3a6b7f8406e5
|
data/lib/kongfigure/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Kongfigure::Resources
|
2
2
|
class Route < Base
|
3
|
-
attr_accessor :name, :protocols, :methods, :hosts, :paths, :regex_priority, :strip_path, :preserve_host, :snis,
|
3
|
+
attr_accessor :name, :protocols, :methods, :hosts, :headers, :paths, :regex_priority, :strip_path, :preserve_host, :snis,
|
4
4
|
:sources, :destinations, :service
|
5
5
|
|
6
6
|
def self.build(hash)
|
@@ -16,6 +16,7 @@ module Kongfigure::Resources
|
|
16
16
|
route.sources = hash["destinations"]
|
17
17
|
route.service = hash["service"]
|
18
18
|
route.hosts = hash["hosts"]
|
19
|
+
route.headers = hash["headers"]
|
19
20
|
route.plugins = Kongfigure::Resources::Plugin.build_all(hash["plugins"] || [])
|
20
21
|
route
|
21
22
|
end
|
@@ -44,6 +45,7 @@ module Kongfigure::Resources
|
|
44
45
|
"methods" => methods,
|
45
46
|
"paths" => paths,
|
46
47
|
"hosts" => hosts,
|
48
|
+
"headers" => headers,
|
47
49
|
"regex_priority" => regex_priority,
|
48
50
|
"strip_path" => strip_path,
|
49
51
|
"preserve_host" => preserve_host,
|
data/lib/kongfigure/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kongfigure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ibanity
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.0.3
|
153
|
+
rubygems_version: 3.0.3.1
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Kongfigure.
|