belongs_to_one_of 0.2.0 → 0.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: 98bf15abb668273f22d84ff9bf834806e66994533eb2393ae07929f2dd675789
4
- data.tar.gz: d53da88da80da202fb3cc65f041f8dbeffb2a388017dc667694452ef8182d6b8
3
+ metadata.gz: c859bd77b3e7ba52dae74536ea9f93ee9a1e9c4d6a76cc535094a37c176e856a
4
+ data.tar.gz: 4ac6d7b3a889e9089d2237067eb3f8a15b326bb4be3019102f194c281d74aed3
5
5
  SHA512:
6
- metadata.gz: 8b06bcea6fa1f26f0791829451d3eedf8f82737e7710502a0222ca3bb94a97ed6402aef8fd935165bb664a45602a5c1e4a7bc529ff650bbf9d48e7e548010276
7
- data.tar.gz: b1b2a1fbf7b60889cad46f9a97b61cbfb0dde782f1a11ff90b1efd189e225d2bfe94a01fbb186e99d2ce7ea31d9d2236b1b438bca23c55ff5875326ed5e35151
6
+ metadata.gz: c07f2b4d2a28862e96e2a784294d25f364a64bee26ae7f1c96da3ac9ce46ca01e0b222155b429f630afd669ce750a4ec8830b0f000ccd7aae0164e97e10f7027
7
+ data.tar.gz: b7b56824e7b1d1cf8809b739babb31c8adcc1a7e9d40b4ade605694b7a3119bb8c5a7dad83fe465a200347708a22c99f56182e63fcbf7614038823cf6667e0eb
data/.circleci/config.yml CHANGED
@@ -9,7 +9,7 @@ jobs:
9
9
  type: string
10
10
 
11
11
  docker:
12
- - image: ruby:<<parameters.ruby-version>>
12
+ - image: cimg/ruby:<<parameters.ruby-version>>
13
13
  environment:
14
14
  - RAILS_VERSION=<<parameters.rails-version>>
15
15
  steps:
@@ -29,10 +29,10 @@ jobs:
29
29
 
30
30
  rubocop:
31
31
  docker:
32
- - image: ruby:2.7
32
+ - image: cimg/ruby:3.1
33
33
  steps:
34
34
  - checkout
35
- - run: gem install bundler -v 2.1.4
35
+ - run: gem install bundler -v 2.3.4
36
36
  - run: bundle install
37
37
  - run:
38
38
  name: Rubocop
@@ -45,9 +45,13 @@ workflows:
45
45
  - test:
46
46
  matrix:
47
47
  parameters:
48
- ruby-version: ["2.6", "2.7", "3.0"]
49
- rails-version: ["5.2", "6.0", "6.1"]
48
+ ruby-version: ["2.6", "2.7", "3.0", "3.1"]
49
+ rails-version: ["5.2", "6.0", "6.1", "7.0"]
50
50
  exclude:
51
51
  - ruby-version: "3.0"
52
52
  rails-version: "5.2"
53
+ - ruby-version: "3.1"
54
+ rails-version: "5.2"
55
+ - ruby-version: "2.6"
56
+ rails-version: "7.0"
53
57
  - rubocop
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ open-pull-requests-limit: 10
data/.rubocop.yml CHANGED
@@ -4,7 +4,13 @@ inherit_gem:
4
4
  gc_ruboconfig: rubocop.yml
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.6
7
+ TargetRubyVersion: 3.1
8
8
 
9
9
  Style/CaseLikeIf:
10
- Enabled: false
10
+ Enabled: false
11
+
12
+ Gemspec/RequiredRubyVersion:
13
+ Enabled: false
14
+
15
+ Style/HashSyntax:
16
+ Enabled: false
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 3.1.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## [Unreleased]
2
+
3
+ ## [v0.3.0] - 2022-02-09
4
+
5
+ - Add Ruby 3.1 support
6
+
7
+ ## [v0.2.0] - 2021-08-11
8
+
9
+ - Original release
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = ">= 2.6"
27
27
 
28
28
  spec.add_development_dependency "bundler"
29
- spec.add_development_dependency "gc_ruboconfig", "~> 2.25.0"
29
+ spec.add_development_dependency "gc_ruboconfig", "~> 2.31.0"
30
30
  spec.add_development_dependency "pry-byebug"
31
31
  spec.add_development_dependency "rspec", "~> 3.9"
32
32
  spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
@@ -34,6 +34,6 @@ Gem::Specification.new do |spec|
34
34
  # For integration testing
35
35
  spec.add_development_dependency "sqlite3", "~> 1.4.1"
36
36
 
37
- spec.add_dependency "activerecord", ">= 5.2", "< 6.2"
38
- spec.add_dependency "activesupport", ">= 5.2", "< 6.2"
37
+ spec.add_dependency "activerecord", ">= 5.2", "< 8"
38
+ spec.add_dependency "activesupport", ">= 5.2", "< 8"
39
39
  end
@@ -63,8 +63,8 @@ module BelongsToOneOf
63
63
 
64
64
  unless resource_type_accessor
65
65
  message = "one of #{possible_resource_types.keys.join(', ')} expected, "\
66
- "got #{resource.inspect} which is an instance of "\
67
- "#{resource.class}(##{resource.class.object_id})"
66
+ "got #{resource.inspect} which is an instance of "\
67
+ "#{resource.class}(##{resource.class.object_id})"
68
68
  raise ActiveRecord::AssociationTypeMismatch, message
69
69
  end
70
70
 
@@ -139,7 +139,7 @@ module BelongsToOneOf
139
139
  else
140
140
  raise InvalidParamsException,
141
141
  "possible_resource_types must be an Array or a Hash, " \
142
- "received #{raw_possible_resource_types.class}"
142
+ "received #{raw_possible_resource_types.class}"
143
143
  end
144
144
  end
145
145
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BelongsToOneOf
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belongs_to_one_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.25.0
33
+ version: 2.31.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.25.0
40
+ version: 2.31.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry-byebug
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,7 @@ dependencies:
103
103
  version: '5.2'
104
104
  - - "<"
105
105
  - !ruby/object:Gem::Version
106
- version: '6.2'
106
+ version: '8'
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -113,7 +113,7 @@ dependencies:
113
113
  version: '5.2'
114
114
  - - "<"
115
115
  - !ruby/object:Gem::Version
116
- version: '6.2'
116
+ version: '8'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: activesupport
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  version: '5.2'
124
124
  - - "<"
125
125
  - !ruby/object:Gem::Version
126
- version: '6.2'
126
+ version: '8'
127
127
  type: :runtime
128
128
  prerelease: false
129
129
  version_requirements: !ruby/object:Gem::Requirement
@@ -133,7 +133,7 @@ dependencies:
133
133
  version: '5.2'
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
- version: '6.2'
136
+ version: '8'
137
137
  description:
138
138
  email:
139
139
  - engineering@gocardless.com
@@ -142,11 +142,12 @@ extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
144
  - ".circleci/config.yml"
145
- - ".dependabot/config.yml"
145
+ - ".github/dependabot.yml"
146
146
  - ".gitignore"
147
147
  - ".rubocop.yml"
148
148
  - ".rubocop_todo.yml"
149
149
  - ".ruby-version"
150
+ - CHANGELOG.md
150
151
  - Gemfile
151
152
  - LICENSE.txt
152
153
  - README.md
@@ -174,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
175
  - !ruby/object:Gem::Version
175
176
  version: '0'
176
177
  requirements: []
177
- rubygems_version: 3.1.3
178
+ rubygems_version: 3.2.22
178
179
  signing_key:
179
180
  specification_version: 4
180
181
  summary: A small library that helps with models which can have multiple parent model
@@ -1,6 +0,0 @@
1
- ---
2
- version: 1
3
- update_configs:
4
- - package_manager: "ruby:bundler"
5
- directory: "/"
6
- update_schedule: "weekly"