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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e20fc5c538638c6ec3efcc44f96a75e8a6a3a15906738e78990add18f15ff5a
4
- data.tar.gz: e21c25aad43211fa210785d92c7d1e182efbec71471feb7aa48d1cc5dd802cad
3
+ metadata.gz: c5e4649a97ccde536e22d2449ec678ccde0b955c0788c223fecd16487e7e9880
4
+ data.tar.gz: 690b2b57d00bba771275d7143c2104f9b139fc2b883600bf4a95bfbd8b6591b5
5
5
  SHA512:
6
- metadata.gz: 857d47d6d0dfbe7ffb7b2e97049c5a718877525212508afa787c506aa5497a4ac172a92bf9ee9218673f83bad99efbb076f7460a3b71d63cf2f9431bd34dfb2b
7
- data.tar.gz: e14112f7c11dde264d54a5143e4d555a54206528effd0c7ae0679ef5106026b942e4e17b3d539214594b8c00e03317acd74f4514f106a526b967f17f635ee1b9
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.0] - 2023-10-07
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-07
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-07
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Belt
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
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.0
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-10-28 00:00:00.000000000 Z
11
+ date: 2023-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq