activerecord_nested_scope 1.2.0 → 1.3.0
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 +75 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/gemfiles/rails50.gemfile +1 -1
- data/gemfiles/rails51.gemfile +1 -1
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails61.gemfile +5 -0
- data/gemfiles/rails70.gemfile +5 -0
- data/lib/activerecord_nested_scope/version.rb +1 -1
- metadata +6 -4
- data/.travis.yml +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2237ccaba43cfd565b5889269d3e99914e754533dc778ab96be50e2f806d42c0
|
4
|
+
data.tar.gz: e68a3dde94705fafb79967d6b198e453acb5ea9b67581daa494eda9bdf18dbbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac09c60fb4aa092619f394b92c4defd63c34f92d384d75ce3b321136069f164e6d4d9b57b2f30d4aee5f9d9b00653a1c38cd6de1c2ed06c4a1ff720bfc85aa03
|
7
|
+
data.tar.gz: ce4815d93146dccf9ff8c252a22a164e76b0367133aa5ada5f014d5e3c96ec81aca336ae625fa39b030a9769750377d2c99dc606c40ea091f863fe29b438611c
|
@@ -0,0 +1,75 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-20.04
|
8
|
+
services:
|
9
|
+
postgres:
|
10
|
+
image: postgres:9.5
|
11
|
+
env:
|
12
|
+
POSTGRES_USER: postgres
|
13
|
+
POSTGRES_PASSWORD: postgres
|
14
|
+
ports:
|
15
|
+
- 5432:5432
|
16
|
+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
17
|
+
mysql:
|
18
|
+
image: mysql:5.7
|
19
|
+
env:
|
20
|
+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
21
|
+
ports:
|
22
|
+
- 3306:3306
|
23
|
+
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
matrix:
|
27
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
|
28
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
|
29
|
+
database: ['sqlite', 'mysql', 'postgresql']
|
30
|
+
exclude:
|
31
|
+
- ruby: 2.4
|
32
|
+
gemfile: rails60
|
33
|
+
- ruby: 2.4
|
34
|
+
gemfile: rails61
|
35
|
+
- ruby: 2.4
|
36
|
+
gemfile: rails70
|
37
|
+
- ruby: 2.5
|
38
|
+
gemfile: rails70
|
39
|
+
- ruby: 2.6
|
40
|
+
gemfile: rails70
|
41
|
+
- ruby: 3.0
|
42
|
+
gemfile: rails50
|
43
|
+
- ruby: 3.0
|
44
|
+
gemfile: rails51
|
45
|
+
- ruby: 3.0
|
46
|
+
gemfile: rails52
|
47
|
+
- ruby: 3.1
|
48
|
+
gemfile: rails50
|
49
|
+
- ruby: 3.1
|
50
|
+
gemfile: rails51
|
51
|
+
- ruby: 3.1
|
52
|
+
gemfile: rails52
|
53
|
+
|
54
|
+
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, ${{ matrix.database }}
|
55
|
+
|
56
|
+
env:
|
57
|
+
DATABASE: ${{ matrix.database }}
|
58
|
+
POSTGRES_USER: postgres
|
59
|
+
POSTGRES_PASSWORD: postgres
|
60
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
61
|
+
|
62
|
+
steps:
|
63
|
+
- uses: actions/checkout@v2
|
64
|
+
- uses: ruby/setup-ruby@v1
|
65
|
+
with:
|
66
|
+
ruby-version: ${{ matrix.ruby }}
|
67
|
+
bundler-cache: true
|
68
|
+
- name: Prepare test
|
69
|
+
run: |
|
70
|
+
cd spec/dummy
|
71
|
+
BUNDLE_GEMFILE=../../${{ env.BUNDLE_GEMFILE }} RAILS_ENV=test bundle exec rake db:create db:migrate db:seed
|
72
|
+
cd ../..
|
73
|
+
- name: Run test
|
74
|
+
run: |
|
75
|
+
DEBUG=1 bundle exec rspec
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_nested_scope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -130,9 +130,9 @@ executables: []
|
|
130
130
|
extensions: []
|
131
131
|
extra_rdoc_files: []
|
132
132
|
files:
|
133
|
+
- ".github/workflows/ci.yml"
|
133
134
|
- ".gitignore"
|
134
135
|
- ".rspec"
|
135
|
-
- ".travis.yml"
|
136
136
|
- CHANGELOG.md
|
137
137
|
- Gemfile
|
138
138
|
- LICENSE
|
@@ -143,6 +143,8 @@ files:
|
|
143
143
|
- gemfiles/rails51.gemfile
|
144
144
|
- gemfiles/rails52.gemfile
|
145
145
|
- gemfiles/rails60.gemfile
|
146
|
+
- gemfiles/rails61.gemfile
|
147
|
+
- gemfiles/rails70.gemfile
|
146
148
|
- lib/activerecord_nested_scope.rb
|
147
149
|
- lib/activerecord_nested_scope/builder.rb
|
148
150
|
- lib/activerecord_nested_scope/extension.rb
|
@@ -167,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
169
|
- !ruby/object:Gem::Version
|
168
170
|
version: '0'
|
169
171
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
172
|
+
rubygems_version: 3.1.2
|
171
173
|
signing_key:
|
172
174
|
specification_version: 4
|
173
175
|
summary: An ActiveRecord extension to build nested scopes
|
data/.travis.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
- 2.7
|
8
|
-
services:
|
9
|
-
- mysql
|
10
|
-
- postgresql
|
11
|
-
addons:
|
12
|
-
postgresql: "9.5"
|
13
|
-
env:
|
14
|
-
- DATABASE=sqlite
|
15
|
-
- DATABASE=mysql
|
16
|
-
- DATABASE=postgresql
|
17
|
-
gemfile:
|
18
|
-
- gemfiles/rails50.gemfile
|
19
|
-
- gemfiles/rails51.gemfile
|
20
|
-
- gemfiles/rails52.gemfile
|
21
|
-
- gemfiles/rails60.gemfile
|
22
|
-
matrix:
|
23
|
-
exclude:
|
24
|
-
- rvm: 2.3
|
25
|
-
gemfile: gemfiles/rails60.gemfile
|
26
|
-
- rvm: 2.4
|
27
|
-
gemfile: gemfiles/rails60.gemfile
|
28
|
-
before_script:
|
29
|
-
- cd spec/dummy
|
30
|
-
- bundle exec rake db:create db:migrate db:seed RAILS_ENV=test
|
31
|
-
- cd ../..
|
32
|
-
script:
|
33
|
-
- DEBUG=1 bundle exec rspec
|