hoardable 0.14.2 → 0.16.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 +4 -4
- data/.streerc +1 -0
- data/.tool-versions +2 -2
- data/CHANGELOG.md +19 -0
- data/Gemfile +9 -10
- data/README.md +198 -177
- data/Rakefile +22 -8
- data/lib/generators/hoardable/install_generator.rb +25 -26
- data/lib/generators/hoardable/migration_generator.rb +17 -8
- data/lib/generators/hoardable/templates/install.rb.erb +2 -25
- data/lib/generators/hoardable/templates/migration.rb.erb +7 -1
- data/lib/hoardable/arel_visitors.rb +57 -0
- data/lib/hoardable/database_client.rb +41 -23
- data/lib/hoardable/engine.rb +32 -33
- data/lib/hoardable/error.rb +4 -7
- data/lib/hoardable/finder_methods.rb +1 -3
- data/lib/hoardable/has_many.rb +6 -10
- data/lib/hoardable/has_one.rb +3 -3
- data/lib/hoardable/has_rich_text.rb +14 -7
- data/lib/hoardable/model.rb +19 -16
- data/lib/hoardable/schema_dumper.rb +25 -0
- data/lib/hoardable/schema_statements.rb +33 -0
- data/lib/hoardable/scopes.rb +22 -29
- data/lib/hoardable/source_model.rb +6 -5
- data/lib/hoardable/version.rb +1 -1
- data/lib/hoardable/version_model.rb +30 -31
- data/lib/hoardable.rb +21 -18
- data/sig/hoardable.rbs +37 -12
- metadata +14 -29
- data/.rubocop.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c41a6c69f62f7e2a99fefe00229a7244f5cd0dcb9ed3b0d243db9adf9cabd98
|
4
|
+
data.tar.gz: 30dc9d7a551c29331a7736f7b825c0b5f9db83bf5c5cd537d5d2910908f683ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad46ae05e3241052089aaf432016b906f648051fae6405e2ce4a90c7f247942a09a011d2fc35e6558695814949ef37a0398d36baaa71500f2c31d33436a7eac7
|
7
|
+
data.tar.gz: b3307392cdff1b14a37192cd1a004099c5d99d7dd0ce3d0f8fe230c1dac4b59697c4708f5859cb7b2b831f45f1a3a6489cdce2eaf464fef2d9e135bd902e4f26
|
data/.streerc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--print-width=100
|
data/.tool-versions
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ruby 3.
|
2
|
-
postgres
|
1
|
+
ruby 3.3.0
|
2
|
+
postgres 16.1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## 0.16.0
|
2
|
+
|
3
|
+
- Rails 8 support introduced
|
4
|
+
|
5
|
+
## 0.15.0
|
6
|
+
|
7
|
+
- *Breaking Change* - Support for Ruby 2.7 and Rails 6.1 is dropped
|
8
|
+
- *Breaking Change* - The default scoping clause that controls the inherited table SQL construction
|
9
|
+
changes from a where clause using `tableoid`s to using `FROM ONLY`
|
10
|
+
- Fixes an issue for Rails 7.1 regarding accessing version table columns through aliased attributes
|
11
|
+
- Fixes an issue where `Hoardable::RichText` couldn’t be loaded if `ActionText::RichText` wasn’t yet
|
12
|
+
loaded
|
13
|
+
- Supports dumping `INHERITS (table_name)` options to `schema.rb` and ensures the inherited tables
|
14
|
+
are dumped after their parents
|
15
|
+
|
16
|
+
## 0.14.3
|
17
|
+
|
18
|
+
- The migration template is updated to make the primary key on the versions table its actual primary key
|
19
|
+
|
1
20
|
## 0.14.2
|
2
21
|
|
3
22
|
- Fixes an eager loading issue regarding `ActionText::EncryptedRichText`
|
data/Gemfile
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem
|
6
|
-
|
7
|
-
gem
|
8
|
-
|
9
|
-
gem
|
10
|
-
|
11
|
-
gem
|
12
|
-
gem
|
13
|
-
gem 'yard', '~> 0.9'
|
5
|
+
gem "debug"
|
6
|
+
if (rails_version = ENV["RAILS_VERSION"])
|
7
|
+
gem "rails", "~> #{rails_version}"
|
8
|
+
else
|
9
|
+
gem "rails"
|
10
|
+
end
|
11
|
+
gem "syntax_tree"
|
12
|
+
gem "typeprof"
|
14
13
|
|
15
14
|
gemspec
|