mina-infinum 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +5 -3
- data/lib/mina/infinum/tasks.rb +9 -0
- data/lib/mina/infinum/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 74698f34c63fba89a8c26cd2c6075cb74d94828b
|
4
|
+
data.tar.gz: cd509d3519cfc3c950661ac24d1cc1bb498d5ade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64723884fae5f27570716f1eb1d8e520596d31d0ae31a566c195c2b70373ef8568b42bacdf5fde33a055282ee2a8c484239c4d34a010cf36f48511ccea41839
|
7
|
+
data.tar.gz: e2ce960c7afa2ab000ec5c57d94965f89e4cdc33c870d66610b8a565c877cae66beb4123a5ae5054cf641e5144e9a783d7e1562fab87cf916a7a9e7684fa300b
|
data/README.md
CHANGED
@@ -15,9 +15,10 @@ github
|
|
15
15
|
## Setup
|
16
16
|
|
17
17
|
``` ruby
|
18
|
-
set :application_name, <APP_NAME>
|
19
|
-
set :background_worker, <WORKER_NAME>
|
20
|
-
set :service_manager, <SERVICE_MANAGER>
|
18
|
+
set :application_name, <APP_NAME> # Used in background workers tasks
|
19
|
+
set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
|
20
|
+
set :service_manager, <SERVICE_MANAGER> # systemd, upstart (default)
|
21
|
+
set :sidekiq_web_namespace, <SIDEKIQ_WEB_MOUNT> # Used for creating symlink to Sidekiq assets in public/
|
21
22
|
```
|
22
23
|
|
23
24
|
Background workers name:
|
@@ -34,6 +35,7 @@ Background workers name:
|
|
34
35
|
:'background_workers:start'
|
35
36
|
:'background_workers:stop'
|
36
37
|
:'background_workers:status'
|
38
|
+
:link_sidekiq_assets
|
37
39
|
```
|
38
40
|
|
39
41
|
## Contributing
|
data/lib/mina/infinum/tasks.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
set :service_manager, :upstart
|
2
|
+
set :sidekiq_web_namespace, nil
|
2
3
|
|
3
4
|
desc 'Restart application'
|
4
5
|
task :restart_application do
|
@@ -14,3 +15,11 @@ namespace :background_workers do
|
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|
18
|
+
|
19
|
+
task :link_sidekiq_assets do
|
20
|
+
custom_assets_path = File.join('./', 'public', fetch(:sidekiq_web_namespace).to_s)
|
21
|
+
|
22
|
+
command "bundle_path=\"$(RAILS_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} show sidekiq)\""
|
23
|
+
command "mkdir -p #{custom_assets_path}"
|
24
|
+
command "ln -nfs $bundle_path/web/assets #{custom_assets_path}/sidekiq"
|
25
|
+
end
|
data/lib/mina/infinum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-infinum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,7 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.6.11
|
168
169
|
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: Collection of mina plugins we use in infinum
|