ultimate_turbo_modal 2.1.2 → 2.2.2

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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.tool-versions +1 -1
  3. data/CHANGELOG.md +17 -0
  4. data/CLAUDE.md +188 -2
  5. data/Gemfile.lock +1 -1
  6. data/README.md +22 -0
  7. data/VERSION +1 -1
  8. data/javascript/index.js +12 -3
  9. data/javascript/modal_controller.js +16 -4
  10. data/javascript/package.json +2 -1
  11. data/javascript/styles/vanilla.css +86 -0
  12. data/lib/generators/ultimate_turbo_modal/base.rb +117 -0
  13. data/lib/generators/ultimate_turbo_modal/install_generator.rb +46 -95
  14. data/lib/generators/ultimate_turbo_modal/templates/flavors/custom.rb +29 -2
  15. data/lib/generators/ultimate_turbo_modal/templates/flavors/tailwind.rb +30 -3
  16. data/lib/generators/ultimate_turbo_modal/templates/flavors/tailwind3.rb +29 -2
  17. data/lib/generators/ultimate_turbo_modal/templates/flavors/vanilla.rb +31 -3
  18. data/lib/generators/ultimate_turbo_modal/update_generator.rb +109 -0
  19. data/lib/ultimate_turbo_modal/base.rb +35 -14
  20. data/lib/ultimate_turbo_modal.rb +2 -0
  21. data/script/build_and_release.sh +20 -7
  22. metadata +8 -99
  23. data/demo-app/.gitattributes +0 -7
  24. data/demo-app/.gitignore +0 -34
  25. data/demo-app/.ruby-version +0 -1
  26. data/demo-app/.tool-versions +0 -2
  27. data/demo-app/Gemfile +0 -41
  28. data/demo-app/Gemfile.lock +0 -248
  29. data/demo-app/Procfile.dev +0 -3
  30. data/demo-app/README.md +0 -15
  31. data/demo-app/Rakefile +0 -6
  32. data/demo-app/app/assets/builds/.keep +0 -0
  33. data/demo-app/app/assets/images/.keep +0 -0
  34. data/demo-app/app/assets/stylesheets/application.css +0 -42
  35. data/demo-app/app/controllers/application_controller.rb +0 -10
  36. data/demo-app/app/controllers/concerns/.keep +0 -0
  37. data/demo-app/app/controllers/concerns/set_flavor.rb +0 -10
  38. data/demo-app/app/controllers/hide_from_backends_controller.rb +0 -34
  39. data/demo-app/app/controllers/modal_controller.rb +0 -11
  40. data/demo-app/app/controllers/posts_controller.rb +0 -69
  41. data/demo-app/app/controllers/welcome_controller.rb +0 -2
  42. data/demo-app/app/helpers/application_helper.rb +0 -9
  43. data/demo-app/app/javascript/application.js +0 -4
  44. data/demo-app/app/javascript/controllers/application.js +0 -13
  45. data/demo-app/app/javascript/controllers/dark_mode_controller.js +0 -28
  46. data/demo-app/app/javascript/controllers/flash_controller.js +0 -9
  47. data/demo-app/app/javascript/controllers/hello_controller.js +0 -7
  48. data/demo-app/app/javascript/controllers/index.js +0 -15
  49. data/demo-app/app/models/application_record.rb +0 -3
  50. data/demo-app/app/models/concerns/.keep +0 -0
  51. data/demo-app/app/models/post.rb +0 -4
  52. data/demo-app/app/views/hide_from_backends/_notice.html.erb +0 -10
  53. data/demo-app/app/views/hide_from_backends/create.turbo_stream.erb +0 -2
  54. data/demo-app/app/views/hide_from_backends/new.html.erb +0 -30
  55. data/demo-app/app/views/layouts/application.html.erb +0 -40
  56. data/demo-app/app/views/modal/index.html.erb +0 -45
  57. data/demo-app/app/views/modal/show.html.erb +0 -39
  58. data/demo-app/app/views/posts/_form.html.erb +0 -36
  59. data/demo-app/app/views/posts/_post.html.erb +0 -9
  60. data/demo-app/app/views/posts/edit.html.erb +0 -9
  61. data/demo-app/app/views/posts/index.html.erb +0 -14
  62. data/demo-app/app/views/posts/new.html.erb +0 -3
  63. data/demo-app/app/views/posts/show.html.erb +0 -21
  64. data/demo-app/app/views/shared/_flash.html.erb +0 -13
  65. data/demo-app/app/views/welcome/index.html.erb +0 -19
  66. data/demo-app/bin/bundle +0 -109
  67. data/demo-app/bin/dev +0 -18
  68. data/demo-app/bin/rails +0 -4
  69. data/demo-app/bin/rake +0 -4
  70. data/demo-app/bin/setup +0 -34
  71. data/demo-app/config/application.rb +0 -43
  72. data/demo-app/config/boot.rb +0 -3
  73. data/demo-app/config/credentials.yml.enc +0 -1
  74. data/demo-app/config/database.yml +0 -25
  75. data/demo-app/config/environment.rb +0 -14
  76. data/demo-app/config/environments/development.rb +0 -51
  77. data/demo-app/config/environments/production.rb +0 -67
  78. data/demo-app/config/environments/test.rb +0 -42
  79. data/demo-app/config/initializers/assets.rb +0 -7
  80. data/demo-app/config/initializers/content_security_policy.rb +0 -25
  81. data/demo-app/config/initializers/filter_parameter_logging.rb +0 -8
  82. data/demo-app/config/initializers/inflections.rb +0 -14
  83. data/demo-app/config/initializers/new_framework_defaults_8_0.rb +0 -30
  84. data/demo-app/config/initializers/permissions_policy.rb +0 -11
  85. data/demo-app/config/initializers/ultimate_turbo_modal.rb +0 -12
  86. data/demo-app/config/initializers/ultimate_turbo_modal_tailwind.rb +0 -21
  87. data/demo-app/config/initializers/ultimate_turbo_modal_vanilla.rb +0 -21
  88. data/demo-app/config/locales/en.yml +0 -33
  89. data/demo-app/config/puma.rb +0 -41
  90. data/demo-app/config/routes.rb +0 -9
  91. data/demo-app/config.ru +0 -6
  92. data/demo-app/db/migrate/20230331002502_create_posts.rb +0 -10
  93. data/demo-app/db/migrate/20231031012703_add_post.rb +0 -9
  94. data/demo-app/db/migrate/20231128141054_add_publish_on_to_posts.rb +0 -5
  95. data/demo-app/db/schema.rb +0 -22
  96. data/demo-app/lib/assets/.keep +0 -0
  97. data/demo-app/lib/tasks/.keep +0 -0
  98. data/demo-app/log/.keep +0 -0
  99. data/demo-app/package.json +0 -28
  100. data/demo-app/postcss.config.js +0 -7
  101. data/demo-app/public/400.html +0 -114
  102. data/demo-app/public/404.html +0 -114
  103. data/demo-app/public/406-unsupported-browser.html +0 -114
  104. data/demo-app/public/422.html +0 -114
  105. data/demo-app/public/500.html +0 -114
  106. data/demo-app/public/apple-touch-icon-precomposed.png +0 -0
  107. data/demo-app/public/apple-touch-icon.png +0 -0
  108. data/demo-app/public/favicon.ico +0 -0
  109. data/demo-app/public/icon.png +0 -0
  110. data/demo-app/public/icon.svg +0 -3
  111. data/demo-app/public/img/bootstrap-logo-shadow.png +0 -0
  112. data/demo-app/public/img/unicat.jpg +0 -0
  113. data/demo-app/public/img/vanilla.png +0 -0
  114. data/demo-app/public/robots.txt +0 -1
  115. data/demo-app/tmp/.keep +0 -0
  116. data/demo-app/tmp/pids/.keep +0 -0
  117. data/demo-app/vendor/.keep +0 -0
  118. data/demo-app/yarn.lock +0 -1035
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate_turbo_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-03-13 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: phlex-rails
@@ -168,102 +169,6 @@ files:
168
169
  - Rakefile
169
170
  - UPGRADING.md
170
171
  - VERSION
171
- - demo-app/.gitattributes
172
- - demo-app/.gitignore
173
- - demo-app/.ruby-version
174
- - demo-app/.tool-versions
175
- - demo-app/Gemfile
176
- - demo-app/Gemfile.lock
177
- - demo-app/Procfile.dev
178
- - demo-app/README.md
179
- - demo-app/Rakefile
180
- - demo-app/app/assets/builds/.keep
181
- - demo-app/app/assets/images/.keep
182
- - demo-app/app/assets/stylesheets/application.css
183
- - demo-app/app/controllers/application_controller.rb
184
- - demo-app/app/controllers/concerns/.keep
185
- - demo-app/app/controllers/concerns/set_flavor.rb
186
- - demo-app/app/controllers/hide_from_backends_controller.rb
187
- - demo-app/app/controllers/modal_controller.rb
188
- - demo-app/app/controllers/posts_controller.rb
189
- - demo-app/app/controllers/welcome_controller.rb
190
- - demo-app/app/helpers/application_helper.rb
191
- - demo-app/app/javascript/application.js
192
- - demo-app/app/javascript/controllers/application.js
193
- - demo-app/app/javascript/controllers/dark_mode_controller.js
194
- - demo-app/app/javascript/controllers/flash_controller.js
195
- - demo-app/app/javascript/controllers/hello_controller.js
196
- - demo-app/app/javascript/controllers/index.js
197
- - demo-app/app/models/application_record.rb
198
- - demo-app/app/models/concerns/.keep
199
- - demo-app/app/models/post.rb
200
- - demo-app/app/views/hide_from_backends/_notice.html.erb
201
- - demo-app/app/views/hide_from_backends/create.turbo_stream.erb
202
- - demo-app/app/views/hide_from_backends/new.html.erb
203
- - demo-app/app/views/layouts/application.html.erb
204
- - demo-app/app/views/modal/index.html.erb
205
- - demo-app/app/views/modal/show.html.erb
206
- - demo-app/app/views/posts/_form.html.erb
207
- - demo-app/app/views/posts/_post.html.erb
208
- - demo-app/app/views/posts/edit.html.erb
209
- - demo-app/app/views/posts/index.html.erb
210
- - demo-app/app/views/posts/new.html.erb
211
- - demo-app/app/views/posts/show.html.erb
212
- - demo-app/app/views/shared/_flash.html.erb
213
- - demo-app/app/views/welcome/index.html.erb
214
- - demo-app/bin/bundle
215
- - demo-app/bin/dev
216
- - demo-app/bin/rails
217
- - demo-app/bin/rake
218
- - demo-app/bin/setup
219
- - demo-app/config.ru
220
- - demo-app/config/application.rb
221
- - demo-app/config/boot.rb
222
- - demo-app/config/credentials.yml.enc
223
- - demo-app/config/database.yml
224
- - demo-app/config/environment.rb
225
- - demo-app/config/environments/development.rb
226
- - demo-app/config/environments/production.rb
227
- - demo-app/config/environments/test.rb
228
- - demo-app/config/initializers/assets.rb
229
- - demo-app/config/initializers/content_security_policy.rb
230
- - demo-app/config/initializers/filter_parameter_logging.rb
231
- - demo-app/config/initializers/inflections.rb
232
- - demo-app/config/initializers/new_framework_defaults_8_0.rb
233
- - demo-app/config/initializers/permissions_policy.rb
234
- - demo-app/config/initializers/ultimate_turbo_modal.rb
235
- - demo-app/config/initializers/ultimate_turbo_modal_tailwind.rb
236
- - demo-app/config/initializers/ultimate_turbo_modal_vanilla.rb
237
- - demo-app/config/locales/en.yml
238
- - demo-app/config/puma.rb
239
- - demo-app/config/routes.rb
240
- - demo-app/db/migrate/20230331002502_create_posts.rb
241
- - demo-app/db/migrate/20231031012703_add_post.rb
242
- - demo-app/db/migrate/20231128141054_add_publish_on_to_posts.rb
243
- - demo-app/db/schema.rb
244
- - demo-app/lib/assets/.keep
245
- - demo-app/lib/tasks/.keep
246
- - demo-app/log/.keep
247
- - demo-app/package.json
248
- - demo-app/postcss.config.js
249
- - demo-app/public/400.html
250
- - demo-app/public/404.html
251
- - demo-app/public/406-unsupported-browser.html
252
- - demo-app/public/422.html
253
- - demo-app/public/500.html
254
- - demo-app/public/apple-touch-icon-precomposed.png
255
- - demo-app/public/apple-touch-icon.png
256
- - demo-app/public/favicon.ico
257
- - demo-app/public/icon.png
258
- - demo-app/public/icon.svg
259
- - demo-app/public/img/bootstrap-logo-shadow.png
260
- - demo-app/public/img/unicat.jpg
261
- - demo-app/public/img/vanilla.png
262
- - demo-app/public/robots.txt
263
- - demo-app/tmp/.keep
264
- - demo-app/tmp/pids/.keep
265
- - demo-app/vendor/.keep
266
- - demo-app/yarn.lock
267
172
  - javascript/index.js
268
173
  - javascript/modal_controller.js
269
174
  - javascript/package.json
@@ -272,12 +177,14 @@ files:
272
177
  - javascript/scripts/update-version.js
273
178
  - javascript/styles/vanilla.css
274
179
  - javascript/yarn.lock
180
+ - lib/generators/ultimate_turbo_modal/base.rb
275
181
  - lib/generators/ultimate_turbo_modal/install_generator.rb
276
182
  - lib/generators/ultimate_turbo_modal/templates/flavors/custom.rb
277
183
  - lib/generators/ultimate_turbo_modal/templates/flavors/tailwind.rb
278
184
  - lib/generators/ultimate_turbo_modal/templates/flavors/tailwind3.rb
279
185
  - lib/generators/ultimate_turbo_modal/templates/flavors/vanilla.rb
280
186
  - lib/generators/ultimate_turbo_modal/templates/ultimate_turbo_modal.rb
187
+ - lib/generators/ultimate_turbo_modal/update_generator.rb
281
188
  - lib/phlex/deferred_render_with_main_content.rb
282
189
  - lib/ultimate_turbo_modal.rb
283
190
  - lib/ultimate_turbo_modal/base.rb
@@ -297,6 +204,7 @@ metadata:
297
204
  homepage_uri: https://github.com/cmer/ultimate_turbo_modal
298
205
  source_code_uri: https://github.com/cmer/ultimate_turbo_modal
299
206
  changelog_uri: https://github.com/cmer/ultimate_turbo_modal/CHANGELOG.md
207
+ post_install_message:
300
208
  rdoc_options: []
301
209
  require_paths:
302
210
  - lib
@@ -311,7 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
219
  - !ruby/object:Gem::Version
312
220
  version: '0'
313
221
  requirements: []
314
- rubygems_version: 3.6.7
222
+ rubygems_version: 3.5.22
223
+ signing_key:
315
224
  specification_version: 4
316
225
  summary: UTMR aims to be the be-all and end-all of Turbo Modals.
317
226
  test_files: []
@@ -1,7 +0,0 @@
1
- # See https://git-scm.com/docs/gitattributes for more about git attribute files.
2
-
3
- # Mark the database schema as having been generated.
4
- db/schema.rb linguist-generated
5
-
6
- # Mark any vendored files as having been vendored.
7
- vendor/* linguist-vendored
data/demo-app/.gitignore DELETED
@@ -1,34 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-*
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*
16
- /tmp/*
17
- !/log/.keep
18
- !/tmp/.keep
19
-
20
- # Ignore pidfiles, but keep the directory.
21
- /tmp/pids/*
22
- !/tmp/pids/
23
- !/tmp/pids/.keep
24
-
25
-
26
- /public/assets
27
-
28
- # Ignore master key for decrypting credentials and more.
29
- /config/master.key
30
-
31
- /app/assets/builds/*
32
- !/app/assets/builds/.keep
33
-
34
- /node_modules
@@ -1 +0,0 @@
1
- ruby-3.3.9
@@ -1,2 +0,0 @@
1
- ruby 3.3.9
2
- nodejs 22.14.0
data/demo-app/Gemfile DELETED
@@ -1,41 +0,0 @@
1
- source "https://rubygems.org"
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- ruby file: ".tool-versions"
5
-
6
- # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7
- gem "rails", "~> 8.0.2"
8
-
9
- # The modern asset pipeline for Rails [https://github.com/rails/propshaft]
10
- gem "propshaft"
11
-
12
- # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
13
- gem "turbo-rails"
14
-
15
- # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
16
- gem "stimulus-rails"
17
-
18
- # Use sqlite3 as the database for Active Record
19
- gem "sqlite3"
20
-
21
- # Use the Puma web server [https://github.com/puma/puma]
22
- gem "puma", "~> 6.6"
23
-
24
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
25
- gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
26
-
27
- group :development, :test do
28
- # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
29
- gem "debug", platforms: %i[ mri mingw x64_mingw ]
30
- gem "web-console"
31
- end
32
-
33
- group :development do
34
- # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
35
- # gem "spring"
36
- end
37
-
38
- gem "cssbundling-rails"
39
- gem "jsbundling-rails"
40
- gem "faker"
41
- gem "ultimate_turbo_modal", path: "../"
@@ -1,248 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- ultimate_turbo_modal (2.1.1)
5
- actionpack
6
- activesupport
7
- phlex-rails
8
- railties
9
- stimulus-rails
10
- turbo-rails
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- actioncable (8.0.2)
16
- actionpack (= 8.0.2)
17
- activesupport (= 8.0.2)
18
- nio4r (~> 2.0)
19
- websocket-driver (>= 0.6.1)
20
- zeitwerk (~> 2.6)
21
- actionmailbox (8.0.2)
22
- actionpack (= 8.0.2)
23
- activejob (= 8.0.2)
24
- activerecord (= 8.0.2)
25
- activestorage (= 8.0.2)
26
- activesupport (= 8.0.2)
27
- mail (>= 2.8.0)
28
- actionmailer (8.0.2)
29
- actionpack (= 8.0.2)
30
- actionview (= 8.0.2)
31
- activejob (= 8.0.2)
32
- activesupport (= 8.0.2)
33
- mail (>= 2.8.0)
34
- rails-dom-testing (~> 2.2)
35
- actionpack (8.0.2)
36
- actionview (= 8.0.2)
37
- activesupport (= 8.0.2)
38
- nokogiri (>= 1.8.5)
39
- rack (>= 2.2.4)
40
- rack-session (>= 1.0.1)
41
- rack-test (>= 0.6.3)
42
- rails-dom-testing (~> 2.2)
43
- rails-html-sanitizer (~> 1.6)
44
- useragent (~> 0.16)
45
- actiontext (8.0.2)
46
- actionpack (= 8.0.2)
47
- activerecord (= 8.0.2)
48
- activestorage (= 8.0.2)
49
- activesupport (= 8.0.2)
50
- globalid (>= 0.6.0)
51
- nokogiri (>= 1.8.5)
52
- actionview (8.0.2)
53
- activesupport (= 8.0.2)
54
- builder (~> 3.1)
55
- erubi (~> 1.11)
56
- rails-dom-testing (~> 2.2)
57
- rails-html-sanitizer (~> 1.6)
58
- activejob (8.0.2)
59
- activesupport (= 8.0.2)
60
- globalid (>= 0.3.6)
61
- activemodel (8.0.2)
62
- activesupport (= 8.0.2)
63
- activerecord (8.0.2)
64
- activemodel (= 8.0.2)
65
- activesupport (= 8.0.2)
66
- timeout (>= 0.4.0)
67
- activestorage (8.0.2)
68
- actionpack (= 8.0.2)
69
- activejob (= 8.0.2)
70
- activerecord (= 8.0.2)
71
- activesupport (= 8.0.2)
72
- marcel (~> 1.0)
73
- activesupport (8.0.2)
74
- base64
75
- benchmark (>= 0.3)
76
- bigdecimal
77
- concurrent-ruby (~> 1.0, >= 1.3.1)
78
- connection_pool (>= 2.2.5)
79
- drb
80
- i18n (>= 1.6, < 2)
81
- logger (>= 1.4.2)
82
- minitest (>= 5.1)
83
- securerandom (>= 0.3)
84
- tzinfo (~> 2.0, >= 2.0.5)
85
- uri (>= 0.13.1)
86
- base64 (0.2.0)
87
- benchmark (0.4.0)
88
- bigdecimal (3.1.9)
89
- bindex (0.8.1)
90
- builder (3.3.0)
91
- concurrent-ruby (1.3.5)
92
- connection_pool (2.5.0)
93
- crass (1.0.6)
94
- cssbundling-rails (1.4.3)
95
- railties (>= 6.0.0)
96
- date (3.4.1)
97
- debug (1.10.0)
98
- irb (~> 1.10)
99
- reline (>= 0.3.8)
100
- drb (2.2.1)
101
- erubi (1.13.1)
102
- faker (3.5.1)
103
- i18n (>= 1.8.11, < 2)
104
- globalid (1.2.1)
105
- activesupport (>= 6.1)
106
- i18n (1.14.7)
107
- concurrent-ruby (~> 1.0)
108
- io-console (0.8.0)
109
- irb (1.15.2)
110
- pp (>= 0.6.0)
111
- rdoc (>= 4.0.0)
112
- reline (>= 0.4.2)
113
- jsbundling-rails (1.3.1)
114
- railties (>= 6.0.0)
115
- logger (1.7.0)
116
- loofah (2.24.0)
117
- crass (~> 1.0.2)
118
- nokogiri (>= 1.12.0)
119
- mail (2.8.1)
120
- mini_mime (>= 0.1.1)
121
- net-imap
122
- net-pop
123
- net-smtp
124
- marcel (1.0.4)
125
- mini_mime (1.1.5)
126
- minitest (5.25.5)
127
- net-imap (0.5.6)
128
- date
129
- net-protocol
130
- net-pop (0.1.2)
131
- net-protocol
132
- net-protocol (0.2.2)
133
- timeout
134
- net-smtp (0.5.1)
135
- net-protocol
136
- nio4r (2.7.4)
137
- nokogiri (1.18.7-arm64-darwin)
138
- racc (~> 1.4)
139
- phlex (1.11.0)
140
- phlex-rails (1.2.2)
141
- phlex (>= 1.10, < 2)
142
- railties (>= 6.1, < 9)
143
- pp (0.6.2)
144
- prettyprint
145
- prettyprint (0.2.0)
146
- propshaft (1.1.0)
147
- actionpack (>= 7.0.0)
148
- activesupport (>= 7.0.0)
149
- rack
150
- railties (>= 7.0.0)
151
- psych (5.2.3)
152
- date
153
- stringio
154
- puma (6.6.0)
155
- nio4r (~> 2.0)
156
- racc (1.8.1)
157
- rack (3.1.12)
158
- rack-session (2.1.0)
159
- base64 (>= 0.1.0)
160
- rack (>= 3.0.0)
161
- rack-test (2.2.0)
162
- rack (>= 1.3)
163
- rackup (2.2.1)
164
- rack (>= 3)
165
- rails (8.0.2)
166
- actioncable (= 8.0.2)
167
- actionmailbox (= 8.0.2)
168
- actionmailer (= 8.0.2)
169
- actionpack (= 8.0.2)
170
- actiontext (= 8.0.2)
171
- actionview (= 8.0.2)
172
- activejob (= 8.0.2)
173
- activemodel (= 8.0.2)
174
- activerecord (= 8.0.2)
175
- activestorage (= 8.0.2)
176
- activesupport (= 8.0.2)
177
- bundler (>= 1.15.0)
178
- railties (= 8.0.2)
179
- rails-dom-testing (2.2.0)
180
- activesupport (>= 5.0.0)
181
- minitest
182
- nokogiri (>= 1.6)
183
- rails-html-sanitizer (1.6.2)
184
- loofah (~> 2.21)
185
- nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
186
- railties (8.0.2)
187
- actionpack (= 8.0.2)
188
- activesupport (= 8.0.2)
189
- irb (~> 1.13)
190
- rackup (>= 1.0.0)
191
- rake (>= 12.2)
192
- thor (~> 1.0, >= 1.2.2)
193
- zeitwerk (~> 2.6)
194
- rake (13.2.1)
195
- rdoc (6.13.1)
196
- psych (>= 4.0.0)
197
- reline (0.6.1)
198
- io-console (~> 0.5)
199
- securerandom (0.4.1)
200
- sqlite3 (2.6.0-arm64-darwin)
201
- stimulus-rails (1.3.4)
202
- railties (>= 6.0.0)
203
- stringio (3.1.6)
204
- thor (1.3.2)
205
- timeout (0.4.3)
206
- turbo-rails (2.0.13)
207
- actionpack (>= 7.1.0)
208
- railties (>= 7.1.0)
209
- tzinfo (2.0.6)
210
- concurrent-ruby (~> 1.0)
211
- uri (1.0.3)
212
- useragent (0.16.11)
213
- web-console (4.2.1)
214
- actionview (>= 6.0.0)
215
- activemodel (>= 6.0.0)
216
- bindex (>= 0.4.0)
217
- railties (>= 6.0.0)
218
- websocket-driver (0.7.7)
219
- base64
220
- websocket-extensions (>= 0.1.0)
221
- websocket-extensions (0.1.5)
222
- zeitwerk (2.7.2)
223
-
224
- PLATFORMS
225
- arm64-darwin-22
226
- arm64-darwin-23
227
- arm64-darwin-24
228
-
229
- DEPENDENCIES
230
- cssbundling-rails
231
- debug
232
- faker
233
- jsbundling-rails
234
- propshaft
235
- puma (~> 6.6)
236
- rails (~> 8.0.2)
237
- sqlite3
238
- stimulus-rails
239
- turbo-rails
240
- tzinfo-data
241
- ultimate_turbo_modal!
242
- web-console
243
-
244
- RUBY VERSION
245
- ruby 3.3.9p170
246
-
247
- BUNDLED WITH
248
- 2.6.7
@@ -1,3 +0,0 @@
1
- web: bin/rails server -p 3000
2
- css: yarn build:css --watch
3
- js: yarn build --watch
data/demo-app/README.md DELETED
@@ -1,15 +0,0 @@
1
- # The Ultimate Turbo Modal for Rails - Demo
2
-
3
- This is a demo application. You can find the Ruby Gem and instructions on how to use
4
- it in your own application at https://github.com/cmer/ultimate_turbo_modal.
5
-
6
- &nbsp;
7
- &nbsp;
8
- # Getting up and running...
9
-
10
- ```sh
11
- bin/rails db:create db:migrate db:seed
12
- yarn install
13
- bin/dev
14
- open http://localhost:3000
15
- ```
data/demo-app/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative "config/application"
5
-
6
- Rails.application.load_tasks
File without changes
File without changes
@@ -1,42 +0,0 @@
1
- @import 'tailwindcss';
2
- @import 'ultimate_turbo_modal/dist/vanilla.css' layer(components);
3
- @import 'flatpickr/dist/flatpickr.css' layer(base);
4
-
5
- @plugin '@tailwindcss/aspect-ratio';
6
- @plugin '@tailwindcss/forms';
7
- @plugin '@tailwindcss/typography';
8
-
9
- @custom-variant dark (&:is(.dark *));
10
-
11
- @theme {
12
- --font-sans:
13
- Inter var, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
14
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
15
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
16
- }
17
-
18
- @layer base {
19
-
20
- *,
21
- ::after,
22
- ::before,
23
- ::backdrop,
24
- ::file-selector-button {
25
- border-color: var(--color-gray-200, currentcolor);
26
- }
27
- }
28
-
29
- #ts-notice:not(:empty) {
30
- position: fixed;
31
- top: 0.5rem;
32
- right: 0.5rem;
33
- width: auto;
34
- border: 1px solid;
35
- padding: 1rem;
36
- margin-top: 2.5rem;
37
- margin-bottom: 2.5rem;
38
- color: black;
39
- border-color: rgba(0, 148, 0, 0.8);
40
- background-color: rgba(176, 255, 176, 0.6);
41
- max-width: 32rem;
42
- }
@@ -1,10 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- include SetFlavor
3
-
4
- def set_modal_properties
5
- %i[padding advance close_button].each do |it|
6
- instance_variable_set("@#{it}", params[it] == "1" || params[it].nil?)
7
- end
8
- @override_url = "/custom-advance-history-url" if @advance
9
- end
10
- end
File without changes
@@ -1,10 +0,0 @@
1
- module SetFlavor
2
- extend ActiveSupport::Concern
3
-
4
- included do
5
- before_action do
6
- UltimateTurboModal.flavor = request.params[:flavor] || cookies[:flavor] || "tailwind"
7
- cookies.permanent[:flavor] = UltimateTurboModal.flavor
8
- end
9
- end
10
- end
@@ -1,34 +0,0 @@
1
- # Sometimes it might be desirable to close the modal from the backend.
2
- # This can be done with Turbo Stream as such:
3
- #
4
- # <%= turbo_stream.modal(:hide) %>
5
- #
6
- # This controller is an example of how to do that.
7
- class HideFromBackendsController < ApplicationController
8
- def new
9
- # Show form
10
- end
11
-
12
- def create
13
- form_is_valid? ? close_modal : render(:new, status: :unprocessable_entity)
14
- end
15
-
16
- private
17
-
18
- def close_modal
19
- if inside_modal?
20
- # `create.turbo_stream.erb` will be rendered.
21
- # A message will appear in the browser, and the backend
22
- # will trigger a modal close via turbo stream.
23
- else
24
- # if not inside a modal, simply redirect
25
- redirect_to("/")
26
- end
27
- end
28
-
29
- def form_is_valid?
30
- return true if request.params[:action] == 'new'
31
- params[:email].present?
32
- end
33
- helper_method :form_is_valid?
34
- end
@@ -1,11 +0,0 @@
1
- class ModalController < ApplicationController
2
- before_action :set_modal_properties
3
-
4
- def index
5
- @post = Post.first
6
- end
7
-
8
- def show
9
- @header = !(params[:id] == "photo")
10
- end
11
- end