datewari 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/gemfiles/rails52.gemfile +5 -0
- data/lib/datewari/paginator/base.rb +3 -3
- data/lib/datewari/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 806cd3dfa1308d8e3f4596f4d463b9b01a5ac177
|
4
|
+
data.tar.gz: 1a638d6a1c8d82856d9825c5800d12c60c592719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40adf2af7d6ba56e8f52fafef3c76a16ee64f12f6b03340fd6c39e51166cea7cdfe763d52a39d9bc37ba5ec5babba95b46fde8478b57782391fe3f4a727ef204
|
7
|
+
data.tar.gz: 99e987da82d255de1259be243f46b45465715085008fda2cb4185e7192945954f599bdb4ccaa0bc8600004fdfa25fdb1320015bcdfc780e461eda2b360bdcd29
|
data/.travis.yml
CHANGED
@@ -2,6 +2,7 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 2.3
|
4
4
|
- 2.4
|
5
|
+
- 2.5
|
5
6
|
services:
|
6
7
|
- mysql
|
7
8
|
- postgresql
|
@@ -13,6 +14,7 @@ env:
|
|
13
14
|
gemfile:
|
14
15
|
- gemfiles/rails50.gemfile
|
15
16
|
- gemfiles/rails51.gemfile
|
17
|
+
- gemfiles/rails52.gemfile
|
16
18
|
before_script:
|
17
19
|
- cd spec/dummy
|
18
20
|
- bundle exec rake db:create db:migrate db:seed RAILS_ENV=test
|
@@ -16,7 +16,7 @@ module Datewari
|
|
16
16
|
|
17
17
|
def paginate(start_date, end_date)
|
18
18
|
@rel.where("#{quoted_column} BETWEEN ? AND ?", start_date, end_date)
|
19
|
-
.order("#{quoted_column} #{@order.to_s.upcase}")
|
19
|
+
.order(Arel.sql("#{quoted_column} #{@order.to_s.upcase}"))
|
20
20
|
end
|
21
21
|
|
22
22
|
def total_entries
|
@@ -59,8 +59,8 @@ module Datewari
|
|
59
59
|
@rel.limit(nil)
|
60
60
|
.offset(nil)
|
61
61
|
.group(date_sql)
|
62
|
-
.reorder("#{date_sql} #{@order}")
|
63
|
-
.pluck(date_sql)
|
62
|
+
.reorder(Arel.sql("#{date_sql} #{@order}"))
|
63
|
+
.pluck(Arel.sql(date_sql))
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
data/lib/datewari/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datewari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- datewari.gemspec
|
184
184
|
- gemfiles/rails50.gemfile
|
185
185
|
- gemfiles/rails51.gemfile
|
186
|
+
- gemfiles/rails52.gemfile
|
186
187
|
- lib/datewari.rb
|
187
188
|
- lib/datewari/helper.rb
|
188
189
|
- lib/datewari/helper/link_renderer.rb
|