ring-sqa 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be6ad7a4fc28fad083958e8751d852e155c83b66
4
- data.tar.gz: c560a356e42564b20b7af2b2852a976fac6c10ef
3
+ metadata.gz: a98f29d18f39d4ae7bb7057eb8615bd2ef0bcbb7
4
+ data.tar.gz: 4b634e183bd877a752b4c2f0874bb47699d0c57c
5
5
  SHA512:
6
- metadata.gz: 732955f4a710112721b62ede527f6c4e9b0e04424ce26fe57b6ddcfaba086da61135ec0ad75eb71ba1d5585df8583fd0b84a5089d20bb60cc08538c33102bee5
7
- data.tar.gz: ab147f5b1d101d947b52b020c2b1ae7b9ca6fa4c26c8919929d39e38f53a1c5982278f937245a6c1cf33f5eb5deb161cad4362b9ec175df65028349c46a21bf5
6
+ metadata.gz: 5021adbea0e71e261b8e613500c41ce9df562598dbeaf5c4b072964f34198698dd0330965a4c51cd57a4230d3afbdb329af4aba26f04c630a589125daf391d92
7
+ data.tar.gz: 299492e697928256b2e6024326a8b670a96ac4d1424ea4957d1cf3481bcc9ef15e3bcbc1290ddd8260491bcf6085a3549cf5092df3ae32ac522d0805431ee311
data/lib/ring/sqa/cli.rb CHANGED
@@ -41,7 +41,7 @@ class SQA
41
41
  end
42
42
 
43
43
  def crash error
44
- file = File.join CFG.directory, 'crash.txt'
44
+ file = File.join '/tmp', "crash.txt.#{$$}"
45
45
  open file, 'w' do |file|
46
46
  file.puts error.class.to_s + ' => ' + error.message
47
47
  file.puts '-' * 70
data/lib/ring/sqa/core.rb CHANGED
@@ -21,6 +21,8 @@ module Ring
21
21
  def initialize
22
22
  require_relative 'log'
23
23
  @database = Database.new
24
+ # make sure Ping is created
25
+ raise "Table 'pings' does not exist" unless Ring::SQA::Database::Ping.table_exists?
24
26
  @nodes = Nodes.new
25
27
  run
26
28
  end
@@ -14,7 +14,9 @@ class SQA
14
14
  sleep INTER_NODE_GAP
15
15
  end
16
16
  duration = Time.now-loop_start
17
- if duration < INTERVAL
17
+ if duration < 0
18
+ Log.warn "Send loop duration was negative - ntp sync?"
19
+ elsif duration < INTERVAL
18
20
  sleep INTERVAL-duration
19
21
  else
20
22
  Log.warn "Send loop took longer than #{INTERVAL}s"
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.1.2'
3
+ s.version = '0.1.3'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti', 'Job Snijders' ]
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti