jt-rails-toolbox 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +2 -1
- data/jt-rails-toolbox.gemspec +2 -2
- data/lib/generators/jt/toolbox/templates/jt-toolbox.yml +1 -0
- data/lib/jt-rails-toolbox.rb +11 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6313626cfdf8dd1ea3a86a7e87c1b278097cd5d
|
4
|
+
data.tar.gz: 790ee65181c21de079326b6e92869a0b8c51e515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1126a5fcd08ca2524ebb50171ad3882a00c2bc9fc15682a9a48aa825cff1b43d4e35a6fa5536e17c426f2ed656abf1bfca664b8e353c4b3198c4b896a53f7e15
|
7
|
+
data.tar.gz: 3eee96e396a868d71beea1a39c4ee4c77a3eb0a3045021a818329d01915807a20bb9fa62517e7eda699b54e62912f8e338b61f6af45aecc8076ecf8750dbd370
|
data/LICENSE
CHANGED
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
|
140
|
+
- [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
|
140
141
|
|
141
142
|
## License
|
142
143
|
|
data/jt-rails-toolbox.gemspec
CHANGED
@@ -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.
|
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
|
data/lib/jt-rails-toolbox.rb
CHANGED
@@ -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 =
|
149
|
+
config.redis = options
|
141
150
|
end
|
142
151
|
|
143
152
|
Sidekiq.configure_client do |config|
|
144
|
-
config.redis =
|
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.
|
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:
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|