active_record_compose 0.3.3 → 0.3.4

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: f9038b3106a9206304243a5723488fe400e6c05eba4edb69fef0e2a7a154f15f
4
- data.tar.gz: 7432c93447a3627cf6c1e6706d6d0d3d1ea1e6d80079b9038e73fe1fd1bddaeb
3
+ metadata.gz: 1f089bd84bf403659ef6e4835080c952a07d7fb393aa7820c8b030294956f525
4
+ data.tar.gz: 9c9d6137b7c1d4715e89bc4c0f7c9e9965fdd3b9a2c265517ccac8568c3365fd
5
5
  SHA512:
6
- metadata.gz: 7ce874d30acf694f7be00c7177a7dcc82a49f8119709fa07b0d9cac98fc4f44ca03211bb104c8d9e2173d42ceebb0de00567c8666e1b1b6adaadd587e60d35ba
7
- data.tar.gz: 0f3100317539f2e383ac07fed57f027c90f4030ccd2717fae2e54f288a3f17f92488fa23dc86d6cc80a05746542ef68b780c56b63dd9609ab2f27b39c21a8045
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:, **options)
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:, **options) # steep:ignore
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecordCompose
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  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?, **untyped) -> 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.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-06-23 00:00:00.000000000 Z
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.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: []