clockwork_web 0.3.1 → 0.4.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 +4 -4
- data/CHANGELOG.md +18 -0
- data/LICENSE.txt +1 -1
- data/app/controllers/clockwork_web/home_controller.rb +1 -1
- data/lib/clockwork_web/version.rb +1 -1
- data/lib/clockwork_web.rb +3 -1
- metadata +6 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9192ae4c7f09e5d0ede9b834e86a52bc29398c6e401ec3497421f4efd05f4ff6
|
4
|
+
data.tar.gz: 7b4f48b4b0a4161883f6117105147ba9965af089ba5dc086a3b145883e330f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcda1778c50ee0c49c7cd5495e80169d825a47e2dd799069dd28d7624399f5136213d7bb8c37791680b410ebe17f3c8a6462bfbec505d4bfc2bb362beefa02ce
|
7
|
+
data.tar.gz: 770414c65c7ff8a292373b58ec908cee645ebe6ca65f81461a159203bf92a531bd070343b035696bdc6dcfb92ca6222fa82ee3ca232f664cb956e4fe7a9cea15
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.4.0 (2025-04-03)
|
2
|
+
|
3
|
+
- Dropped support for Ruby < 3.2 and Rails < 7.1
|
4
|
+
|
1
5
|
## 0.3.1 (2024-09-04)
|
2
6
|
|
3
7
|
- Improved CSP support
|
@@ -30,3 +34,17 @@
|
|
30
34
|
## 0.0.4 (2015-03-15)
|
31
35
|
|
32
36
|
- Better monitoring for multiple processes
|
37
|
+
|
38
|
+
## 0.0.3 (2015-02-14)
|
39
|
+
|
40
|
+
- Added `running?` method
|
41
|
+
- Added `multiple?` method
|
42
|
+
- Added `monitor` option
|
43
|
+
|
44
|
+
## 0.0.2 (2015-02-13)
|
45
|
+
|
46
|
+
- Added `clock_path` option
|
47
|
+
|
48
|
+
## 0.0.1 (2015-02-13)
|
49
|
+
|
50
|
+
- First release
|
data/LICENSE.txt
CHANGED
@@ -32,7 +32,7 @@ module ClockworkWeb
|
|
32
32
|
else
|
33
33
|
ClockworkWeb.disable(job)
|
34
34
|
end
|
35
|
-
ClockworkWeb.on_job_update.call(job: job, enable: enable, user: try(
|
35
|
+
ClockworkWeb.on_job_update.call(job: job, enable: enable, user: try(ClockworkWeb.user_method)) if ClockworkWeb.on_job_update
|
36
36
|
redirect_to root_path
|
37
37
|
end
|
38
38
|
end
|
data/lib/clockwork_web.rb
CHANGED
@@ -3,7 +3,7 @@ require "clockwork"
|
|
3
3
|
require "safely/core"
|
4
4
|
|
5
5
|
# modules
|
6
|
-
require_relative "clockwork_web/engine"
|
6
|
+
require_relative "clockwork_web/engine" if defined?(Rails)
|
7
7
|
require_relative "clockwork_web/version"
|
8
8
|
|
9
9
|
module ClockworkWeb
|
@@ -18,9 +18,11 @@ module ClockworkWeb
|
|
18
18
|
attr_accessor :monitor
|
19
19
|
attr_accessor :running_threshold
|
20
20
|
attr_accessor :on_job_update
|
21
|
+
attr_accessor :user_method
|
21
22
|
end
|
22
23
|
self.monitor = true
|
23
24
|
self.running_threshold = 60 # seconds
|
25
|
+
self.user_method = :current_user
|
24
26
|
|
25
27
|
def self.enable(job)
|
26
28
|
if redis
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clockwork_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-03 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: clockwork
|
@@ -44,15 +43,14 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - ">="
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
46
|
+
version: '7.1'
|
48
47
|
type: :runtime
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description:
|
53
|
+
version: '7.1'
|
56
54
|
email: andrew@ankane.org
|
57
55
|
executables: []
|
58
56
|
extensions: []
|
@@ -72,7 +70,6 @@ homepage: https://github.com/ankane/clockwork_web
|
|
72
70
|
licenses:
|
73
71
|
- MIT
|
74
72
|
metadata: {}
|
75
|
-
post_install_message:
|
76
73
|
rdoc_options: []
|
77
74
|
require_paths:
|
78
75
|
- lib
|
@@ -80,15 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
77
|
requirements:
|
81
78
|
- - ">="
|
82
79
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
80
|
+
version: '3.2'
|
84
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
82
|
requirements:
|
86
83
|
- - ">="
|
87
84
|
- !ruby/object:Gem::Version
|
88
85
|
version: '0'
|
89
86
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
91
|
-
signing_key:
|
87
|
+
rubygems_version: 3.6.2
|
92
88
|
specification_version: 4
|
93
89
|
summary: A web interface for Clockwork
|
94
90
|
test_files: []
|