active_type 2.3.0 → 2.3.1

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: b818373b67ad6b12646808562b48545c2c32ed846073660013132e619fc689c6
4
- data.tar.gz: 204ebaf99158e1dd12f4255bf005cc123373ffaca797673427a8bb87981bbdae
3
+ metadata.gz: 8fb9e61a389d591d9f8aa68590fcaeb22b5b8157faca7a9f96a137f409989ae1
4
+ data.tar.gz: c6e6c8bf9fa8c07b78f88eaabeaad275981bba3cafa0c69467082f4a26507b0a
5
5
  SHA512:
6
- metadata.gz: 26c254234076e2ad182baf8c279d1eaec7e78b388e44682da5323fa429313e0bb3ecb001d175eb2bdc0ae081962f1576f07f73900f7cefe67d5f0f423407ab22
7
- data.tar.gz: b114398d46139b9ed15228392b231fd8198b734e6d7f821b09752bc84442f3dd52508dbdf4f7ca1411c971ab02dfc0ed1ee470755d3108cf7b1137f22e184a51
6
+ metadata.gz: a2423202104cfbad7da2237418cbffd5f1997d101e554f10c344d102f2ec38eaa4688ab83d98e8018ef6c8eeb656baba22b6e979b225c4efb0a40bb7e4e6f5da
7
+ data.tar.gz: 97d85f6c61a92b3325ec58dc3bf490619e3541773c7ce8f57132e18971796a066014e0c46ec9a0195e6cfca7f7ac29a20875d68396f93fa78d51db69476217b6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 3.0.1
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased changes
6
6
 
7
+ ## 2.3.1 (2022-10-06)
8
+
9
+ * Fixed: Fixed an issue ([#168](https://github.com/makandra/active_type/issues/168)) when `change_association` is called with a scope proc only. Thanks to @foobear.
10
+
7
11
  ## 2.3.0 (2022-07-21)
8
12
 
9
13
  * Fixed: Fixed an issue when certain keywords are used as attribute names. Thanks to @tom-kuca.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -58,4 +58,4 @@ DEPENDENCIES
58
58
  rspec (~> 3.4)
59
59
 
60
60
  BUNDLED WITH
61
- 2.2.16
61
+ 2.2.17
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -58,4 +58,4 @@ DEPENDENCIES
58
58
  rspec (~> 3.4)
59
59
 
60
60
  BUNDLED WITH
61
- 2.2.16
61
+ 2.2.17
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.1.1)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -58,4 +58,4 @@ DEPENDENCIES
58
58
  sqlite3
59
59
 
60
60
  BUNDLED WITH
61
- 2.2.16
61
+ 2.2.17
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.7.0.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.2.0)
4
+ active_type (2.3.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -6,7 +6,7 @@ module ActiveType
6
6
 
7
7
  module ClassMethods
8
8
 
9
- def change_association(association_name, new_scope, new_options = nil)
9
+ def change_association(association_name, new_scope, new_options = {})
10
10
  if (existing_association = self.reflect_on_association(association_name))
11
11
  if new_scope.is_a?(Hash)
12
12
  new_options = new_scope
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_type
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-08-11 00:00:00.000000000 Z
12
+ date: 2022-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.2.6
134
+ rubygems_version: 3.2.15
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Make any Ruby object quack like ActiveRecord