ring-sqa 0.4.2 → 0.4.3

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: 6c33204f008a05908c9ed4986c01c504f78ec5bf
4
- data.tar.gz: 978b36c48d8c50f4dacecfec4fad84f68c6640d2
3
+ metadata.gz: ee3dfdbdc7f5a62e8914c040f4b8faf4a1399aea
4
+ data.tar.gz: '08532368f08e2f50829e72d82797f2b970f127c9'
5
5
  SHA512:
6
- metadata.gz: 29790e6c1bf0ffeebfd0a381c7f813e84e9cf283bac7a936a7538bb800cfa8dfd28b42c52ae91222906db509a413859a757f6c0d478b6f685a9f5b42dfb2e1b4
7
- data.tar.gz: 00d2d8c8ef21a816195e26756026f3a971acebed5f4b68285c287971b75e842a186f5726ae9e6e7a37b433cdff28583cfeb90b4516afc5a6e566f9839df7be4e
6
+ metadata.gz: eafdd5b92b00b977289ceff26e10ea033ab28b10c0482a75ef0f751ff877f1996ba00ce8a5dbbdf6e59eb6b7301c6ee6130be6b50b6020728b4ab992b8fd5a75
7
+ data.tar.gz: e3e32c3604b216b1e3b7f5b6c5a8e43f366dcd5c3bf3cf8317029d1412fc374a8f14b92b0bdcb621785e05df734a6c3d8f28e522027ec66e289f74ba8859f937
@@ -13,3 +13,6 @@
13
13
 
14
14
  # 0.4.2
15
15
  - Fix processing of /etc/hosts
16
+
17
+ # 0.4.3
18
+ - Update to new Sequel API (fixes #21)
@@ -22,7 +22,7 @@ module Ring
22
22
  require_relative 'log'
23
23
  @database = Database.new
24
24
  # make sure Ping is created
25
- raise "Table 'pings' does not exist" unless Ring::SQA::Database::Ping.table_exists?
25
+ raise "Table 'pings' does not exist" unless @database.table_exists?
26
26
  @nodes = Nodes.new
27
27
  run
28
28
  end
@@ -40,6 +40,10 @@ class SQA
40
40
  Ping.distinct.where(:id=>first..last)
41
41
  end
42
42
 
43
+ def table_exists?
44
+ @db.table_exists?(:pings)
45
+ end
46
+
43
47
  private
44
48
 
45
49
  def initialize
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ring-sqa'
3
- s.version = '0.4.2'
3
+ s.version = '0.4.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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-08 00:00:00.000000000 Z
12
+ date: 2019-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop