sidekiq-belt 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -3
- data/lib/sidekiq/belt/ent/periodic_pause.rb +14 -2
- data/lib/sidekiq/belt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5e4649a97ccde536e22d2449ec678ccde0b955c0788c223fecd16487e7e9880
|
4
|
+
data.tar.gz: 690b2b57d00bba771275d7143c2104f9b139fc2b883600bf4a95bfbd8b6591b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3e644e8fb40e12809cd5de2744640a46df7695ad2146d7333ac09a7bcc3460168a23ff891d0e60b54fed06986240242f816f2e344d45fc86ead4c9399e350b
|
7
|
+
data.tar.gz: 61dc37a8dd5f5e3b29d7410275b3c2776063ac6e2944a72b01619cbb713e8c24d55dbf21c301781865cc9b8b030d7278d1e521e115742b1d6938fc103d65d377
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
-
## [0.3.
|
3
|
+
## [0.3.1] - 2023-11-01
|
4
|
+
|
5
|
+
- Added style to pause button
|
6
|
+
|
7
|
+
## [0.3.0] - 2023-10-28
|
4
8
|
|
5
9
|
- Feature to add button to remove failed batches
|
6
10
|
|
7
|
-
## [0.2.0] - 2023-10-
|
11
|
+
## [0.2.0] - 2023-10-14
|
8
12
|
|
9
13
|
- Feature to Pause/Unpause Periodic Jobs
|
10
14
|
|
11
|
-
## [0.1.0] - 2023-10-
|
15
|
+
## [0.1.0] - 2023-10-12
|
12
16
|
|
13
17
|
- Feature to run manualy Periodic Jobs
|
@@ -22,7 +22,7 @@ module Sidekiq
|
|
22
22
|
PAUSE_BUTTON = <<~ERB
|
23
23
|
<form action="<%= root_path %>loops/<%= loup.lid %>/pause" method="post">
|
24
24
|
<%= csrf_tag %>
|
25
|
-
<input class="btn btn-danger" type="submit" name="pause" value="<%= t('Pause') %>"
|
25
|
+
<input class="btn btn-danger btn-pause" type="submit" name="pause" value="<%= t('Pause') %>"
|
26
26
|
data-confirm="Pause the job <%= loup.klass %>? <%= t('AreYouSure') %>" />
|
27
27
|
</form>
|
28
28
|
ERB
|
@@ -30,13 +30,25 @@ module Sidekiq
|
|
30
30
|
UNPAUSE_BUTTON = <<~ERB
|
31
31
|
<form action="<%= root_path %>loops/<%= loup.lid %>/unpause" method="post">
|
32
32
|
<%= csrf_tag %>
|
33
|
-
<input class="btn btn-danger" type="submit" name="pause" value="<%= t('Unpause') %>"
|
33
|
+
<input class="btn btn-danger btn-unpause" type="submit" name="pause" value="<%= t('Unpause') %>"
|
34
34
|
data-confirm="Unpause the job <%= loup.klass %>? <%= t('AreYouSure') %>" />
|
35
35
|
</form>
|
36
36
|
ERB
|
37
37
|
|
38
38
|
def self.registered(app)
|
39
39
|
app.replace_content("/loops") do |content|
|
40
|
+
content.gsub!("</header>", "</header>
|
41
|
+
<style>
|
42
|
+
.btn-unpause {
|
43
|
+
color: #000;
|
44
|
+
background-image: none;
|
45
|
+
background-color: #ddd;
|
46
|
+
}
|
47
|
+
.btn-unpause:hover {
|
48
|
+
border: 1px solid;
|
49
|
+
}
|
50
|
+
</style>")
|
51
|
+
|
40
52
|
# Add the top of the table
|
41
53
|
content.gsub!("</th>\n </tr>", "</th><th><%= t('Pause/Unpause') %></th></th>\n </tr>")
|
42
54
|
|
data/lib/sidekiq/belt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-belt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Jeremias da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|