signum 0.9.0 → 0.9.1

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: 04a51bfdd67f790a1d8885ccff38d73703cb217d46d4ffb2a1fba60ff0bc38c5
4
- data.tar.gz: cbcd2e414b7b74fe7ee0e16e59c9a7314728983ffa747e0ccc2d1478aca958bc
3
+ metadata.gz: 14ea139d54cddb7019a86b2e85650910a6c5c4c2b370734c44297740ce0240e4
4
+ data.tar.gz: f41b1ad624844998f7cc949fe50690736495a1a0d0d8c0cfa345323e93b8bcfd
5
5
  SHA512:
6
- metadata.gz: 96e07539bc6704739d8d65022a6838a74e2cc02ec0f40b6aa928d2d9b3bc8e8b4ffde1a91425100df326bae3088160c1dfc385850ddeffaa3599e5c01c8b5248
7
- data.tar.gz: 38fac664d3baebd2756f11ccebb9fe484b99a8f6c45abc69165cf63e8dd5e58f0f10b968d98a12a2fd4e8719fdace3ccc73c5dc196bd477adddf424a6e729306
6
+ metadata.gz: 12df075d4b815a708eac3dd12469e8581c57e74907d790ffb9a4ae3a335fcefcf72d25ae144333a1e853ed24a682f629dd23e91c941d9947eebebd1182c2f1eb
7
+ data.tar.gz: c2fd943c340af257bb7b25d4d2a28c7dd89e75b6d19e76bff067cf050c25ba2e22bc83ada890b3403073c5532faf4c1fe9be3dc2d3f97fe6f193683f773b8145
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ test/dummy/log/*.log
8
8
  test/dummy/storage/
9
9
  test/dummy/tmp/
10
10
  node_modules
11
+ mise.local.toml
data/.shipkit.yml CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- previous_version: 0.8.1
2
+ previous_version: 0.9.0
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- signum (0.8.1)
16
+ signum (0.9.0)
17
17
  importmap-rails
18
18
  pg
19
19
  rails (> 6.0)
@@ -163,6 +163,7 @@ GEM
163
163
  ast (~> 2.4.1)
164
164
  racc
165
165
  pg (1.7.0)
166
+ prism (2.1.0)
166
167
  psych (5.1.2)
167
168
  stringio
168
169
  pundit (2.3.1)
@@ -273,10 +274,10 @@ GEM
273
274
  stimulus-rails (1.3.4)
274
275
  railties (>= 6.0.0)
275
276
  stringio (3.1.0)
276
- tailwindcss-rails (4.6.0)
277
+ tailwindcss-rails (4.7.0)
277
278
  railties (>= 7.0.0)
278
279
  tailwindcss-ruby (~> 4.0)
279
- tailwindcss-ruby (4.3.3)
280
+ tailwindcss-ruby (4.3.4)
280
281
  temple (0.10.7)
281
282
  thor (1.3.1)
282
283
  tilt (2.9.0)
@@ -287,10 +288,10 @@ GEM
287
288
  tzinfo (2.0.6)
288
289
  concurrent-ruby (~> 1.0)
289
290
  unicode-display_width (2.5.0)
290
- view_component (4.15.0)
291
+ view_component (4.24.0)
291
292
  actionview (>= 7.1.0)
292
293
  activesupport (>= 7.1.0)
293
- concurrent-ruby (~> 1)
294
+ prism (>= 1.0)
294
295
  webrick (1.8.1)
295
296
  websocket-driver (0.8.2)
296
297
  base64
@@ -101,3 +101,13 @@
101
101
  /* progress bar container */
102
102
  @apply basis-full p-1;
103
103
  }
104
+
105
+ .signum-notification-body__pbc__pb {
106
+ /* progress bar */
107
+ @apply h-1.5 w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700;
108
+ }
109
+
110
+ .signum-notification-body__pbc__pb__b {
111
+ /* progress bar's bar */
112
+ @apply h-full rounded-full bg-blue-500 dark:bg-blue-600;
113
+ }
@@ -38,6 +38,7 @@
38
38
  a.signum-notification-body__mb__bmc__bc__b*{href: button.fetch('url', '#'), target: button.fetch("target", "_blank"), 'data-action': button["close"] ? "click->signum-notification-body#close" : "" }.merge(button.fetch("link_attributes", {}))
39
39
  = button["title"]
40
40
  - if signal.count.present?
41
- - percentage = signal.total.present? ? signal.count.fdiv(signal.total) * 100 : signal.count
41
+ - percentage = (signal.total.to_f.positive? ? signal.count.fdiv(signal.total) * 100 : signal.count.to_f).clamp(0, 100)
42
42
  .signum-notification-body__pbc
43
- = helpers.sts.progress_bar percentage, size: :small, label: false
43
+ .signum-notification-body__pbc__pb role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow=percentage.round
44
+ .signum-notification-body__pbc__pb__b style="width: #{percentage}%"
@@ -12,6 +12,8 @@ export default class extends ApplicationController {
12
12
  }
13
13
 
14
14
  close(event) {
15
+ // Marked, so the host app can animate it out before it's removed
16
+ this.element?.parentElement?.setAttribute("data-closing", "")
15
17
  setTimeout(() => {
16
18
  this.element?.parentElement?.remove()
17
19
  if (event && this.typeValue != "balloon") {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Signum
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: pg
@@ -288,7 +287,6 @@ homepage: https://github.com/entdec/signum
288
287
  licenses:
289
288
  - MIT
290
289
  metadata: {}
291
- post_install_message:
292
290
  rdoc_options: []
293
291
  require_paths:
294
292
  - lib
@@ -303,8 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
301
  - !ruby/object:Gem::Version
304
302
  version: '0'
305
303
  requirements: []
306
- rubygems_version: 3.4.10
307
- signing_key:
304
+ rubygems_version: 3.6.9
308
305
  specification_version: 4
309
306
  summary: Replacement for flash messages, also from background jobs
310
307
  test_files: []