signum 0.8.1 → 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: c4b5aab67ad43f0eae98ede953197bb8324656871d6e751a023c25713da7ff9b
4
- data.tar.gz: 852f44ebefacb06cab19e34359da7eb7e9f2468e8dc4c8a3c6487f6ac0d7e052
3
+ metadata.gz: 14ea139d54cddb7019a86b2e85650910a6c5c4c2b370734c44297740ce0240e4
4
+ data.tar.gz: f41b1ad624844998f7cc949fe50690736495a1a0d0d8c0cfa345323e93b8bcfd
5
5
  SHA512:
6
- metadata.gz: f029731ad14ba294b82531a77bb39f8976b96fb661afbf7e6c50124f3ae6910aa681e673b420b5444400d578d253525f5126b09116971224e25b0bb648d79394
7
- data.tar.gz: b9aa898b46c7dd80b3e4377eb72f498de80ebc208fe1b2f6ad110f09c9d637680a30b27bab0fb0ce9d39cbbcbd1b4a1cf6b96b6ece0598202279593a3ef24601
6
+ metadata.gz: 12df075d4b815a708eac3dd12469e8581c57e74907d790ffb9a4ae3a335fcefcf72d25ae144333a1e853ed24a682f629dd23e91c941d9947eebebd1182c2f1eb
7
+ data.tar.gz: c2fd943c340af257bb7b25d4d2a28c7dd89e75b6d19e76bff067cf050c25ba2e22bc83ada890b3403073c5532faf4c1fe9be3dc2d3f97fe6f193683f773b8145
@@ -0,0 +1,7 @@
1
+ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version
2
+ ARG RUBY_VERSION=3.4.7
3
+ FROM ghcr.io/rails/devcontainer/images/ruby:3.4.7
4
+
5
+ # Default value to allow debug server to serve content over GitHub Codespace's port forwarding service
6
+ # The value is a comma-separated list of allowed domains
7
+ ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.preview.app.github.dev,.app.github.dev"
@@ -0,0 +1,34 @@
1
+ {
2
+ "features": {
3
+ "ghcr.io/devcontainers/features/common-utils:2": {
4
+ "version": "2.5.9",
5
+ "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a",
6
+ "integrity": "sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a"
7
+ },
8
+ "ghcr.io/devcontainers/features/docker-in-docker:2": {
9
+ "version": "2.17.0",
10
+ "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c",
11
+ "integrity": "sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c"
12
+ },
13
+ "ghcr.io/devcontainers/features/github-cli:1": {
14
+ "version": "1.1.0",
15
+ "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
16
+ "integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
17
+ },
18
+ "ghcr.io/devcontainers/features/node:2": {
19
+ "version": "2.1.0",
20
+ "resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",
21
+ "integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"
22
+ },
23
+ "ghcr.io/rails/devcontainer/features/activestorage": {
24
+ "version": "1.1.1",
25
+ "resolved": "ghcr.io/rails/devcontainer/features/activestorage@sha256:7fa8fff898ac33076ebf65631d3c6c902dc9bad87de3e5dfa645f3e2d7a35c07",
26
+ "integrity": "sha256:7fa8fff898ac33076ebf65631d3c6c902dc9bad87de3e5dfa645f3e2d7a35c07"
27
+ },
28
+ "ghcr.io/rails/devcontainer/features/postgres-client": {
29
+ "version": "1.2.0",
30
+ "resolved": "ghcr.io/rails/devcontainer/features/postgres-client@sha256:7e6b118646d6e0d82a9ec06e81ad1b5406f7042f0279d35fff3a7a612be7a050",
31
+ "integrity": "sha256:7e6b118646d6e0d82a9ec06e81ad1b5406f7042f0279d35fff3a7a612be7a050"
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres
3
+ {
4
+ "name": "signum",
5
+ "dockerComposeFile": "docker-compose.yml",
6
+ "service": "app",
7
+ "features": {
8
+ "ghcr.io/devcontainers/features/node:2": {},
9
+ "ghcr.io/devcontainers/features/common-utils:2": {
10
+ "configureZshAsDefaultShell": true,
11
+ "installOhMyZsh": false,
12
+ "installOhMyZshConfig": false
13
+ },
14
+ "ghcr.io/rails/devcontainer/features/activestorage": {},
15
+ "ghcr.io/rails/devcontainer/features/postgres-client": {
16
+ "version": "18"
17
+ },
18
+ "ghcr.io/devcontainers/features/github-cli:1": {},
19
+ "ghcr.io/devcontainers/features/docker-in-docker:2": {
20
+ "moby": false
21
+ }
22
+ },
23
+ "mounts": [
24
+ "source=/run/host-services/ssh-auth.sock,target=/ssh-agent,type=bind,consistency=cached",
25
+ "source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached"
26
+ ],
27
+ "postStartCommand": ".devcontainer/postStart.sh",
28
+ "containerEnv": {
29
+ "VISUAL": "vi",
30
+ "SSH_AUTH_SOCK": "/ssh-agent"
31
+ },
32
+ "customizations": {},
33
+ "workspaceFolder": "/workspaces/signum"
34
+ }
@@ -0,0 +1,35 @@
1
+ name: signum
2
+
3
+ services:
4
+ app:
5
+ image: ghcr.io/rails/devcontainer/images/ruby:4.0.5
6
+
7
+ volumes:
8
+ - ../..:/workspaces
9
+
10
+ # Overrides default command so things don't shut down after the process ends.
11
+ command: sleep infinity
12
+
13
+ depends_on:
14
+ - postgres
15
+ - redis
16
+
17
+ postgres:
18
+ image: postgres:18
19
+ restart: unless-stopped
20
+ volumes:
21
+ - postgres-data:/var/lib/postgresql/18/docker
22
+ environment:
23
+ POSTGRES_USER: postgres
24
+ POSTGRES_PASSWORD: postgres
25
+
26
+ redis:
27
+ image: valkey/valkey:8
28
+ restart: unless-stopped
29
+
30
+ selenium:
31
+ image: selenium/standalone-firefox
32
+ restart: unless-stopped
33
+
34
+ volumes:
35
+ postgres-data:
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ MISE="$HOME/.local/bin/mise"
5
+ eval "$("$MISE" activate bash)"
6
+ "$MISE" trust
7
+ "$MISE" install
8
+ sudo chmod 666 /ssh-agent
9
+
10
+ "$MISE" exec -- npm install
11
+ "$MISE" exec -- bundle install
12
+ "$MISE" exec --cd test/dummy -- rake db:prepare
13
+ "$MISE" exec --cd test/dummy -- rake tailwindcss:config
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 ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ previous_version: 0.9.0
data/Gemfile CHANGED
@@ -20,3 +20,7 @@ gemspec
20
20
  gem "auxilium", "~> 3", entdec: "auxilium"
21
21
 
22
22
  gem "sprockets-rails"
23
+
24
+ source "https://rubygems.pkg.github.com/entdec" do
25
+ gem "shipkit"
26
+ end
data/Gemfile.lock CHANGED
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- signum (0.7.9)
16
+ signum (0.9.0)
17
17
  importmap-rails
18
18
  pg
19
19
  rails (> 6.0)
@@ -22,7 +22,7 @@ PATH
22
22
  stimulus-rails
23
23
  tailwindcss-rails
24
24
  turbo-rails
25
- view_component
25
+ view_component (>= 4)
26
26
 
27
27
  GEM
28
28
  remote: https://rubygems.org/
@@ -108,16 +108,18 @@ GEM
108
108
  concurrent-ruby (1.2.3)
109
109
  connection_pool (2.4.1)
110
110
  crass (1.0.6)
111
- date (3.4.1)
112
- debug (0.2.1)
111
+ date (3.6.0)
112
+ debug (1.11.1)
113
+ irb (~> 1.10)
114
+ reline (>= 0.3.8)
113
115
  drb (2.2.0)
114
116
  ruby2_keywords
115
117
  erubi (1.12.0)
116
- globalid (1.2.1)
118
+ globalid (1.4.0)
117
119
  activesupport (>= 6.1)
118
120
  i18n (1.14.1)
119
121
  concurrent-ruby (~> 1.0)
120
- importmap-rails (2.1.0)
122
+ importmap-rails (2.2.3)
121
123
  actionpack (>= 6.0.0)
122
124
  activesupport (>= 6.0.0)
123
125
  railties (>= 6.0.0)
@@ -128,30 +130,31 @@ GEM
128
130
  json (2.7.2)
129
131
  language_server-protocol (3.17.0.3)
130
132
  lint_roller (1.1.0)
133
+ logger (1.7.0)
131
134
  loofah (2.22.0)
132
135
  crass (~> 1.0.2)
133
136
  nokogiri (>= 1.12.0)
134
- mail (2.8.1)
137
+ mail (2.9.1)
138
+ logger
135
139
  mini_mime (>= 0.1.1)
136
140
  net-imap
137
141
  net-pop
138
142
  net-smtp
139
- marcel (1.0.4)
140
- method_source (1.1.0)
143
+ marcel (1.2.1)
141
144
  mini_mime (1.1.5)
142
145
  mini_portile2 (2.8.9)
143
146
  minitest (5.22.2)
144
147
  mutex_m (0.2.0)
145
- net-imap (0.5.9)
148
+ net-imap (0.6.8)
146
149
  date
147
150
  net-protocol
148
151
  net-pop (0.1.2)
149
152
  net-protocol
150
- net-protocol (0.2.2)
153
+ net-protocol (0.4.0)
151
154
  timeout
152
- net-smtp (0.5.1)
155
+ net-smtp (0.5.2)
153
156
  net-protocol
154
- nio4r (2.7.4)
157
+ nio4r (2.7.5)
155
158
  nokogiri (1.18.9)
156
159
  mini_portile2 (~> 2.8.2)
157
160
  racc (~> 1.4)
@@ -159,7 +162,8 @@ GEM
159
162
  parser (3.3.0.5)
160
163
  ast (~> 2.4.1)
161
164
  racc
162
- pg (1.5.9)
165
+ pg (1.7.0)
166
+ prism (2.1.0)
163
167
  psych (5.1.2)
164
168
  stringio
165
169
  pundit (2.3.1)
@@ -232,7 +236,7 @@ GEM
232
236
  rubocop-ast (>= 1.30.0, < 2.0)
233
237
  ruby-progressbar (1.13.0)
234
238
  ruby2_keywords (0.0.5)
235
- slim (5.2.1)
239
+ slim (5.2.2)
236
240
  temple (~> 0.10.0)
237
241
  tilt (>= 2.1.0)
238
242
  slim-rails (3.7.0)
@@ -260,7 +264,7 @@ GEM
260
264
  standard-performance (1.3.1)
261
265
  lint_roller (~> 1.1)
262
266
  rubocop-performance (~> 1.20.2)
263
- state_machines (0.100.0)
267
+ state_machines (0.202.0)
264
268
  state_machines-activemodel (0.31.0)
265
269
  activemodel (>= 7.1)
266
270
  state_machines (>= 0.31.0)
@@ -270,38 +274,44 @@ GEM
270
274
  stimulus-rails (1.3.4)
271
275
  railties (>= 6.0.0)
272
276
  stringio (3.1.0)
273
- tailwindcss-rails (4.3.0)
277
+ tailwindcss-rails (4.7.0)
274
278
  railties (>= 7.0.0)
275
279
  tailwindcss-ruby (~> 4.0)
276
- tailwindcss-ruby (4.1.11)
277
- temple (0.10.3)
280
+ tailwindcss-ruby (4.3.4)
281
+ temple (0.10.7)
278
282
  thor (1.3.1)
279
- tilt (2.6.1)
280
- timeout (0.4.3)
281
- turbo-rails (2.0.16)
283
+ tilt (2.9.0)
284
+ timeout (0.6.1)
285
+ turbo-rails (2.0.23)
282
286
  actionpack (>= 7.1.0)
283
287
  railties (>= 7.1.0)
284
288
  tzinfo (2.0.6)
285
289
  concurrent-ruby (~> 1.0)
286
290
  unicode-display_width (2.5.0)
287
- view_component (3.23.2)
288
- activesupport (>= 5.2.0, < 8.1)
289
- concurrent-ruby (~> 1)
290
- method_source (~> 1.0)
291
+ view_component (4.24.0)
292
+ actionview (>= 7.1.0)
293
+ activesupport (>= 7.1.0)
294
+ prism (>= 1.0)
291
295
  webrick (1.8.1)
292
- websocket-driver (0.8.0)
296
+ websocket-driver (0.8.2)
293
297
  base64
294
298
  websocket-extensions (>= 0.1.0)
295
299
  websocket-extensions (0.1.5)
296
300
  zeitwerk (2.6.13)
297
301
 
302
+ GEM
303
+ remote: https://rubygems.pkg.github.com/entdec/
304
+ specs:
305
+ shipkit (0.1.2)
306
+
298
307
  PLATFORMS
299
308
  ruby
300
309
 
301
310
  DEPENDENCIES
302
311
  auxilium (~> 3)!
303
- debug (~> 0)
312
+ debug (~> 1.0)
304
313
  rubocop (~> 1)
314
+ shipkit!
305
315
  signum!
306
316
  sprockets-rails
307
317
  sqlite3
@@ -0,0 +1,6 @@
1
+ /* Entry point for tailwindcss-rails v4 (Tailwind CSS v4).
2
+ The host app includes it with: @import "../builds/tailwind/signum";
3
+ Imported into the components layer so utility classes still override component styles, as they did in v3 */
4
+ @import "../../stylesheets/signum/application.css" layer(components);
5
+
6
+ @source "../../..";
@@ -1,3 +1,3 @@
1
1
  .signum-notification {
2
- @apply pointer-events-auto flex flex-wrap w-full divide-x divide-y divide-gray-200 max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5;
2
+ @apply pointer-events-auto flex flex-wrap w-full divide-x divide-y divide-gray-200 max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black/5;
3
3
  }
@@ -1,103 +1,113 @@
1
1
  .signum-notification-body {
2
2
  @apply flex flex-col w-full divide-y dark:divide-gray-500 dark:bg-gray-600;
3
+ }
4
+
5
+ .signum-notification-body__mb {
6
+ /* main body */
7
+ @apply flex basis-full divide-x dark:divide-gray-500;
8
+ }
9
+
10
+ .signum-notification-body__mb__bc {
11
+ /* body container */
12
+ @apply flex grow py-4 px-2 overflow-hidden;
13
+ }
14
+
15
+ .signum-notification-body__mb__bc__ic {
16
+ /* icon container */
17
+ @apply grow-0 pl-2 pr-3;
18
+
19
+ svg.info {
20
+ /* icon info */
21
+ @apply text-sky-400;
22
+ }
23
+
24
+ svg.success {
25
+ /* icon success */
26
+ @apply text-green-400;
27
+ }
3
28
 
4
- &__mb {
5
- /* main body */
6
- @apply flex basis-full divide-x dark:divide-gray-500;
7
-
8
- &__bc {
9
- /* body container */
10
- @apply flex grow py-4 px-2 overflow-hidden;
11
-
12
- &__ic {
13
- /* icon container */
14
- @apply grow-0 pl-2 pr-3;
15
-
16
- svg.info {
17
- /* icon info */
18
- @apply text-sky-400;
19
- }
20
-
21
- svg.success {
22
- /* icon success */
23
- @apply text-green-400;
24
- }
25
-
26
- svg.error {
27
- /* icon error */
28
- @apply text-red-400;
29
- }
30
-
31
- svg.warning {
32
- /* icon warning */
33
- @apply text-orange-400;
34
- }
35
- }
36
-
37
- &__mc {
38
- /* main container */
39
- @apply grow text-left break-words overflow-hidden;
40
-
41
- &__ti {
42
- /* title */
43
- @apply text-[0.81rem] font-medium text-gray-900;
44
- }
45
-
46
- &__tx {
47
- /* text */
48
- @apply text-xs text-gray-500 mt-1;
49
- }
50
-
51
- &__lkc {
52
- /* links container */
53
- @apply flex flex-wrap mt-3;
54
-
55
- &__lk {
56
- /* link */
57
- @apply rounded-md text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none mr-2;
58
- }
59
- }
60
-
61
- &__attc {
62
- /* attachments links container */
63
- @apply flex flex-wrap mt-3;
64
-
65
- &__att {
66
- /* attachment link */
67
- @apply rounded-md text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none mr-2;
68
- }
69
- }
70
- }
71
-
72
- &__bcc {
73
- /* close button container */
74
- @apply grow-0 m-1;
75
-
76
- &__b {
77
- /* button */
78
- @apply text-gray-400 hover:text-gray-500 cursor-pointer;
79
- }
80
- }
81
- }
82
-
83
- &__bmc {
84
- /* buttons main container */
85
- @apply flex grow-0 flex-col divide-y divide-gray-200;
86
-
87
- &__bc {
88
- /* buttons container */
89
- @apply flex flex-1;
90
-
91
- &__b {
92
- /* button */
93
- @apply flex w-full items-center justify-center text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none px-4 py-3;
94
- }
95
- }
96
- }
29
+ svg.error {
30
+ /* icon error */
31
+ @apply text-red-400;
97
32
  }
98
33
 
99
- &__pbc {
100
- /* progress bar container */
101
- @apply basis-full p-1;
34
+ svg.warning {
35
+ /* icon warning */
36
+ @apply text-orange-400;
102
37
  }
103
38
  }
39
+
40
+ .signum-notification-body__mb__bc__mc {
41
+ /* main container */
42
+ @apply grow text-left break-words overflow-hidden;
43
+ }
44
+
45
+ .signum-notification-body__mb__bc__mc__ti {
46
+ /* title */
47
+ @apply text-[0.81rem] font-medium text-gray-900;
48
+ }
49
+
50
+ .signum-notification-body__mb__bc__mc__tx {
51
+ /* text */
52
+ @apply text-xs text-gray-500 mt-1;
53
+ }
54
+
55
+ .signum-notification-body__mb__bc__mc__lkc {
56
+ /* links container */
57
+ @apply flex flex-wrap mt-3;
58
+ }
59
+
60
+ .signum-notification-body__mb__bc__mc__lkc__lk {
61
+ /* link */
62
+ @apply rounded-md text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none mr-2;
63
+ }
64
+
65
+ .signum-notification-body__mb__bc__mc__attc {
66
+ /* attachments links container */
67
+ @apply flex flex-wrap mt-3;
68
+ }
69
+
70
+ .signum-notification-body__mb__bc__mc__attc__att {
71
+ /* attachment link */
72
+ @apply rounded-md text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none mr-2;
73
+ }
74
+
75
+ .signum-notification-body__mb__bc__bcc {
76
+ /* close button container */
77
+ @apply grow-0 m-1;
78
+ }
79
+
80
+ .signum-notification-body__mb__bc__bcc__b {
81
+ /* button */
82
+ @apply text-gray-400 hover:text-gray-500 cursor-pointer;
83
+ }
84
+
85
+ .signum-notification-body__mb__bmc {
86
+ /* buttons main container */
87
+ @apply flex grow-0 flex-col divide-y divide-gray-200;
88
+ }
89
+
90
+ .signum-notification-body__mb__bmc__bc {
91
+ /* buttons container */
92
+ @apply flex flex-1;
93
+ }
94
+
95
+ .signum-notification-body__mb__bmc__bc__b {
96
+ /* button */
97
+ @apply flex w-full items-center justify-center text-xs font-medium text-gray-700 hover:text-gray-500 focus:outline-none px-4 py-3;
98
+ }
99
+
100
+ .signum-notification-body__pbc {
101
+ /* progress bar container */
102
+ @apply basis-full p-1;
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") {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .signum-notification-drawer-tray {
6
- @apply bg-gray-50 w-full max-w-sm absolute right-0 z-10 mx-1 w-1/3 origin-top-right divide-y dark:shadow-gray-600 dark:shadow-lg divide-gray-100 dark:bg-gray-900 dark:bg-opacity-95 bg-opacity-95 dark:border-gray-700 dark:divide-gray-800 rounded-md bg-white shadow-lg dark:outline-white ring-1 ring-black ring-opacity-5 overflow-y-auto max-h-[75vh];
6
+ @apply max-w-sm absolute right-0 z-10 mx-1 w-1/3 origin-top-right divide-y dark:shadow-gray-600 dark:shadow-lg divide-gray-100 dark:bg-gray-900/95 dark:border-gray-700 dark:divide-gray-800 rounded-md bg-white/95 shadow-lg dark:outline-white ring-1 ring-black/5 overflow-y-auto max-h-[75vh];
7
7
  }
8
8
 
9
9
  .signum-notification-drawer-item {
@@ -7,6 +7,8 @@ module Signum
7
7
  desc "Configures tailwind.config.js and application.tailwindcss.css"
8
8
 
9
9
  def add_content_to_tailwind_config
10
+ return unless File.exist?(File.join(destination_root, "config/tailwind.config.js"))
11
+
10
12
  inject_into_file "config/tailwind.config.js", before: "],\n theme: {" do
11
13
  " // Signum content\n" +
12
14
  %w[/app/views/**/* /app/helpers/**/* /app/controllers/**/* /app/components/**/* /app/javascript/**/*.js /app/assets/**/*.css].map { |path| " \"#{Signum::Engine.root}#{path}\"" }.join(",\n") +
@@ -15,6 +17,8 @@ module Signum
15
17
  end
16
18
 
17
19
  def add_content_application_tailwind_css
20
+ return unless File.exist?(File.join(destination_root, "app/assets/stylesheets/application.tailwind.css"))
21
+
18
22
  inject_into_file "app/assets/stylesheets/application.tailwind.css", before: "@tailwind base;" do
19
23
  "@import '#{Signum::Engine.root}/app/assets/stylesheets/signum/application.css';\n"
20
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Signum
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.1"
5
5
  end
@@ -9,7 +9,9 @@ namespace :signum do
9
9
  end
10
10
  end
11
11
 
12
- if Rake::Task.task_defined?("tailwindcss:build")
12
+ # tailwindcss-rails v4 picks up app/assets/tailwind/signum/engine.css itself (via tailwindcss:engines),
13
+ # so only hook in the v3 config generator when that task is absent.
14
+ if Rake::Task.task_defined?("tailwindcss:build") && !Rake::Task.task_defined?("tailwindcss:engines")
13
15
  Rake::Task["tailwindcss:build"].enhance(["signum:tailwindcss:config"])
14
16
  Rake::Task["tailwindcss:watch"].enhance(["signum:tailwindcss:config"])
15
17
  end
data/mise.toml ADDED
@@ -0,0 +1,8 @@
1
+ [tools]
2
+ node = "24"
3
+ ruby = "3.4.7"
4
+
5
+ [env]
6
+ RUBY_VERSION="3.4.7"
7
+ # SELENIUM_URL="http://selenium:4444/"
8
+ SELENIUM_URL="http://host.docker.internal:4444/"
data/package-lock.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@entdec/signum",
3
+ "version": "0.3.19",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@entdec/signum",
9
+ "version": "0.3.19",
10
+ "license": "MIT",
11
+ "devDependencies": {}
12
+ }
13
+ }
14
+ }
data/signum.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "turbo-rails"
32
32
  spec.add_dependency "stimulus-rails"
33
33
  spec.add_dependency "view_component", ">= 4"
34
- spec.add_development_dependency "debug", "~> 0"
34
+ spec.add_development_dependency "debug", "~> 1.0"
35
35
  spec.add_development_dependency "rubocop", "~> 1"
36
36
  spec.add_development_dependency "standard", "~> 1"
37
37
  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.8.1
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-06-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
@@ -170,14 +169,14 @@ dependencies:
170
169
  requirements:
171
170
  - - "~>"
172
171
  - !ruby/object:Gem::Version
173
- version: '0'
172
+ version: '1.0'
174
173
  type: :development
175
174
  prerelease: false
176
175
  version_requirements: !ruby/object:Gem::Requirement
177
176
  requirements:
178
177
  - - "~>"
179
178
  - !ruby/object:Gem::Version
180
- version: '0'
179
+ version: '1.0'
181
180
  - !ruby/object:Gem::Dependency
182
181
  name: rubocop
183
182
  requirement: !ruby/object:Gem::Requirement
@@ -214,9 +213,15 @@ executables: []
214
213
  extensions: []
215
214
  extra_rdoc_files: []
216
215
  files:
216
+ - ".devcontainer/Dockerfile"
217
+ - ".devcontainer/devcontainer-lock.json"
218
+ - ".devcontainer/devcontainer.json"
219
+ - ".devcontainer/docker-compose.yml"
220
+ - ".devcontainer/postStart.sh"
217
221
  - ".github/workflows/gem-push.yml"
218
222
  - ".gitignore"
219
223
  - ".rubocop.yml"
224
+ - ".shipkit.yml"
220
225
  - Gemfile
221
226
  - Gemfile.lock
222
227
  - MIT-LICENSE
@@ -225,6 +230,7 @@ files:
225
230
  - app/assets/config/signum_manifest.js
226
231
  - app/assets/images/.keep
227
232
  - app/assets/stylesheets/signum/application.css
233
+ - app/assets/tailwind/signum/engine.css
228
234
  - app/components/signum/notification/component.css
229
235
  - app/components/signum/notification/component.html.slim
230
236
  - app/components/signum/notification/component.rb
@@ -271,6 +277,8 @@ files:
271
277
  - lib/signum/engine.rb
272
278
  - lib/signum/version.rb
273
279
  - lib/tasks/signum_tasks.rake
280
+ - mise.toml
281
+ - package-lock.json
274
282
  - package.json
275
283
  - signum.gemspec
276
284
  - vendor/javascript/@hotwired--stimulus.js
@@ -279,7 +287,6 @@ homepage: https://github.com/entdec/signum
279
287
  licenses:
280
288
  - MIT
281
289
  metadata: {}
282
- post_install_message:
283
290
  rdoc_options: []
284
291
  require_paths:
285
292
  - lib
@@ -294,8 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
301
  - !ruby/object:Gem::Version
295
302
  version: '0'
296
303
  requirements: []
297
- rubygems_version: 3.4.10
298
- signing_key:
304
+ rubygems_version: 3.6.9
299
305
  specification_version: 4
300
306
  summary: Replacement for flash messages, also from background jobs
301
307
  test_files: []