sequel-replica-failover 0.1.0 → 0.1.1

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: 77c8e355ea71e9f4eccfee4cd410733251ebc73f
4
- data.tar.gz: a593201985a1b9f9c85921102a8d40b8498da2d6
3
+ metadata.gz: 6dba94be5402e5660e5ae3308c9e8e4463195b34
4
+ data.tar.gz: ac4906af1bde935311bb7c492a24f583f9070092
5
5
  SHA512:
6
- metadata.gz: 32af56509abc4a23fdb48e83b3fa5401160e52a7a8e60f2c8b52faccde878cdfbaaf4395be121bc58baee5a74b2db06aa06175fe25261ca05ed29b261903d499
7
- data.tar.gz: fe29a8ca07a06a7985d592af5131a43e748e848703c253d957b0eef2508c31839ff0d2af01d964e74d688d01040590caf2cb6ef8d603614fa6664b650c37096f
6
+ metadata.gz: b6d2891b1a22ebbff6f74ced00643ed77648ad9c346f87414ba3e5663e23399a62200338380372f3c605e8120be933e818d7768a074d036b64503fe5a3ecf2bf
7
+ data.tar.gz: 8782591c54e37e2b1068886bd801b3e8883df2a3d872cfee35aafca4ef5d2e8d81ea12e344dab3f4a4f53c7a1cb6c6af69cc0e9d1e4c6d31c571ce78a0d9841f
@@ -10,7 +10,7 @@ module Sequel
10
10
  end
11
11
 
12
12
  def stick
13
- @stick_probe ||= provider.probe(:connection, :stick)
13
+ @stick_probe ||= provider.probe(:connection, :stick, :integer)
14
14
  end
15
15
 
16
16
  def unstick
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module ReplicaFailover
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -50,9 +50,9 @@ class Sequel::ShardedSingleFailoverConnectionPool < Sequel::ShardedSingleConnect
50
50
  end
51
51
 
52
52
  def stick
53
- probe { |p| p.stick }
54
- @stuck_at ||= Time.now
55
53
  @stuck_times ||= 0
54
+ probe(@stuck_times) { |p| p.stick }
55
+ @stuck_at ||= Time.now
56
56
  @stuck_times += 1
57
57
  end
58
58
 
@@ -23,6 +23,10 @@ describe Sequel::ReplicaFailover::DTraceProvider do
23
23
  it 'has :stick for its name' do
24
24
  expect(provider.stick.name).to eq(:stick)
25
25
  end
26
+
27
+ it 'takes an integer argument' do
28
+ expect(provider.stick.arguments).to eq([:integer])
29
+ end
26
30
  end
27
31
 
28
32
  describe '#unstick' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-replica-failover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Henry