polymorphic_integer_type 3.1.1 → 3.2.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 +1 -0
- data/gemfiles/Gemfile.rails-7.0-stable +7 -0
- data/lib/polymorphic_integer_type/activerecord_5_0_0/polymorphic_array_value_extension.rb +1 -1
- data/lib/polymorphic_integer_type/extensions.rb +2 -2
- data/lib/polymorphic_integer_type/version.rb +1 -1
- data/polymorphic_integer_type.gemspec +2 -2
- metadata +6 -8
- data/.github/CODEOWNERS +0 -1
- data/.github/workflows/ci.yml +0 -34
- data/.github/workflows/gem-push.yml +0 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0a0c496105cf4f71bbb7d8e37f4b7d5464a155c6d69adc32860a42f57b54ce2
|
|
4
|
+
data.tar.gz: 6b91ce4961f8ff169c8a106bc258d25ff8f59aff0c59a97ed7488c9d708851bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 224efc3b41dc88ba440de3a87398a6422e817cc6adcedb216145d9fdfe004c9d3c5da733f81e547d27481dae3806290173dd4db65d4b72759084d0c4132a48d0
|
|
7
|
+
data.tar.gz: 91168a3fa7ed06b8de0c51b15d5199a66ede9e0b3265a7ea23861a796219f2948e9eef18b51c8c349fe23706ebfb9c9131fbec181a175c703c6d701061205a84
|
data/.gitignore
CHANGED
|
@@ -87,7 +87,7 @@ module PolymorphicIntegerType
|
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
remove_type_and_establish_mapping(name, options, scope)
|
|
90
|
-
super(name, options.delete(:scope), options, &extension)
|
|
90
|
+
super(name, options.delete(:scope), **options, &extension)
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def has_one(name, scope = nil, **options)
|
|
@@ -97,7 +97,7 @@ module PolymorphicIntegerType
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
remove_type_and_establish_mapping(name, options, scope)
|
|
100
|
-
super(name, options.delete(:scope), options)
|
|
100
|
+
super(name, options.delete(:scope), **options)
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
|
|
@@ -13,12 +13,12 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.homepage = ""
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
|
16
|
+
spec.files = `git ls-files -- . ':!.github/'`.split($/)
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
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"
|
|
21
|
+
spec.add_dependency "activerecord", "< 7.1"
|
|
22
22
|
spec.add_development_dependency "bundler"
|
|
23
23
|
spec.add_development_dependency "rake"
|
|
24
24
|
spec.add_development_dependency "rspec"
|
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.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle d'Oliveira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-06-09 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'
|
|
19
|
+
version: '7.1'
|
|
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'
|
|
26
|
+
version: '7.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,9 +102,6 @@ executables:
|
|
|
102
102
|
extensions: []
|
|
103
103
|
extra_rdoc_files: []
|
|
104
104
|
files:
|
|
105
|
-
- ".github/CODEOWNERS"
|
|
106
|
-
- ".github/workflows/ci.yml"
|
|
107
|
-
- ".github/workflows/gem-push.yml"
|
|
108
105
|
- ".gitignore"
|
|
109
106
|
- Gemfile
|
|
110
107
|
- LICENSE.txt
|
|
@@ -116,6 +113,7 @@ files:
|
|
|
116
113
|
- gemfiles/Gemfile.rails-5.2-stable
|
|
117
114
|
- gemfiles/Gemfile.rails-6.0-stable
|
|
118
115
|
- gemfiles/Gemfile.rails-6.1-stable
|
|
116
|
+
- gemfiles/Gemfile.rails-7.0-stable
|
|
119
117
|
- lib/polymorphic_integer_type.rb
|
|
120
118
|
- lib/polymorphic_integer_type/activerecord_5_0_0/association_query_handler_extension.rb
|
|
121
119
|
- lib/polymorphic_integer_type/activerecord_5_0_0/polymorphic_array_value_extension.rb
|
|
@@ -164,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
164
162
|
- !ruby/object:Gem::Version
|
|
165
163
|
version: '0'
|
|
166
164
|
requirements: []
|
|
167
|
-
rubygems_version: 3.
|
|
165
|
+
rubygems_version: 3.4.10
|
|
168
166
|
signing_key:
|
|
169
167
|
specification_version: 4
|
|
170
168
|
summary: Use integers rather than strings for the _type field
|
data/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/.github/workflows/ @clio/application-security @clio/penguins
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
gemfile:
|
|
17
|
-
- Gemfile.rails-5.0-stable
|
|
18
|
-
- Gemfile.rails-5.1-stable
|
|
19
|
-
- Gemfile.rails-5.2-stable
|
|
20
|
-
- Gemfile.rails-6.0-stable
|
|
21
|
-
- Gemfile.rails-6.1-stable
|
|
22
|
-
env:
|
|
23
|
-
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v2
|
|
26
|
-
- name: Set up Ruby
|
|
27
|
-
uses: ruby/setup-ruby@v1
|
|
28
|
-
with:
|
|
29
|
-
ruby-version: "2.6"
|
|
30
|
-
- name: Install dependencies
|
|
31
|
-
run: bundle install
|
|
32
|
-
- name: Run tests
|
|
33
|
-
run:
|
|
34
|
-
bundle exec rspec
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: Ruby Gem
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [ published ]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
name: Build + Publish
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v2
|
|
16
|
-
- name: Set up Ruby 2.7
|
|
17
|
-
uses: actions/setup-ruby@v1
|
|
18
|
-
with:
|
|
19
|
-
ruby-version: 2.7.x
|
|
20
|
-
|
|
21
|
-
- name: Publish to RubyGems
|
|
22
|
-
env:
|
|
23
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
|
24
|
-
run: |
|
|
25
|
-
mkdir -p $HOME/.gem
|
|
26
|
-
touch $HOME/.gem/credentials
|
|
27
|
-
chmod 0600 $HOME/.gem/credentials
|
|
28
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
29
|
-
gem build *.gemspec
|
|
30
|
-
gem push *.gem
|