arel-helpers 2.8.0 → 2.9.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: e692ef35ca5dfd967971eeb47c87ef93b6ca21c142e03ecb29b608c1e8e533e0
4
- data.tar.gz: 719115c3d5f7a9c86d89d6bc720e390906eac6a9d5b60d29c19bebe751aa8c5b
3
+ metadata.gz: 85c8d15c2d11898a847943c9be68371010ec220af0f1c68a4a90e9bcffa4d934
4
+ data.tar.gz: 73714445f0d541649e5b293293a8957c24302a8ac0a19541313786593b045214
5
5
  SHA512:
6
- metadata.gz: 946f6a173a8a3da761ad79b9a416cc7b7871ba0ce879ecd0cb32b2348199c65109df1f7ebee1ec438bdf3cf443d840282935e97d56eed009ac54a31b79cb9d83
7
- data.tar.gz: 346d3fcbe5be8208734ca9a35f47870531524d008f8e67d307912eb3582d134b2b51c5a721ff31b5488efb519ade8c6c7830db509aa38450280e764147974527
6
+ metadata.gz: 057173c0402311f7ddae6371cf32f3a467b065e51199ce425a64559c8e5904be6d2ffd73c96bd0009dc6c1af282d6d9ab0ae19e14ab26b4a5695a7a06db17a4c
7
+ data.tar.gz: bc25b86779153864ea54f583fabff15e7f6f5a57dadfecfcb1d363a864237408f30f7a7e3dc5095a5fc04d1b858a9acf9f0bdd92184c745cadd74c5fee8f2eff
data/README.md CHANGED
@@ -155,7 +155,7 @@ class PostQueryBuilder < ArelHelpers::QueryBuilder
155
155
  def with_comments_by(usernames)
156
156
  reflect(
157
157
  query
158
- .joins(:comments => :author)
158
+ .joins(comments: :author)
159
159
  .where(author[:username].in(usernames))
160
160
  )
161
161
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  if ENV["AR"]
17
17
  s.add_dependency 'activerecord', ENV["AR"]
18
18
  else
19
- s.add_dependency 'activerecord', '>= 3.1.0', '< 6'
19
+ s.add_dependency 'activerecord', '>= 3.1.0', '< 7'
20
20
  end
21
21
 
22
22
  s.require_path = 'lib'
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ArelHelpers
4
- VERSION = '2.8.0'
4
+ VERSION = '2.9.0'
5
5
  end
@@ -1,6 +1,10 @@
1
1
  # encoding: UTF-8
2
2
 
3
- SuperClass = ActiveRecord::VERSION::MAJOR >= 5 && ActiveRecord::VERSION::MINOR >= 1 ? ActiveRecord::Migration[5.1] : ActiveRecord::Migration
3
+ SuperClass = if ActiveRecord::VERSION::MAJOR >= 5
4
+ ActiveRecord::Migration["#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}".to_f]
5
+ else
6
+ ActiveRecord::Migration
7
+ end
4
8
 
5
9
  class CreatePostsTable < SuperClass
6
10
  def change
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-16 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6'
22
+ version: '7'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6'
32
+ version: '7'
33
33
  description: Useful tools to help construct database queries with ActiveRecord and
34
34
  Arel.
35
35
  email: