jt-rails-toolbox 2.8.0 → 2.8.1

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: b25508a8d85fc02aa23f4e15c315a9aebd91a776
4
- data.tar.gz: a9e19b43dfdc14a0f4670c0d6481c73ed237f6b0
3
+ metadata.gz: d6313626cfdf8dd1ea3a86a7e87c1b278097cd5d
4
+ data.tar.gz: 790ee65181c21de079326b6e92869a0b8c51e515
5
5
  SHA512:
6
- metadata.gz: c9c2296e0d37075e04c2abcb82960cbb8ce3344f172f29ca62c2319b9777e2c6ac9d23742a6f7fd4147323453c61de5e2993b6518ff9aff60f14527f55cb1518
7
- data.tar.gz: d0f529cefa1bd9e1085a7a7e0c2a523a596878dc0ea546880745ef40c0d46065dd7e327a962c2fd52b4e08d641e6bd9fa632f60efec5d82ba95451848f2e99e0
6
+ metadata.gz: 1126a5fcd08ca2524ebb50171ad3882a00c2bc9fc15682a9a48aa825cff1b43d4e35a6fa5536e17c426f2ed656abf1bfca664b8e353c4b3198c4b896a53f7e15
7
+ data.tar.gz: 3eee96e396a868d71beea1a39c4ee4c77a3eb0a3045021a818329d01915807a20bb9fa62517e7eda699b54e62912f8e338b61f6af45aecc8076ecf8750dbd370
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Jonathan Tribouharet
1
+ Copyright (c) 2015 Jonathan VUKOVICH TRIBOUHARET
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -46,6 +46,7 @@ production:
46
46
  cdn_host: https://cdn.example.com
47
47
  sidekiq:
48
48
  redis_url: redis://localhost:6379/my_app
49
+ network_timeout: 5
49
50
  ```
50
51
 
51
52
  ## What's in it?
@@ -136,7 +137,7 @@ You just have add at the end of your `app/views/layouts/application.html.erb` fi
136
137
 
137
138
  ## Author
138
139
 
139
- - [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
140
+ - [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
140
141
 
141
142
  ## License
142
143
 
@@ -3,10 +3,10 @@ Gem::Specification.new do |s|
3
3
  s.summary = "Common libs used for Ruby On Rails development."
4
4
  s.description = "JTRailsToolbox contains a list of common libs used for Ruby On Rails development."
5
5
  s.homepage = 'https://github.com/jonathantribouharet/jt-rails-toolbox'
6
- s.version = '2.8.0'
6
+ s.version = '2.8.1'
7
7
  s.files = `git ls-files`.split("\n")
8
8
  s.require_paths = ['lib']
9
- s.authors = ['Jonathan TRIBOUHARET']
9
+ s.authors = ['Jonathan VUKOVICH TRIBOUHARET']
10
10
  s.email = 'jonathan.tribouharet@gmail.com'
11
11
  s.license = 'MIT'
12
12
  s.platform = Gem::Platform::RUBY
@@ -42,3 +42,4 @@
42
42
  # cdn_host: https://cdn.example.com
43
43
  # sidekiq:
44
44
  # redis_url: redis://localhost:6379/my_app
45
+ # network_timeout: 5
@@ -136,12 +136,21 @@ module JTRailsToolbox
136
136
 
137
137
  require 'sidekiq'
138
138
 
139
+ options = {
140
+ url: @params['sidekiq']['redis_url'],
141
+ namespace: @params['sidekiq']['namespace']
142
+ }
143
+
144
+ if @params['sidekiq']['network_timeout'].present?
145
+ options[:network_timeout] = @params['sidekiq']['network_timeout'].to_i
146
+ end
147
+
139
148
  Sidekiq.configure_server do |config|
140
- config.redis = { url: @params['sidekiq']['redis_url'], namespace: @params['sidekiq']['namespace'] }
149
+ config.redis = options
141
150
  end
142
151
 
143
152
  Sidekiq.configure_client do |config|
144
- config.redis = { url: @params['sidekiq']['redis_url'], namespace: @params['sidekiq']['namespace'] }
153
+ config.redis = options
145
154
  end
146
155
 
147
156
  ActiveJob::Base.queue_adapter = :sidekiq
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jt-rails-toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
- - Jonathan TRIBOUHARET
7
+ - Jonathan VUKOVICH TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-20 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails