activerecord_dynamic_scope 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +5 -5
- data/.gitignore +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails61.gemfile +1 -0
- data/gemfiles/rails70.gemfile +1 -0
- data/gemfiles/rails71.gemfile +6 -0
- data/lib/activerecord_dynamic_scope/extension.rb +2 -0
- data/lib/activerecord_dynamic_scope/railtie.rb +2 -0
- data/lib/activerecord_dynamic_scope/version.rb +3 -1
- data/lib/activerecord_dynamic_scope.rb +2 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22548eadc0ac97923279b9c19bfa7f37805addad274777eaa125a91e8ed5eb20
|
4
|
+
data.tar.gz: a8d06e7efea8919f52009c16ffba0760b1ac4c9835a4b870de36db610920411e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d88ee5e3b5a615b3bfd71d120099b35d336fce248da0e05d360598c566e72af7dd5dcd21eece7e206af08efccc1f5b97bb18b997ab3eca042a7bae9593eb488
|
7
|
+
data.tar.gz: ce43978cf13dc0d305b0b3003ef53af681b9a82ec05a84b18230770b567d0b27fef6724bc196bc38677c68221121d06d57beca88b120c264e99ff9634386e972
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,10 +4,10 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-22.04
|
8
8
|
services:
|
9
9
|
postgres:
|
10
|
-
image: postgres:
|
10
|
+
image: postgres:15
|
11
11
|
env:
|
12
12
|
POSTGRES_USER: postgres
|
13
13
|
POSTGRES_PASSWORD: postgres
|
@@ -24,8 +24,8 @@ jobs:
|
|
24
24
|
strategy:
|
25
25
|
fail-fast: false
|
26
26
|
matrix:
|
27
|
-
ruby: [2.7, '3.0', 3.1, 3.2]
|
28
|
-
gemfile: ['rails60', 'rails61', 'rails70']
|
27
|
+
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
|
28
|
+
gemfile: ['rails60', 'rails61', 'rails70', 'rails71']
|
29
29
|
database: ['sqlite', 'mysql', 'postgresql']
|
30
30
|
|
31
31
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, ${{ matrix.database }}
|
@@ -37,7 +37,7 @@ jobs:
|
|
37
37
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
38
38
|
|
39
39
|
steps:
|
40
|
-
- uses: actions/checkout@
|
40
|
+
- uses: actions/checkout@v4
|
41
41
|
- uses: ruby/setup-ruby@v1
|
42
42
|
with:
|
43
43
|
ruby-version: ${{ matrix.ruby }}
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -77,7 +77,7 @@ class Item < ActiveRecord::Base
|
|
77
77
|
end
|
78
78
|
|
79
79
|
ActiveRecordDynamicScope.with(account: 1) do
|
80
|
-
Item.all #=> SELECT "items".* FROM "items" WHERE "items"."
|
80
|
+
Item.all #=> SELECT "items".* FROM "items" WHERE "items"."partition" = 1
|
81
81
|
end
|
82
82
|
```
|
83
83
|
|
data/gemfiles/rails60.gemfile
CHANGED
data/gemfiles/rails61.gemfile
CHANGED
data/gemfiles/rails70.gemfile
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_dynamic_scope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- gemfiles/rails60.gemfile
|
142
142
|
- gemfiles/rails61.gemfile
|
143
143
|
- gemfiles/rails70.gemfile
|
144
|
+
- gemfiles/rails71.gemfile
|
144
145
|
- lib/activerecord_dynamic_scope.rb
|
145
146
|
- lib/activerecord_dynamic_scope/extension.rb
|
146
147
|
- lib/activerecord_dynamic_scope/railtie.rb
|
@@ -148,7 +149,7 @@ files:
|
|
148
149
|
homepage: https://github.com/kanety/activerecord_dynamic_scope
|
149
150
|
licenses: []
|
150
151
|
metadata: {}
|
151
|
-
post_install_message:
|
152
|
+
post_install_message:
|
152
153
|
rdoc_options: []
|
153
154
|
require_paths:
|
154
155
|
- lib
|
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
165
|
version: '0'
|
165
166
|
requirements: []
|
166
167
|
rubygems_version: 3.3.3
|
167
|
-
signing_key:
|
168
|
+
signing_key:
|
168
169
|
specification_version: 4
|
169
170
|
summary: Handling dynamic scope for ActiveRecord.
|
170
171
|
test_files: []
|