mkit 0.10.1 → 0.10.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
  SHA256:
3
- metadata.gz: 8c2f06e57ef21b24816e6fe9e6585e1b0dda50053fe93a6f48dbf7eb92fda4bb
4
- data.tar.gz: 240a4b468f719b26fd186f81e81d0a333ae7bd4ba28888d7deeafa2748ad7530
3
+ metadata.gz: 88d1667ab2483a2e03f6f27cafda091a011acd989f1eb343c61946ee82336d9a
4
+ data.tar.gz: 633eb60d1369080032c7ed99695377608197a2720a533a573a8b61c63aa77a4c
5
5
  SHA512:
6
- metadata.gz: 95992a99d7c635b30abb7f9f04dbc61fdd9e286b3a3b9e98c2d667686a1d943bf78636080e94ee273dc3084fb57f94cc1fc51b5338f5f913a10eb3fbf152c30f
7
- data.tar.gz: f93020e725bdb5c150ae8544ac48ebd9fbabaeadfae7266618d306559a06cd304723ffda84bceff2b1ea2fbbbc11d652c6cf68778bcce6f444eb1b9b06e0881a
6
+ metadata.gz: 53508532b4c5f69541e7d8d2f46252437b3a56c4a7071df960ec4f4f2c06aa8011e174f9ef2fdf24f269d86a5b1aa846832eeb3352a3384c0c37ff1e85fcd439
7
+ data.tar.gz: 505926bb17a3b0583386bca83511d2be5398a26f350d14b88ad5dab07553a2448b0371be1e4f8e93d585162ec112c6702d48a2227038ffce424810713290cfef
@@ -41,6 +41,10 @@ class MigrateSchema < ActiveRecord::Migration[5.1]
41
41
  balance: port.load_bal
42
42
  }
43
43
 
44
+ if port.internal_port.nil? || port.internal_port.empty?
45
+ backend[:bind].delete(:port)
46
+ end
47
+
44
48
  if port.mode == 'http'
45
49
  a= [
46
50
  'option httpclose',
@@ -2,8 +2,8 @@
2
2
 
3
3
  class Backend < ActiveRecord::Base
4
4
  belongs_to :ingress
5
- serialize :options, JSON
6
- serialize :bind_options, JSON
5
+ serialize :options, coder: JSON
6
+ serialize :bind_options, coder: JSON
7
7
 
8
8
  def self.create(yaml)
9
9
  validate(yaml)
@@ -3,8 +3,8 @@ require 'mkit/exceptions'
3
3
 
4
4
  class Frontend < ActiveRecord::Base
5
5
  belongs_to :ingress
6
- serialize :options, JSON
7
- serialize :bind_options, JSON
6
+ serialize :options, coder: JSON
7
+ serialize :bind_options, coder: JSON
8
8
  has_one :backend
9
9
 
10
10
  def self.create(yaml)
data/lib/mkit/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module MKIt
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasco Santos