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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c089df0d3694598d4deff6a7b70ce1f09dcfc0eed24e0e6abf67ba2b20c696a
4
- data.tar.gz: dfeb08e59e4fe2430ce324028cbefed06a1e228d0c975b753a1218ca568c4677
3
+ metadata.gz: 22548eadc0ac97923279b9c19bfa7f37805addad274777eaa125a91e8ed5eb20
4
+ data.tar.gz: a8d06e7efea8919f52009c16ffba0760b1ac4c9835a4b870de36db610920411e
5
5
  SHA512:
6
- metadata.gz: 11c125ba8667bb8c8442696d87fd342717f50dc4fb1df408fe82adc591bcb3e453739ecc2d1e645ff6a8ad74df6f24b6c05127deaa9a5b63d265aa3801527039
7
- data.tar.gz: e95e40f5dd9cc72c0e07c6d6412dbaef4a4e24932f626f63d1037c9c64650ac695c3295faa335671b4d5c6a524529a7d289062be5413c15fac49c6f924eb6a3f
6
+ metadata.gz: 6d88ee5e3b5a615b3bfd71d120099b35d336fce248da0e05d360598c566e72af7dd5dcd21eece7e206af08efccc1f5b97bb18b997ab3eca042a7bae9593eb488
7
+ data.tar.gz: ce43978cf13dc0d305b0b3003ef53af681b9a82ec05a84b18230770b567d0b27fef6724bc196bc38677c68221121d06d57beca88b120c264e99ff9634386e972
@@ -4,10 +4,10 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-22.04
8
8
  services:
9
9
  postgres:
10
- image: postgres:9.5
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@v3
40
+ - uses: actions/checkout@v4
41
41
  - uses: ruby/setup-ruby@v1
42
42
  with:
43
43
  ruby-version: ${{ matrix.ruby }}
data/.gitignore CHANGED
@@ -5,7 +5,7 @@ gemfiles/*.lock
5
5
  pkg/
6
6
  spec/dummy/config/database.yml
7
7
  spec/dummy/db/schema*.rb
8
- spec/dummy/db/*.sqlite3
8
+ spec/dummy/db/*.sqlite3*
9
9
  spec/dummy/log/*.log
10
10
  spec/dummy/tmp/*
11
11
  tmp/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.1
4
+
5
+ * Add `frozen_string_literal: true`.
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  * First release.
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"."partition1" = 1 AND "items"."partition2" = 2
80
+ Item.all #=> SELECT "items".* FROM "items" WHERE "items"."partition" = 1
81
81
  end
82
82
  ```
83
83
 
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
  gem "psych", "~> 3.3.0"
5
6
 
6
7
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.1.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.1.0"
4
+ gem "sqlite3", "~> 1.6.6"
5
+
6
+ gemspec path: "../"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveRecordDynamicScope
2
4
  module Extension
3
5
  extend ActiveSupport::Concern
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveRecordDynamicScope
2
4
  class Railtie < Rails::Railtie
3
5
  ActiveSupport.on_load :active_record do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveRecordDynamicScope
2
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  require_relative 'activerecord_dynamic_scope/version'
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.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: 2023-06-26 00:00:00.000000000 Z
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: []