work_shaper 0.1.3.1rc3 → 0.1.3.1rc5

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
  SHA256:
3
- metadata.gz: 19828916c7e0f7d9006c2b508566311381edcb8e6a50522b4bffe1ddc79e5a61
4
- data.tar.gz: 28d670fd0d3fad8e6705b2392ca00c0c720ac29649fddc04702cdd924910fdc5
3
+ metadata.gz: ee42adfc0a4002f31b442eec3ea46dd3b878dc8fabadccb010cfb27070142223
4
+ data.tar.gz: b8e268a9c867df76e210b279b3c8c2b62446b347c7ab02db1a381c3b5a80f7c6
5
5
  SHA512:
6
- metadata.gz: ca66783166d22a048cdfbf02e1a9a6b36246c60caa42e6612f3008bb8af8029621df2d85ce152315288f8c40ffb1ca28efe4024e3582af7cd5c77957e8a0722e
7
- data.tar.gz: 73cdaa9db8bcf924983fc0a6bbfec46bd257fa7c9938a7ed795c77ebbcdb34a1f95e762949876c57618276bf0f00dec9f38daacd2ecb708ea701e3322eb6cc8c
6
+ metadata.gz: 94b8e9d89e51fce2f374eabef54d89a43703b48dba1dd9979598342a26182e2eb739a1fc0f2afa842100c1ab8bc32f094f2904680243e053d34f3ab82d42aded
7
+ data.tar.gz: 2128b65b7c21b420b0e58c5765a9d557e466415fcfa32c80d4b9e9f407e2cb9de8b107f3e6deb81b61f086c0566bad256031aeb310f2676d004488e5af389bda
@@ -157,7 +157,7 @@ module WorkShaper
157
157
 
158
158
  result =
159
159
  begin
160
- @ack.call(partition, offset)
160
+ @ack.call(partition, offset.to_i)
161
161
  rescue => e
162
162
  # We expect @ack to handle it's own errors and return the error or false if it
163
163
  # is safe to continue. Otherwise @ack should raise an error and we will
@@ -24,14 +24,14 @@ module WorkShaper
24
24
 
25
25
  if r == 0
26
26
  r = STATES[state] <=> STATES[other.state]
27
- puts "States: #{r} | #{STATES[state]} #{STATES[other.state]}"
27
+ WorkShaper.logger.debug "States: #{r} | #{STATES[state]} #{STATES[other.state]}"
28
28
  end
29
29
 
30
30
  if r == 0
31
31
  r = @at <=> other.instance_variable_get(:@at)
32
- puts "At: #{r}"
32
+ WorkShaper.logger.debug "At: #{r}"
33
33
  end
34
- puts "Final: #{r}"
34
+ WorkShaper.logger.debug "Final: #{r}"
35
35
  r
36
36
  end
37
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkShaper
4
- VERSION = "0.1.3.1rc3"
4
+ VERSION = "0.1.3.1rc5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_shaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.1rc3
4
+ version: 0.1.3.1rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Fernholz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-14 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby