active_job_dash 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: 1d5c1ebe48cc6f8dfa5d7c04abb8dd8339593785697e354095675f07e12ff1b8
4
- data.tar.gz: 7d6a81b1d9d4e90a79a2df8b97d5c3ea9d319e8fbf68d37bf601cf90e0e01222
3
+ metadata.gz: 554c5b3c3e20185998fe0aa952cf760af3570183a4c0b2a8568530e335b3f6d9
4
+ data.tar.gz: f51167bf276c78ba680a8ee7a8120293d2343b16b2db1bd934a56f1a3214d262
5
5
  SHA512:
6
- metadata.gz: 5e43b17afd3711f2f777c846056e18e488c2b37321e0bcda570bce71fe00f58996cafba28807c61c9d206c98c182451adb63bd01043a87e15dd0ee5bd3b3ca96
7
- data.tar.gz: 7a2fd2f938e1287199d0cf046c65039246fc0a72530088d1885b57d9990bf3f276cf8f4bd3673d9f460d316c5c655e31e3e1933ef6cfa077752088505893b0ff
6
+ metadata.gz: f6eb4700dbfb4db1f263f85c513d7a1b8e0133bc01ab85175d6c11e17176d366f771aa241d0801b54eb6dc5382ff8c2c8c2dbdf1f39967d6a2ea95d92c2a3e2a
7
+ data.tar.gz: 6836943c44e095507e6e96c9ec19baff65864e93040617801469adfc82032d0b8c0f5199d7ed3868dafe4c16ebc0a73d7569512ca2af83d5d8cdfc4d89854dd9
@@ -7,9 +7,9 @@ module ActiveJobDash
7
7
  private
8
8
 
9
9
  def authenticate!
10
- return unless ActiveJobDash.configuration.dashboard_auth
10
+ return unless ActiveJobDash.dashboard_auth
11
11
 
12
- instance_exec(&ActiveJobDash.configuration.dashboard_auth)
12
+ instance_exec(&ActiveJobDash.dashboard_auth)
13
13
  end
14
14
  end
15
15
  end
@@ -45,7 +45,7 @@ module ActiveJobDash
45
45
  end
46
46
 
47
47
  def purge
48
- days = params[:days]&.to_i || ActiveJobDash.configuration.retention_days
48
+ days = params[:days]&.to_i || ActiveJobDash.retention_days
49
49
  deleted = JobExecution.where(created_at: ...days.days.ago).delete_all
50
50
 
51
51
  redirect_to dashboard_path, notice: "Purged #{deleted} records older than #{days} days"
@@ -1,3 +1,3 @@
1
1
  module ActiveJobDash
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_job_dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BoringCache