thecore_background_jobs 2.0.4 → 2.0.8

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: e3b8aa47092c080578374e233a6313a03121876b7b1ba33c99e4698e8b874fe3
4
- data.tar.gz: bf8daf693be345f4733a046ceb7e218eceabe1818202b04b4168d57d3a8a9379
3
+ metadata.gz: c9d05b4c68a2a8e0fcaff668b33d552a90291976671734ca6ad22c335194d70d
4
+ data.tar.gz: c0e2400a6516fe93a1163acd8d5847f70b82415fc14f9f7721bc0e7444b4f748
5
5
  SHA512:
6
- metadata.gz: 6f0b4aa80001542db8440902ea5f5241a49d8420bf67f544862625e5bf464763e9c920380ea96566a17b2b4f6a23d1bd3508748532423dfe25c7d5d860ca3ea3
7
- data.tar.gz: bdc378ce9030b50be2484ad051fcf5be563486019e5b5be4b059a79c6ea6ec91da36486ccc1147bc6f714b8dc2efed8d13c40d2bd2163edf6dc91435fb02f14f
6
+ metadata.gz: 44addcb6d4db309d7eccb3ba9df19b760d0d71f9f9721095bbb3bd29db40cd3d247ca433937d105e1e2b0b9b46975e18742baf86a5f62bcaee563574ed10d3ff
7
+ data.tar.gz: 62db899e4b7a16596b0959e1f5594f2c0bf399755fb7debf880345a56dd10c91202807b979ebada25a65df0216ea2cf726cc60976c07bd47a4f8bbbfed7ee172
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  Rails.application.routes.draw do
2
2
  require 'sidekiq/web'
3
- Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base]
4
- authenticate do
5
- mount Sidekiq::Web, at: "/app/sidekiq"
3
+
4
+ # Allow any authenticated User with admin capability
5
+ authenticate :user, lambda { |u| u.admin? } do
6
+ mount Sidekiq::Web => '/sidekiq'
6
7
  end
7
- # mount Sidekiq::Web => '/sidekiq', :constraints => AdminConstraint.new
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackgroundJobs
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_background_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -77,9 +77,7 @@ files:
77
77
  - README.md
78
78
  - Rakefile
79
79
  - app/workers/demo_worker.rb
80
- - config/initializers/sidekiq.rb
81
80
  - config/routes.rb
82
- - db/migrate/20210212112409_sidekiq_redis_url.rb
83
81
  - lib/admin_constraint.rb
84
82
  - lib/tasks/thecore_background_jobs_tasks.rake
85
83
  - lib/thecore_background_jobs.rb
@@ -104,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
102
  - !ruby/object:Gem::Version
105
103
  version: '0'
106
104
  requirements: []
107
- rubygems_version: 3.0.3
105
+ rubygems_version: 3.0.3.1
108
106
  signing_key:
109
107
  specification_version: 4
110
108
  summary: Thecorized thecore_background_jobs
@@ -1,7 +0,0 @@
1
- Sidekiq.configure_server do |config|
2
- config.redis = { url: Settings.ns(:sidekiq).redis_url }
3
- end
4
-
5
- Sidekiq.configure_client do |config|
6
- config.redis = { url: Settings.ns(:sidekiq).redis_url }
7
- end
@@ -1,5 +0,0 @@
1
- class SidekiqRedisUrl < ActiveRecord::Migration[6.0]
2
- def change
3
- Settings.ns(:sidekiq).redis_url = 'redis://127.0.0.1:6379/0'
4
- end
5
- end