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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e06209d1f222b99ba36ec6619390cec6465e41000e4dc9100a0de23e47e962b
4
- data.tar.gz: 7ed179db041bff9e317e0eb4e51b7e6e8877c0a2ef782cbd1e464c5fe640dec3
3
+ metadata.gz: 2237ccaba43cfd565b5889269d3e99914e754533dc778ab96be50e2f806d42c0
4
+ data.tar.gz: e68a3dde94705fafb79967d6b198e453acb5ea9b67581daa494eda9bdf18dbbc
5
5
  SHA512:
6
- metadata.gz: 2a2b55f78f24d9e1e1cf50f3d2260dff3e62dc70ce2ba6594835192e0189eee3b222d17a2b55e6f0ff5351a2927befcd35f0f3e660c45ec6679d5a186a3fb18a
7
- data.tar.gz: 73a819a21306bb1ed00645063af41eea0851687c944942a8aa7a9f8b2f209980ca9bb99b007e778f197c1c40126d0585f199f9a9d5742a57937cd3fb6fd1220b
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
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0
4
+
5
+ * Drop support for ruby 2.3.
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  * Add source_map option to resolve polymorphic type.
data/README.md CHANGED
@@ -4,7 +4,7 @@ An ActiveRecord extension to build nested scopes through pre-defined association
4
4
 
5
5
  ## Dependencies
6
6
 
7
- * ruby 2.3+
7
+ * ruby 2.4+
8
8
  * activerecord 5.0+
9
9
  * activesupport 5.0+
10
10
 
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
- gem "mysql2", "~> 0.4.4"
5
+ gem "mysql2", "~> 0.5.0"
6
6
  gem "pg", "~> 0.18"
7
7
 
8
8
  gemspec path: "../"
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
- gem "mysql2", "~> 0.4.4"
5
+ gem "mysql2", "~> 0.5.0"
6
6
  gem "pg", "~> 0.18"
7
7
 
8
8
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "psych", "~> 3.3.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.0.1"
4
+
5
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordNestedScope
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
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.2.0
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: 2020-11-16 00:00:00.000000000 Z
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.0.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