fbe 0.38.1 → 0.38.2

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +16 -16
  3. data/lib/fbe/conclude.rb +8 -0
  4. data/lib/fbe.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f22a31b94db1f205cc7abe914acad2fbe83811f82b3c0f4d4d1444fd41c85ab5
4
- data.tar.gz: 4b06b99c1bd84d3e767b0531224282ef8fc06febacd725052638eedba5881403
3
+ metadata.gz: 84ae98aaec66eaacc0865c0be05fc5490305a5e723c402c66eabc65d9d5490f2
4
+ data.tar.gz: 4d3922a6dbfd4b04d8ac2eda2a155fda33ddc3e2c71886c0b99d61558830ff26
5
5
  SHA512:
6
- metadata.gz: 06fb6917512049d88eecd68407084bd6342c410aba636e1e25493d64b7407b798073da2a9ca9c91408517237e61a05cf538f54ab9533b95eced5c54a80a32aa1
7
- data.tar.gz: 7706c0d39076475f86dc25e09a0c3e89d0cd20d7aa26e11b715404e980e5104d0d2ad7942b4fb3a61661f63aa107e3e3f596f072871381814407857a8392a8f4
6
+ metadata.gz: 15d6d7d1b03ebe56d06fef55c9981ccd6a97c5c072bbf54a81e87c9841323659af82124b6e968e2a4d9d1495672830249c8b66a7273f8411b56a7d6b85f9b0a5
7
+ data.tar.gz: 79b5bd15396e2bed6317b1f202cd07f302c8a0db674165fafa1796da2119c0e22e2d218211106f4d6438b1aaa7012f1f102f80f59250908481876a00ebc6b956
data/Gemfile.lock CHANGED
@@ -28,7 +28,7 @@ PATH
28
28
  GEM
29
29
  remote: https://rubygems.org/
30
30
  specs:
31
- activesupport (8.0.2.1)
31
+ activesupport (8.0.3)
32
32
  base64
33
33
  benchmark (>= 0.3)
34
34
  bigdecimal
@@ -47,7 +47,7 @@ GEM
47
47
  ast (2.4.3)
48
48
  backtrace (0.4.1)
49
49
  base64 (0.3.0)
50
- baza.rb (0.10.2)
50
+ baza.rb (0.11.0)
51
51
  backtrace (~> 0.4)
52
52
  elapsed (~> 0.2)
53
53
  faraday (~> 2.13)
@@ -107,7 +107,7 @@ GEM
107
107
  filesize (0.2.0)
108
108
  gli (2.22.2)
109
109
  ostruct
110
- graphql (2.5.12)
110
+ graphql (2.5.13)
111
111
  base64
112
112
  fiber-storage
113
113
  logger
@@ -120,21 +120,21 @@ GEM
120
120
  intercepted (0.2.0)
121
121
  iri (0.11.2)
122
122
  joined (0.4.0)
123
- json (2.13.2)
124
- judges (0.53.8)
123
+ json (2.15.0)
124
+ judges (0.54.0)
125
125
  backtrace (~> 0.4)
126
- baza.rb (~> 0.5)
126
+ baza.rb (~> 0.10)
127
127
  concurrent-ruby (~> 1.2)
128
- elapsed (~> 0.0)
129
- factbase (~> 0.11)
128
+ elapsed (~> 0.2)
129
+ factbase (~> 0.16)
130
130
  gli (~> 2.21)
131
131
  iri (~> 0.11)
132
132
  loog (~> 0.6)
133
133
  moments (~> 0.3)
134
134
  nokogiri (~> 1.10)
135
- others (~> 0.0)
135
+ others (~> 0.1)
136
136
  retries (~> 0.0)
137
- tago (~> 0.1)
137
+ tago (~> 0.2)
138
138
  timeout (~> 0.4)
139
139
  total (~> 0.4)
140
140
  typhoeus (~> 1.3)
@@ -200,7 +200,7 @@ GEM
200
200
  rubocop-ast (>= 1.46.0, < 2.0)
201
201
  ruby-progressbar (~> 1.7)
202
202
  unicode-display_width (>= 2.4.0, < 4.0)
203
- rubocop-ast (1.46.0)
203
+ rubocop-ast (1.47.1)
204
204
  parser (>= 3.3.7.2)
205
205
  prism (~> 1.4)
206
206
  rubocop-minitest (0.38.2)
@@ -228,12 +228,12 @@ GEM
228
228
  simplecov (~> 0.19)
229
229
  simplecov-html (0.13.2)
230
230
  simplecov_json_formatter (0.1.4)
231
- sqlite3 (2.7.3-arm64-darwin)
232
- sqlite3 (2.7.3-x64-mingw-ucrt)
233
- sqlite3 (2.7.3-x86_64-darwin)
234
- sqlite3 (2.7.3-x86_64-linux-gnu)
231
+ sqlite3 (2.7.4-arm64-darwin)
232
+ sqlite3 (2.7.4-x64-mingw-ucrt)
233
+ sqlite3 (2.7.4-x86_64-darwin)
234
+ sqlite3 (2.7.4-x86_64-linux-gnu)
235
235
  strscan (3.1.5)
236
- tago (0.2.0)
236
+ tago (0.3.0)
237
237
  timeout (0.4.3)
238
238
  total (0.4.1)
239
239
  typhoeus (1.5.0)
data/lib/fbe/conclude.rb CHANGED
@@ -195,6 +195,14 @@ class Fbe::Conclude
195
195
  # end
196
196
  # end
197
197
  def roll(&)
198
+ if @lifetime_aware && @options.lifetime && Time.now - @epoch > @options.lifetime * 0.9
199
+ @loog.debug("We ran out of lifetime (#{@epoch.ago} already), can't even start")
200
+ return
201
+ end
202
+ if @timeout_aware && @options.timeout && Time.now - @kickoff > @options.timeout * 0.9
203
+ @loog.debug("We've spent more than #{@kickoff.ago}, won't even start")
204
+ return
205
+ end
198
206
  passed = 0
199
207
  oct = Fbe.octo(loog: @loog, options: @options, global: @global)
200
208
  @fb.query(@query).each do |a|
data/lib/fbe.rb CHANGED
@@ -10,5 +10,5 @@
10
10
  # License:: MIT
11
11
  module Fbe
12
12
  # Current version of the gem (changed by +.rultor.yml+ on every release)
13
- VERSION = '0.38.1' unless const_defined?(:VERSION)
13
+ VERSION = '0.38.2' unless const_defined?(:VERSION)
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.1
4
+ version: 0.38.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko