kithe 2.15.0 → 2.16.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab5645f9d91b50b696549832f856cbf71513277a60061355fb8a0a222d60a3e9
|
4
|
+
data.tar.gz: ed4b468d9b54650893feec779c392aaaaaff68b39d85e204dc0586f63235d381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4735e34556bad2004975cfef891eb87f597d3a2b7b32c6b8b3a154b1b363ba1c54a353481691215542ecfb02e3b63b212ae3a648e230ef83a1dba56da269285c
|
7
|
+
data.tar.gz: 7b882426a155de5afb191af8accdfa36fa6194c768aff83759823e3d9ffb9d5d66c1a6974c575a91153f30e3797b6a8e9bec59500357a1fa3a460e00440be5c5
|
data/app/models/kithe/model.rb
CHANGED
@@ -23,7 +23,13 @@ class Kithe::Model < ActiveRecord::Base
|
|
23
23
|
#
|
24
24
|
# Since the rails enum uses an int field, this doens't take up too much extra
|
25
25
|
# space in pg or anything, and is convenient.
|
26
|
-
|
26
|
+
#
|
27
|
+
# Start using new non-deprecated args in Rails 7.0
|
28
|
+
if Rails.gem_version < Gem::Version.new("7.0")
|
29
|
+
enum kithe_model_type: { collection: 0, work: 1, asset: 2}
|
30
|
+
else
|
31
|
+
enum :kithe_model_type, { collection: 0, work: 1, asset: 2}
|
32
|
+
end
|
27
33
|
|
28
34
|
attr_json_config(default_accepts_nested_attributes: { reject_if: :all_blank })
|
29
35
|
|
@@ -175,8 +175,11 @@ class Kithe::RepeatableInputGenerator
|
|
175
175
|
# Wraps with the proper DOM for cocooon JS, along with the remove button.
|
176
176
|
# @yield pass block with content to wrap
|
177
177
|
def wrap_with_repeatable_ui
|
178
|
-
# cocoon JS wants "nested-fields"
|
179
|
-
|
178
|
+
# * cocoon JS wants "nested-fields"
|
179
|
+
# * 'row' and is for bootstrap 5 -- but doens't mess up bootstrap 4 because
|
180
|
+
# conveniently the 'form-row' ends up taking precedence.
|
181
|
+
# * form-row is for bootstrap 4. Doesn't exist in bootstrap 5.
|
182
|
+
template.content_tag(:div, class: "nested-fields form-row row") do
|
180
183
|
template.content_tag(:div, class: "col") do
|
181
184
|
yield
|
182
185
|
end +
|
data/lib/kithe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kithe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '8.
|
22
|
+
version: '8.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '8.
|
32
|
+
version: '8.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: attr_json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|