karma_messages 0.1.5 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 387ed5875b916f42c9e0dac7917bc7184f68babf
4
- data.tar.gz: 02e8ca697def8665e897ee39f52aabb6979a1270
3
+ metadata.gz: 6c71b90cfd14ea5eaf17451411f31faa42768a65
4
+ data.tar.gz: 3f0b5b0765ecdafd58e2a00a26c84703d7091812
5
5
  SHA512:
6
- metadata.gz: 0b9508794fd7798eecd784689761d2d50557df39c8ffc121a910b8af87ff53d654fc1dce5272cf9e0bf206ad49d96f005b3f4cf296bc45edd51080c22b368900
7
- data.tar.gz: 9ec2f0272810bc6d4b56e23aebbe814228c8f30327ba90db2a6b750ff2b473c7eecbc72e58f46dfb61a63650272ac068838ab26f66f44f38c5423eddbdef78a5
6
+ metadata.gz: 720d9b0e9728cb1b981b8999a5f5d0dc1f99a1abad67e3c1fad03c1ebe04c69bb738208af1763bc108c9f40d4aca358983d221aeea5940f9003d544730e04077
7
+ data.tar.gz: 88a435fd6a14f4adcce3048d4c0a2a8e0f6c98ec2b0a6bba67d531cb5aa9c3b32718accf5f234b14e5662dae8be35209411c7adcbe65543f09a5ab2bcd217402
@@ -2,7 +2,7 @@ module Karma::Messages
2
2
 
3
3
  class ProcessConfigUpdateMessage < BaseKarmap
4
4
 
5
- attr_reader :memory_max, :cpu_quota, :min_running, :max_running, :auto_restart, :auto_start, :push_notifications, :log_level, :num_threads
5
+ attr_reader :memory_max, :cpu_quota, :min_running, :max_running, :auto_restart, :auto_start, :push_notifications, :log_level, :num_threads, :notify_interval
6
6
 
7
7
  def parse(params)
8
8
  super(params)
@@ -23,6 +23,7 @@ module Karma::Messages
23
23
  @push_notifications = params[:push_notifications]
24
24
  @log_level = params[:log_level]
25
25
  @num_threads = params[:num_threads]
26
+ @notify_interval = params[:notify_interval]
26
27
  end
27
28
 
28
29
  def to_message
@@ -32,6 +33,7 @@ module Karma::Messages
32
33
  ret.merge!({ memory_max: @memory_max} ) if @memory_max.present?
33
34
  ret.merge!({ cpu_quota: @cpu_quota} ) if @cpu_quota.present?
34
35
  ret.merge!({ push_notifications: @push_notifications} ) if @push_notifications.present?
36
+ ret.merge!({ notify_interval: @notify_interval} ) if @notify_interval.present?
35
37
  ret
36
38
  end
37
39
 
@@ -45,7 +47,8 @@ module Karma::Messages
45
47
  auto_start: auto_start,
46
48
  push_notifications: push_notifications,
47
49
  num_threads: num_threads,
48
- log_level: log_level
50
+ log_level: log_level,
51
+ notify_interval: notify_interval
49
52
  }
50
53
  end
51
54
 
@@ -1,5 +1,5 @@
1
1
  module Karma
2
2
  module Messages
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karma_messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - extendi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-26 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler