kithe 2.15.0 → 2.15.1

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: db54257ac9bfcbf8907af9fd6a859a528b8772b62316c4d124314c2ab4a5828d
4
+ data.tar.gz: 655706b8554e5a001eec8e2b79b591c3ccf0f4e71b7c48a3d7701aa9861a9148
5
5
  SHA512:
6
- metadata.gz: 988c95df765ec928b265e6beda893953921d99be5a7d186b2033725fa2f87e801fc9f0598e0bb4973545acf1d6180de8a6ae4676ae4989cc3a3e12ba245a9b6f
7
- data.tar.gz: b000bd62e1f9ca7f92c637dc90048694c565367ebf452a45493523fa883f1d57ce29022fd2d1ae005e9b764501dc3a648aae5cb07f70f59471c55248d26dcd93
6
+ metadata.gz: 3f890a25210f673751a2d89f127a0b3b6d4bf1ca5d9aab184c4cdf4c51787eae157ccf6ab7a32bc92321b39c27a8c6666f6362e51a3f5440431619e518958ef6
7
+ data.tar.gz: 4198d3dd5eed7f59e4c7a202c06ba365d90e9c3daefa73b55ca6347c7746406fd77dd69c2dd9b55cd173af04be77861deeff4798405803d7297d62af9fce2126
@@ -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
 
data/lib/kithe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kithe
2
- VERSION = '2.15.0'
2
+ VERSION = '2.15.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind