polymorphic_integer_type 3.2.2 → 3.3.0

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: cfa2f9c68364a27168180b5dfeaae71b6ea2a9e74c313a8f42658b6e3a562dcd
4
- data.tar.gz: b4f0b2225be4e6d8270f1e4d1755a15d791aec80a3f20afd3cd2c6d9f4923603
3
+ metadata.gz: ea9d51ebb89d80399f1ef17cc3e7163fe4923db10710d352e1f849cbeb81c782
4
+ data.tar.gz: '0910cded5f13a659aa01ba248353c6b2a23f81bb80dd447d54aa37f5a5a526b9'
5
5
  SHA512:
6
- metadata.gz: 12fa770fcb992eb05270b971a8f1ff88d881318d09bccc9f3e7d139e01396054873a68f1083238db0af4d7dc32bf3a715a51d848df2d9432e060580a6b524cf8
7
- data.tar.gz: ca0d6e461f1543b2f47476d53e679d24de1420e60acaa8c51119f1bfa05ac962f5ac189912d9a7ae12e63f9568af91e6e0550dbc448efc3b2e75c6f655a8e0c5
6
+ metadata.gz: 05e5887f356fd8d96352adc20ad4aae0d4dd8d8d42c7611b5bb83aabcdf03e7132e1366855ef4148b92e001afd9d10430525c43127ac34fe3b3dcc6e776cfbf8
7
+ data.tar.gz: 0da151ee5cd138ef7d677cdd5fb7040e674144cedfbcc06cff50dfb11c37a5b972717359e07a21ceac3c7aab03878a040002f2b4e41d309d5c90bf003def445f
data/.gitignore CHANGED
@@ -21,3 +21,6 @@ tmp
21
21
  polymorphic_integer_type_test
22
22
  gemfiles/*.lock
23
23
  .idea/
24
+ .ruby-version
25
+ mysql
26
+ polymorphic_integer_type_test-*
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### Changed
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
- ### Changed
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
+
@@ -5,3 +5,4 @@ source "https://rubygems.org"
5
5
  gemspec path: ".."
6
6
 
7
7
  gem "activerecord", github: "rails/rails", branch: "6-1-stable"
8
+ gem "sqlite3", "~> 1.4"
@@ -5,3 +5,4 @@ source "https://rubygems.org"
5
5
  gemspec path: ".."
6
6
 
7
7
  gem "activerecord", github: "rails/rails", branch: "7-0-stable"
8
+ gem "sqlite3", "~> 1.4"
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec path: ".."
6
6
 
7
- gem "activerecord", github: "rails/rails", branch: "5-1-stable"
7
+ gem "activerecord", github: "rails/rails", branch: "7-2-stable"
@@ -1,3 +1,3 @@
1
1
  module PolymorphicIntegerType
2
- VERSION = "3.2.2"
2
+ VERSION = "3.3.0"
3
3
  end
@@ -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", "< 7.1"
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"
@@ -175,7 +175,7 @@ describe PolymorphicIntegerType do
175
175
  before { link }
176
176
 
177
177
  it "should have the proper source" do
178
- expect(source.source_links[0].source).to eql source
178
+ expect(source.reload.source_links[0].source).to eql source
179
179
  end
180
180
  end
181
181
  end
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.2.2
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: 2023-12-21 00:00:00.000000000 Z
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: '7.1'
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: '7.1'
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.4.10
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:
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: ".."
6
-
7
- gem "activerecord", github: "rails/rails", branch: "5-0-stable"
8
- gem "sqlite3", "~> 1.3.6"
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: ".."
6
-
7
- gem "activerecord", github: "rails/rails", branch: "5-2-stable"
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec path: ".."
6
-
7
- gem "activerecord", github: "rails/rails", branch: "6-0-stable"