kithe 2.7.0 → 2.8.0

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: 9f8937387847f42ce3ae1327cd25ac029e38be0a5b821ef0dc45aeeef04d6de7
4
- data.tar.gz: 1417b0de61a7a78e1f9ad8b162d766e667b52f89d18b87878390ffbd05b8011b
3
+ metadata.gz: 6e68f78d1fcc8bb604b8eaea692460fdb350cae5595c54bbabdb04c3be30f596
4
+ data.tar.gz: 357311e4c2b93fc4b28c06635a9dfd7d03236a5362d423f84bff7bbbfba4b540
5
5
  SHA512:
6
- metadata.gz: cfd282cf508978df374b23f51ee90f3389b5f5a061ad15a03bb12555776232c0bc8f9f825cc9ea9854dac0954528829d0eccc430aa76fb9eb30694c16f83fc84
7
- data.tar.gz: 7d6833edbdb186b547d5d4f57e38fa39224ad797cbfd760c309d9a23bdb3ad8488b0c19aeb7cfe6f799ae946342f9e38172055df231e2a2272c992f6dc376333
6
+ metadata.gz: be441cd7b3ba48aeea850968fd95aec73ceaeab9e7c38f974a966f2155d2c3d69618b08d438d711a6d11b9bc6dad4cf9c722a432515616c82f4c9127eb7871eb
7
+ data.tar.gz: 7b37f72ec3ef8677b55de7280deba1a02384cd0a0dc8263cc15a49dcdd6766694f41f5e791d412acf91f52a7a3e0f3a7037ae777794d7e68cb5817450f5305f6
data/README.md CHANGED
@@ -40,7 +40,7 @@ So you want to start an app that uses kithe. We should later provide better 'get
40
40
 
41
41
  * Again re-iterate that kithe requires your Rails app use postgres, 9.5+.
42
42
 
43
- * kithe works with Rails 5.2 through 6.1.
43
+ * kithe works with Rails 5.2 through 7.0.
44
44
 
45
45
  * To install migrations from kithe to setup your database for it's models: `rake kithe_engine:install:migrations`
46
46
 
@@ -7,7 +7,7 @@ class Kithe::Model < ActiveRecord::Base
7
7
 
8
8
  include AttrJson::Record
9
9
  include AttrJson::NestedAttributes
10
- include AttrJson::Record::Dirty
10
+ include AttrJson::Record::Dirty if defined?(AttrJson::Record::Dirty)
11
11
  include Kithe::Indexable
12
12
 
13
13
  # While Rails STI means the actual specific class is in `type`, sometimes
data/lib/kithe/engine.rb CHANGED
@@ -25,9 +25,9 @@ module Kithe
25
25
  # Descendants wont' be pre-loaded during initialization, but this is the best
26
26
  # we can do.
27
27
  initializer ("kithe.preload_single_table_inheritance") do
28
- unless false && Rails.configuration.cache_classes && Rails.configuration.eager_load
28
+ unless Rails.configuration.cache_classes && Rails.configuration.eager_load
29
29
  Rails.configuration.to_prepare do
30
- Kithe::Model.preload_sti unless Kithe::Model.preloaded
30
+ Kithe::Model.preload_sti if Kithe::Model.respond_to?(:preloaded) && !Kithe::Model.preloaded
31
31
  rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid => e
32
32
  Rails.logger.debug("Could not pre-load Kithe::Models Single-Table Inheritance descendents: #{e.inspect}")
33
33
  end
data/lib/kithe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kithe
2
- VERSION = '2.7.0'
2
+ VERSION = '2.8.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.7.0
4
+ version: 2.8.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: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.0.0
39
+ version: 3.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.0
46
+ version: 3.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: simple_form
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.2.33
429
+ rubygems_version: 3.4.5
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: Shareable tools/components for building a digital collections app in Rails.