mincer 0.2.15 → 0.2.16

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
  SHA1:
3
- metadata.gz: f22e8f584ffd32b05cbf70b9e8dd5fe41ed7e9ba
4
- data.tar.gz: 356141e6b9aedfcd17932f0e7384373e44dbd5e5
3
+ metadata.gz: 8d1d887604bc5061bb53fb2caafbaa789eb69523
4
+ data.tar.gz: 4fb0e9c8367666cf1f83e5193b3ed172f3cf9c8c
5
5
  SHA512:
6
- metadata.gz: 94af085a7d14e719218f240ff468200ed742074f68622d9e8ebda69ef3b6f3493fc3e73fc0949d649dd05296581a2c9f76f760651f803266d0ab140bf4fd1e58
7
- data.tar.gz: 07d17eddcc5e834a27211fec0702b29e3c3daad2af2ec672cc37192d48d18fdfb1915f11177f7d602af0b18639c34dbc0b7ef11edb06990589b0cc84cea7fb04
6
+ metadata.gz: 36f3e8f3c6b502d0e37a0952f44eb4d4c3f843191ce2e8aa36b4fbfba4b50e995a55f761f7c696e1261ae1e7d3e6249d957cbe76c4adfb14d7bd3041c598e950
7
+ data.tar.gz: 8568e3abd658b9a114856601d25b2d58e02d961992ccbf09978dd480141e91f29eb5e4fd01a15611ed1576303b9fbd3830011b4c446bf91c676591680c2266dd
@@ -47,7 +47,7 @@ module Mincer
47
47
  join_expressions(conditions, :+)
48
48
  end.compact
49
49
  rank = join_expressions(search_statements_conditions, :+).try(:to_sql)
50
- "#{rank} DESC" if rank.present?
50
+ Arel.sql("#{rank} DESC") if rank.present?
51
51
  end
52
52
 
53
53
  def pg_search_engines(args, search_statement)
@@ -1,7 +1,7 @@
1
1
  module Mincer
2
2
 
3
3
  def self.version
4
- Gem::Version.new '0.2.15'
4
+ Gem::Version.new '0.2.16'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_development_dependency 'bundler'
24
24
  spec.add_development_dependency 'rake'
25
- spec.add_development_dependency 'pg'
25
+ spec.add_development_dependency 'pg'#, '~> 0.18'
26
26
  spec.add_development_dependency 'sqlite3'
27
27
  spec.add_development_dependency 'kaminari'
28
28
  spec.add_development_dependency 'will_paginate'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mincer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Krasinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-02 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord