bootstrap5_helper 1.2.0.pre3 → 1.2.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 +4 -4
- data/lib/bootstrap5_helper/modal.rb +11 -15
- data/lib/bootstrap5_helper/version.rb +1 -1
- metadata +23 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a6aaec7186d656a26d239a28ddd64ac135a0e734a8f1d90c546186a78cfe967
|
|
4
|
+
data.tar.gz: dc3fb21a0eaced7579b8dc6b6946b6fc1eadb3354581449e521ea49cde32c778
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccc3bd5934a64d589dbefedb634ee3acd27cef1841992663abfa6233fee8bd0824ae2200b690fa2e6f2a70e0ce1cbd5876e9634f4e81ba0821b94a6105917e2e
|
|
7
|
+
data.tar.gz: c204cc8a8d958f8ce9881e2ba4433a20fa59ec7231d142d578fb2c4c974eb4572320f9f397c4d93688b9d27855b7bbf3677826dab7cc7d2b899acf7379bdec78
|
|
@@ -12,7 +12,6 @@ module Bootstrap5Helper
|
|
|
12
12
|
# @option opts [String] :id
|
|
13
13
|
# @option opts [String] :class
|
|
14
14
|
# @option opts [Hash] :data
|
|
15
|
-
# @option opts [Hash] :wrapper
|
|
16
15
|
# @option opts [Boolean] :scrollable
|
|
17
16
|
# @option opts [Boolean] :vcentered
|
|
18
17
|
# @option opts [Boolean] :static
|
|
@@ -25,7 +24,6 @@ module Bootstrap5Helper
|
|
|
25
24
|
@id = opts.fetch(:id, uuid)
|
|
26
25
|
@class = opts.fetch(:class, '')
|
|
27
26
|
@data = opts.fetch(:data, {})
|
|
28
|
-
@wrapper = opts.fetch(:wrapper, {})
|
|
29
27
|
@scrollable = opts.fetch(:scrollable, false)
|
|
30
28
|
@vcentered = opts.fetch(:vcentered, false)
|
|
31
29
|
@static = opts.fetch(:static, false)
|
|
@@ -124,14 +122,7 @@ module Bootstrap5Helper
|
|
|
124
122
|
class: "modal-dialog #{size} #{scrollable} #{vcentered} #{fullscreen}",
|
|
125
123
|
role: 'document'
|
|
126
124
|
) do
|
|
127
|
-
content_tag(
|
|
128
|
-
:div,
|
|
129
|
-
id: @wrapper.fetch(:id, nil),
|
|
130
|
-
class: "modal-content #{@wrapper.fetch(:class, '')}",
|
|
131
|
-
data: @wrapper.fetch(:data, {})
|
|
132
|
-
) do
|
|
133
|
-
@content.call(self)
|
|
134
|
-
end
|
|
125
|
+
content_tag(:div, class: 'modal-content') { @content.call(self) }
|
|
135
126
|
end
|
|
136
127
|
end
|
|
137
128
|
end
|
|
@@ -203,8 +194,10 @@ module Bootstrap5Helper
|
|
|
203
194
|
#
|
|
204
195
|
def fullscreen
|
|
205
196
|
case @fullscreen
|
|
206
|
-
when TrueClass
|
|
207
|
-
|
|
197
|
+
when TrueClass
|
|
198
|
+
'modal-fullscreen'
|
|
199
|
+
when String, Symbol
|
|
200
|
+
"modal-fullscreen-#{@fullscreen}-down "
|
|
208
201
|
else
|
|
209
202
|
''
|
|
210
203
|
end
|
|
@@ -216,9 +209,12 @@ module Bootstrap5Helper
|
|
|
216
209
|
#
|
|
217
210
|
def size
|
|
218
211
|
case @size.to_s
|
|
219
|
-
when 'xlarge', 'xl'
|
|
220
|
-
|
|
221
|
-
when '
|
|
212
|
+
when 'xlarge', 'xl'
|
|
213
|
+
'modal-xl'
|
|
214
|
+
when 'large', 'lg'
|
|
215
|
+
'modal-lg'
|
|
216
|
+
when 'small', 'sm'
|
|
217
|
+
'modal-sm'
|
|
222
218
|
else
|
|
223
219
|
''
|
|
224
220
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bootstrap5_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert David
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bootstrap
|
|
@@ -38,6 +37,20 @@ dependencies:
|
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: puma
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
41
54
|
- !ruby/object:Gem::Dependency
|
|
42
55
|
name: redcarpet
|
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,9 +100,9 @@ dependencies:
|
|
|
87
100
|
- - ">"
|
|
88
101
|
- !ruby/object:Gem::Version
|
|
89
102
|
version: '4.2'
|
|
90
|
-
- - "
|
|
103
|
+
- - "<"
|
|
91
104
|
- !ruby/object:Gem::Version
|
|
92
|
-
version:
|
|
105
|
+
version: 9.0.0
|
|
93
106
|
type: :runtime
|
|
94
107
|
prerelease: false
|
|
95
108
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -97,9 +110,9 @@ dependencies:
|
|
|
97
110
|
- - ">"
|
|
98
111
|
- !ruby/object:Gem::Version
|
|
99
112
|
version: '4.2'
|
|
100
|
-
- - "
|
|
113
|
+
- - "<"
|
|
101
114
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
115
|
+
version: 9.0.0
|
|
103
116
|
description: Rails helpers for generating Bootstrap 5 components.
|
|
104
117
|
email:
|
|
105
118
|
- robert.david@state.mn.us
|
|
@@ -149,7 +162,6 @@ metadata:
|
|
|
149
162
|
homepage_uri: https://github.com/rdavid369/bootstrap5-helper
|
|
150
163
|
source_code_uri: https://github.com/rdavid369/bootstrap5-helper/blob/main/CHANGELOG.md
|
|
151
164
|
changelog_uri: https://github.com/rdavid369/bootstrap5-helper
|
|
152
|
-
post_install_message:
|
|
153
165
|
rdoc_options: []
|
|
154
166
|
require_paths:
|
|
155
167
|
- lib
|
|
@@ -160,12 +172,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
160
172
|
version: '0'
|
|
161
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
174
|
requirements:
|
|
163
|
-
- - "
|
|
175
|
+
- - ">="
|
|
164
176
|
- !ruby/object:Gem::Version
|
|
165
|
-
version:
|
|
177
|
+
version: '0'
|
|
166
178
|
requirements: []
|
|
167
|
-
rubygems_version: 3.
|
|
168
|
-
signing_key:
|
|
179
|
+
rubygems_version: 3.6.9
|
|
169
180
|
specification_version: 4
|
|
170
181
|
summary: Rails helpers for generating Bootstrap 5 components.
|
|
171
182
|
test_files: []
|