mihari 7.6.3 → 7.6.4

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: 0d9b88f5339ebe2064567127db7fac4a4e0c9ec56648c575de2c96fcb16a3af8
4
- data.tar.gz: 15f840a496f423dff92dcc34e2f7c4ad39ed7b1a370c053a5f5cdf29c39f84a2
3
+ metadata.gz: 12856ce5fee6e623a5579cab99a03629c611db1f65e087b04167cae69f870647
4
+ data.tar.gz: 28577ad798c7033ead6aaeced545a9401f17d0a31d29551950c3be583bc107ea
5
5
  SHA512:
6
- metadata.gz: f07c6c65db1dd47634e0f5919d1b6faa8250cc02d255226085c1fd88f6a32e78338a6ddeaa7b0f221e4593af81735635c4652cdfd46b415bfa0e5ecaf08cb0f1
7
- data.tar.gz: 5d8411ddbee4e1e466e3521ec611ffba67e52ea3852e3cfce8f095978b60584b15cc541118064d2fd8bfa9e40c14720899efafa006f96543e7947fecbd5b76da
6
+ metadata.gz: 68d780eca473d2b081c3c9bb7a60c9c5bfa371a0c6e08a307ceaa3138f5097b70606902e657aab22d1013a5033904bd7135595812d76a0554bde38f3b75917b6
7
+ data.tar.gz: 6b0ab8b458109b4c496298560772bd44e845a96c97ab89ec3191416855a66c4de92277d66d63607b17a857d35be10343adbdd71183616f64e7b984b617cde32a
data/Rakefile CHANGED
@@ -40,9 +40,7 @@ def build_swagger_doc(path)
40
40
  recursive_delete json, key
41
41
  end
42
42
 
43
- f = File.open(path, "w")
44
- f.write json.to_yaml
45
- f.close
43
+ File.write(path, json.to_yaml)
46
44
  end
47
45
 
48
46
  namespace :build do
data/lib/mihari/config.rb CHANGED
@@ -40,6 +40,7 @@ module Mihari
40
40
  zoomeye_api_key: nil,
41
41
  # sidekiq
42
42
  sidekiq_redis_url: nil,
43
+ sidekiq_retry: 0,
43
44
  # others
44
45
  hide_config_values: true,
45
46
  ignore_error: false,
@@ -174,6 +175,9 @@ module Mihari
174
175
  # @!attribute [r] sidekiq_redis_url
175
176
  # @return [URI, nil]
176
177
 
178
+ # @!attribute [r] sidekiq_retry
179
+ # @return [Integer]
180
+
177
181
  def database_url=(val)
178
182
  super(URI(val.to_s))
179
183
  end
@@ -6,6 +6,7 @@ require "mihari/sidekiq/jobs"
6
6
 
7
7
  Sidekiq.configure_server do |config|
8
8
  config.redis = {url: Mihari.config.sidekiq_redis_url.to_s}
9
+ config.default_job_options = {retry: Mihari.config.sidekiq_retry}
9
10
  end
10
11
 
11
12
  Sidekiq.configure_client do |config|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "7.6.3"
4
+ VERSION = "7.6.4"
5
5
  end