active_record_compose 0.3.3 → 0.3.4
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: 1f089bd84bf403659ef6e4835080c952a07d7fb393aa7820c8b030294956f525
|
4
|
+
data.tar.gz: 9c9d6137b7c1d4715e89bc4c0f7c9e9965fdd3b9a2c265517ccac8568c3365fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6a6bc59528725186b32d4447de1b7883e831cbdbd0579bfd5dadc100290a385ecd8410da67d760bf8bccc8c5548f73401319cb18b2289d649ad06a70184d42d
|
7
|
+
data.tar.gz: 1b25e47a0c9a4c49d1b8141499357b7f32bd6d724e05958531e98d164db3d738c1cf19c1045df96eae4d441e1144af610a6472c2372f018c32021aff12d0fa3b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.3.4] - 2024-09-01
|
4
|
+
|
5
|
+
- ci: removed sqlite3 version specifing for new AR.
|
6
|
+
- `delegate_attribute` options are now specific and do not accept `prefix`
|
7
|
+
|
8
|
+
## [0.3.3] - 2024-06-24
|
9
|
+
|
10
|
+
- use steep:ignore
|
11
|
+
|
3
12
|
## [0.3.2] - 2024-04-10
|
4
13
|
|
5
14
|
- support `ActiveRecord::Base#with_connection`
|
@@ -44,7 +44,7 @@ module ActiveRecordCompose
|
|
44
44
|
module ClassMethods
|
45
45
|
# Defines the reader and writer for the specified attribute.
|
46
46
|
#
|
47
|
-
def delegate_attribute(*attributes, to:,
|
47
|
+
def delegate_attribute(*attributes, to:, allow_nil: nil, private: nil)
|
48
48
|
delegates = attributes.flat_map do |attribute|
|
49
49
|
reader = attribute.to_s
|
50
50
|
writer = "#{attribute}="
|
@@ -52,7 +52,7 @@ module ActiveRecordCompose
|
|
52
52
|
[reader, writer]
|
53
53
|
end
|
54
54
|
|
55
|
-
delegate(*delegates, to:,
|
55
|
+
delegate(*delegates, to:, allow_nil:, private:) # steep:ignore
|
56
56
|
delegated_attributes = (self.delegated_attributes ||= []) # steep:ignore
|
57
57
|
attributes.each { delegated_attributes.push(_1.to_s) }
|
58
58
|
end
|
@@ -24,7 +24,7 @@ module ActiveRecordCompose
|
|
24
24
|
def attributes: -> Hash[String, untyped]
|
25
25
|
|
26
26
|
module ClassMethods
|
27
|
-
def delegate_attribute: (*untyped methods, to: untyped?,
|
27
|
+
def delegate_attribute: (*untyped methods, to: untyped?, ?allow_nil: untyped?, ?private: untyped?) -> untyped
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hamajyotan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -52,7 +52,7 @@ metadata:
|
|
52
52
|
homepage_uri: https://github.com/hamajyotan/active_record_compose
|
53
53
|
source_code_uri: https://github.com/hamajyotan/active_record_compose
|
54
54
|
changelog_uri: https://github.com/hamajyotan/active_record_compose/blob/main/CHANGELOG.md
|
55
|
-
documentation_uri: https://www.rubydoc.info/gems/active_record_compose/0.3.
|
55
|
+
documentation_uri: https://www.rubydoc.info/gems/active_record_compose/0.3.4
|
56
56
|
rubygems_mfa_required: 'true'
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|