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: 0d46121d2e7c658b31a0c551dc87bbe7654721913b5b0ce235206f59fd56c1cc
4
- data.tar.gz: a9bd0213b0227d1235f3e1eb448d4042640cbd6a34104bbe7dd20b08f9791232
3
+ metadata.gz: ab5645f9d91b50b696549832f856cbf71513277a60061355fb8a0a222d60a3e9
4
+ data.tar.gz: ed4b468d9b54650893feec779c392aaaaaff68b39d85e204dc0586f63235d381
5
5
  SHA512:
6
- metadata.gz: 988c95df765ec928b265e6beda893953921d99be5a7d186b2033725fa2f87e801fc9f0598e0bb4973545acf1d6180de8a6ae4676ae4989cc3a3e12ba245a9b6f
7
- data.tar.gz: b000bd62e1f9ca7f92c637dc90048694c565367ebf452a45493523fa883f1d57ce29022fd2d1ae005e9b764501dc3a648aae5cb07f70f59471c55248d26dcd93
6
+ metadata.gz: 4735e34556bad2004975cfef891eb87f597d3a2b7b32c6b8b3a154b1b363ba1c54a353481691215542ecfb02e3b63b212ae3a648e230ef83a1dba56da269285c
7
+ data.tar.gz: 7b882426a155de5afb191af8accdfa36fa6194c768aff83759823e3d9ffb9d5d66c1a6974c575a91153f30e3797b6a8e9bec59500357a1fa3a460e00440be5c5
@@ -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
- enum kithe_model_type: { collection: 0, work: 1, asset: 2}
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
- template.content_tag(:div, class: "nested-fields form-row") do
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
@@ -1,3 +1,3 @@
1
1
  module Kithe
2
- VERSION = '2.15.0'
2
+ VERSION = '2.16.0'
3
3
  end
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.15.0
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-08-19 00:00:00.000000000 Z
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.0'
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.0'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: attr_json
35
35
  requirement: !ruby/object:Gem::Requirement