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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dec8cf1e6c45aa68ce501284959ed48299aa7774
4
- data.tar.gz: c11f2163c2f62424d6afdec9ae53f8f48ea4d274
3
+ metadata.gz: 806cd3dfa1308d8e3f4596f4d463b9b01a5ac177
4
+ data.tar.gz: 1a638d6a1c8d82856d9825c5800d12c60c592719
5
5
  SHA512:
6
- metadata.gz: 399e2bd2386561a99ff1e4321709be91af4c8d70f3d386cea2bbd0718b94f1affefd67e57e267362994990f2151a0facf635499f20453c3cff08463b62a5808d
7
- data.tar.gz: 0020c883a0598a8c6096d32a1e68a8bd04305ba6a8a7ca6930ca84546f12b62fd5585e1c30b3a9bffdb1da415927927f26f1db4ca449fca9108359b5f810307e
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
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 5.2.0.rc1"
4
+
5
+ gemspec path: "../"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Datewari
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
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.1
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-01-24 00:00:00.000000000 Z
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