thecore_background_jobs 1.1.13 → 2.0.0

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: 1f3b10d4a650d62f658922775e0112909ef28b6758fc0424f3d13a6a4617e554
4
- data.tar.gz: 188ef9dc87d22fc4b2a85f5f67e553d1efe88614d85d2f737e17e0216ad3afbe
3
+ metadata.gz: 243fe5c5042749e39548844934206fa1982065bd002f2ad34b128e5ad227d7ed
4
+ data.tar.gz: 551275998602f5b4bfe0830313004c3bf8cef2d66121a88754cd947d2e45ed70
5
5
  SHA512:
6
- metadata.gz: 6ba8182fb00a684913fc21f3c176c0ab3ad7eebf384c47de488ffa846059fe77640b8377a260e97bc7fbcc06185114e59406aa3af65db569b64ea3011d4b303b
7
- data.tar.gz: 557007d0add6a03da3613ec1499361a08c03b9903295242728f4db578eaceed17a6a264ab9d046cce008485eea1a20d349ae4f8d9ad1a15379b44705fa9e02e8
6
+ metadata.gz: c47326dad3b79b3f19dfb607b3debe75bb517dce948b9b114102843858c479f2a97dcc044e78bbe32df24d2eae2c6816bfb670ea1a3ba5cd5085f5abed393abe
7
+ data.tar.gz: 362cb8eeb6c378be7e1790082a32bb8b3f746f06edb370a01c930d691ef7906fb67227fad96269261d94c58b1244f1afa76a4e0fcb2fcd8ea19a22865b05d4a2
data/README.md CHANGED
@@ -24,8 +24,6 @@ The following script asks for the installation directory of the main Thecore App
24
24
 
25
25
  [Service]
26
26
  WorkingDirectory=$APPPATH
27
- Environment=SECRET_KEY_BASE=$(grep "SECRET_KEY_BASE" /etc/apache2/bancolini-confs/$APPNAME.conf|awk -F " " '{print $3}')
28
- Environment=$(echo $APPNAME | awk '{print toupper($0)}')_DATABASE_PASSWORD=$APPNAME
29
27
  ExecStart=$BUNDLEBIN exec "sidekiq -e production"
30
28
  User=${SUDO_USER:-$(whoami)}
31
29
  Type=simple
@@ -60,7 +58,7 @@ And you can manually test it in rails console:
60
58
  If you'd like to have the scheduled job run repeatedly, then add
61
59
  **config/sidekiq.yml** with content like:
62
60
 
63
- :schedule:
61
+ schedule:
64
62
  hello_world:
65
63
  cron: '0 * * * * *' # Runs once per minute
66
64
  class: HelloWorld
@@ -1,5 +1,4 @@
1
-
2
- require 'thecore'
1
+ require 'thecore_backend_commons'
3
2
  require 'sidekiq'
4
3
  require "sidekiq-scheduler"
5
4
  require "sidekiq-failures"
@@ -1,4 +1,4 @@
1
- require 'thecore'
1
+ require 'thecore_backend_commons'
2
2
  module ThecoreBackgroundJobs
3
3
  class Engine < ::Rails::Engine
4
4
 
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackgroundJobs
2
- VERSION = '1.1.13'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_background_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: thecore
14
+ name: thecore_backend_commons
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '6.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '6.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sidekiq-scheduler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.1'
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.1'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sidekiq-failures
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -76,13 +76,8 @@ files:
76
76
  - MIT-LICENSE
77
77
  - README.md
78
78
  - Rakefile
79
- - app/assets/config/thecore_background_jobs_manifest.js
80
79
  - app/workers/demo_worker.rb
81
- - config/initializers/thecore_background_jobs_after_initialize.rb
82
- - config/initializers/thecore_background_jobs_rails_admin_config.rb
83
- - config/initializers/thecore_background_jobs_static_links.rb
84
80
  - config/routes.rb
85
- - lib/abilities_thecore_background_jobs_concern.rb
86
81
  - lib/admin_constraint.rb
87
82
  - lib/tasks/thecore_background_jobs_tasks.rake
88
83
  - lib/thecore_background_jobs.rb
@@ -107,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
104
  requirements: []
110
- rubygems_version: 3.0.1
105
+ rubygems_version: 3.1.2
111
106
  signing_key:
112
107
  specification_version: 4
113
108
  summary: Thecorized thecore_background_jobs
@@ -1,6 +0,0 @@
1
- # abilities_thecore_background_jobs_concern
2
- Rails.application.configure do
3
- config.after_initialize do
4
- require 'abilities_thecore_background_jobs_concern'
5
- end
6
- end
@@ -1,4 +0,0 @@
1
- # Not so good, but let's try
2
- RailsAdmin.config do |config|
3
- (config.navigation_static_links ||= {}).merge! "Background Monitor" => "#{ENV['RAILS_RELATIVE_URL_ROOT']}/app/sidekiq"
4
- end
@@ -1,23 +0,0 @@
1
-
2
- require 'active_support/concern'
3
-
4
- module ThecoreBackgroundJobAbilitiesConcern
5
- extend ActiveSupport::Concern
6
- included do
7
- def thecore_background_jobs_abilities user
8
- if user
9
- # if the user is logged in, it can do certain tasks regardless his role
10
- if user.admin?
11
- # if the user is an admin, it can do a lot of things, usually
12
- end
13
-
14
- if user.has_role? :role
15
- # a specific role, brings specific powers
16
- end
17
- end
18
- end
19
- end
20
- end
21
-
22
- # include the extension
23
- TheCoreAbilities.send(:include, ThecoreBackgroundJobAbilitiesConcern)