ring-sqa 0.0.15 → 0.0.16

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: caf8e25b1a61b065566c3e4d76ccc9376fc84f2b
4
- data.tar.gz: a468d0d59a4a8cd7a590942257d7d58c94be1b4d
3
+ metadata.gz: 9b60d7ea751aee3be9cc2e8652f2390f5810fea4
4
+ data.tar.gz: f7188e826e663e93334f04e2f50fd54a72b1f952
5
5
  SHA512:
6
- metadata.gz: 29d354abb4af2ff8e85ac70b37651769641dd6cbb14ab467d00a0a87f473971a95a733f6ddd3171603ac9067afd2db5f92f97ed2cb515f1232601f74f2062d3e
7
- data.tar.gz: d3daaf6398f7e6958b28134ddec2550baa11ab7ef6a3c48c1988b9dfc2600ce60eb0db1f26d12f819da717cf6714a3e47762f5f8bc82daabfdde801b6306e398
6
+ metadata.gz: 26215e5192073568b95ac81ea5561f5a3036d4070c671d22ae7956c898ae4601c6f52e8e4803164d055b1848fca58f08b096eef6e1cae8c251e1824e26bc208d
7
+ data.tar.gz: 58bbe6c022f8c82a8723ce98220607f217108cc277706f08631432714361bde0c9599d0324bab93ff398a470e7e69b684429c6f6b61b294052a6a006b87d1d65
@@ -6,7 +6,7 @@ class Alarm
6
6
  def send message, channel=CFG.irc.channel
7
7
  msg = [@password, channel, message[:short]].join ' '
8
8
  msg += "\0" while msg.size % 16 > 0
9
- UDPSocket.new.send msg, 0, HOST, PORT
9
+ UDPSocket.new.send msg, 0, @host, @port.to_i
10
10
  end
11
11
 
12
12
  private
@@ -58,7 +58,7 @@ class SQA
58
58
  end
59
59
 
60
60
  buffer_list = ''
61
- time = alarm_buffer.size-1
61
+ time = alarm_buffer.array.size-1
62
62
  alarm_buffer.array.each do |ary|
63
63
  buffer_list << "%2s min ago %3s measurements failed\n" % [time, ary.size/2]
64
64
  time -= 1
data/ring-sqa.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ring-sqa'
3
- s.version = '0.0.15'
3
+ s.version = '0.0.16'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti' ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ring-sqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti