polymorphic_integer_type 3.2.2 → 3.3.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/.gitignore +3 -0
- data/CHANGELOG.md +11 -2
- data/gemfiles/Gemfile.rails-6.1-stable +1 -0
- data/gemfiles/Gemfile.rails-7.0-stable +1 -0
- data/gemfiles/{Gemfile.rails-5.1-stable → Gemfile.rails-7.2-stable} +1 -1
- data/lib/polymorphic_integer_type/version.rb +1 -1
- data/polymorphic_integer_type.gemspec +1 -1
- data/spec/polymorphic_integer_type_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -9
- metadata +9 -12
- data/gemfiles/Gemfile.rails-5.0-stable +0 -8
- data/gemfiles/Gemfile.rails-5.2-stable +0 -7
- data/gemfiles/Gemfile.rails-6.0-stable +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea9d51ebb89d80399f1ef17cc3e7163fe4923db10710d352e1f849cbeb81c782
|
|
4
|
+
data.tar.gz: '0910cded5f13a659aa01ba248353c6b2a23f81bb80dd447d54aa37f5a5a526b9'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05e5887f356fd8d96352adc20ad4aae0d4dd8d8d42c7611b5bb83aabcdf03e7132e1366855ef4148b92e001afd9d10430525c43127ac34fe3b3dcc6e776cfbf8
|
|
7
|
+
data.tar.gz: 0da151ee5cd138ef7d677cdd5fb7040e674144cedfbcc06cff50dfb11c37a5b972717359e07a21ceac3c7aab03878a040002f2b4e41d309d5c90bf003def445f
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
## v3.2.1 (2023-12-14)
|
|
4
4
|
|
|
@@ -16,4 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
- Fixed polymorphic_foreign_association_extension.rb to be compatible with other reflection than `has_many` and `has_one`.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## v3.3.0 (2024-10-29)
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Upgrade rails support version to be compatible with 7.2
|
|
24
|
+
|
|
25
|
+
### Removed
|
|
26
|
+
|
|
27
|
+
- Remove unsupported rails versions(5.0, 5.2, 6.0) and ruby version(2.7)
|
|
28
|
+
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
spec.add_dependency "activerecord", "<
|
|
21
|
+
spec.add_dependency "activerecord", "< 8"
|
|
22
22
|
spec.add_development_dependency "bundler"
|
|
23
23
|
spec.add_development_dependency "rake"
|
|
24
24
|
spec.add_development_dependency "rspec"
|
data/spec/spec_helper.rb
CHANGED
|
@@ -23,18 +23,14 @@ RSpec.configure do |config|
|
|
|
23
23
|
active_record_version = Gem::Version.new(ActiveRecord::VERSION::STRING)
|
|
24
24
|
|
|
25
25
|
ActiveRecord::Base.establish_connection(database_config)
|
|
26
|
-
|
|
27
|
-
if active_record_version < Gem::Version.new("5.2")
|
|
28
|
-
ActiveRecord::Migrator.migrate(migrations_path)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
if active_record_version >= Gem::Version.new("5.2") && active_record_version < Gem::Version.new("6.0")
|
|
32
|
-
ActiveRecord::MigrationContext.new(migrations_path).migrate
|
|
33
|
-
end
|
|
34
26
|
|
|
35
|
-
if active_record_version >= Gem::Version.new("6.0")
|
|
27
|
+
if active_record_version >= Gem::Version.new("6.1") && active_record_version < Gem::Version.new("7.0")
|
|
36
28
|
ActiveRecord::MigrationContext.new(migrations_path, ActiveRecord::SchemaMigration).migrate
|
|
37
29
|
end
|
|
30
|
+
|
|
31
|
+
if active_record_version >= Gem::Version.new("7.0")
|
|
32
|
+
ActiveRecord::MigrationContext.new(migrations_path).migrate
|
|
33
|
+
end
|
|
38
34
|
end
|
|
39
35
|
|
|
40
36
|
config.around do |example|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polymorphic_integer_type
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle d'Oliveira
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "<"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '8'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "<"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '8'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -109,12 +109,9 @@ files:
|
|
|
109
109
|
- README.md
|
|
110
110
|
- Rakefile
|
|
111
111
|
- bin/setup
|
|
112
|
-
- gemfiles/Gemfile.rails-5.0-stable
|
|
113
|
-
- gemfiles/Gemfile.rails-5.1-stable
|
|
114
|
-
- gemfiles/Gemfile.rails-5.2-stable
|
|
115
|
-
- gemfiles/Gemfile.rails-6.0-stable
|
|
116
112
|
- gemfiles/Gemfile.rails-6.1-stable
|
|
117
113
|
- gemfiles/Gemfile.rails-7.0-stable
|
|
114
|
+
- gemfiles/Gemfile.rails-7.2-stable
|
|
118
115
|
- lib/polymorphic_integer_type.rb
|
|
119
116
|
- lib/polymorphic_integer_type/activerecord_5_0_0/association_query_handler_extension.rb
|
|
120
117
|
- lib/polymorphic_integer_type/activerecord_5_0_0/polymorphic_array_value_extension.rb
|
|
@@ -153,7 +150,7 @@ homepage: ''
|
|
|
153
150
|
licenses:
|
|
154
151
|
- MIT
|
|
155
152
|
metadata: {}
|
|
156
|
-
post_install_message:
|
|
153
|
+
post_install_message:
|
|
157
154
|
rdoc_options: []
|
|
158
155
|
require_paths:
|
|
159
156
|
- lib
|
|
@@ -168,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
165
|
- !ruby/object:Gem::Version
|
|
169
166
|
version: '0'
|
|
170
167
|
requirements: []
|
|
171
|
-
rubygems_version: 3.
|
|
172
|
-
signing_key:
|
|
168
|
+
rubygems_version: 3.3.27
|
|
169
|
+
signing_key:
|
|
173
170
|
specification_version: 4
|
|
174
171
|
summary: Use integers rather than strings for the _type field
|
|
175
172
|
test_files:
|