datewari 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +6 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile +0 -4
- data/datewari.gemspec +1 -0
- data/gemfiles/rails50.gemfile +1 -0
- data/gemfiles/rails51.gemfile +1 -0
- data/gemfiles/rails52.gemfile +1 -1
- data/lib/datewari/paginator.rb +1 -1
- data/lib/datewari/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 29e1a40dbb98a32173e09c56d42832aa27d6fdd4813fb51672d247082df14ec3
|
4
|
+
data.tar.gz: 27b48717fbf73394a4803a15217b67c59380d266dcd101b023911c453d55f834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d06c483bd244395ccc0af4121699e89193e61169f4bde4efebff06560e511677bf4f45c3b15e3b9b9229ce8363d256398c31741fa7d35c446922dfcd7da5890
|
7
|
+
data.tar.gz: eaddd825444df7d0cc5b577d34de836b8ed0de122cadca9ae61b1ed5d92006895d741292bbdb7d071f08df0c4c2918ea7ee70613ae0396d5022e711f5dbebcae
|
data/.travis.yml
CHANGED
@@ -3,19 +3,25 @@ rvm:
|
|
3
3
|
- 2.3
|
4
4
|
- 2.4
|
5
5
|
- 2.5
|
6
|
+
- 2.6
|
6
7
|
services:
|
7
8
|
- mysql
|
8
9
|
- postgresql
|
9
10
|
addons:
|
10
11
|
postgresql: "9.5"
|
12
|
+
apt:
|
13
|
+
packages:
|
14
|
+
- postgresql-9.5-postgis-2.3
|
11
15
|
env:
|
12
16
|
- DATABASE=mysql
|
13
17
|
- DATABASE=postgresql
|
18
|
+
- DATABASE=postgis
|
14
19
|
gemfile:
|
15
20
|
- gemfiles/rails50.gemfile
|
16
21
|
- gemfiles/rails51.gemfile
|
17
22
|
- gemfiles/rails52.gemfile
|
18
23
|
before_script:
|
24
|
+
- psql -U postgres -c "create extension postgis"
|
19
25
|
- cd spec/dummy
|
20
26
|
- bundle exec rake db:create db:migrate db:seed RAILS_ENV=test
|
21
27
|
- cd ../..
|
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/datewari.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rails", ">= 5.0"
|
25
25
|
spec.add_development_dependency "mysql2"
|
26
26
|
spec.add_development_dependency "pg"
|
27
|
+
spec.add_development_dependency "activerecord-postgis-adapter"
|
27
28
|
spec.add_development_dependency "rspec-rails"
|
28
29
|
spec.add_development_dependency "rails-controller-testing"
|
29
30
|
spec.add_development_dependency "simplecov"
|
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
data/lib/datewari/paginator.rb
CHANGED
@@ -26,7 +26,7 @@ module Datewari
|
|
26
26
|
@scope = options[:scope].to_sym
|
27
27
|
|
28
28
|
@query = case rel.klass.connection.adapter_name
|
29
|
-
when 'PostgreSQL'
|
29
|
+
when 'PostgreSQL', 'PostGIS'
|
30
30
|
require_relative 'paginator/postgresql'
|
31
31
|
Postgresql.new(rel, column, order, options)
|
32
32
|
when 'Mysql2'
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activerecord-postgis-adapter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rspec-rails
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,6 +189,7 @@ files:
|
|
175
189
|
- ".gitignore"
|
176
190
|
- ".rspec"
|
177
191
|
- ".travis.yml"
|
192
|
+
- CHANGELOG.md
|
178
193
|
- CODE_OF_CONDUCT.md
|
179
194
|
- Gemfile
|
180
195
|
- LICENSE
|
@@ -215,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
230
|
- !ruby/object:Gem::Version
|
216
231
|
version: '0'
|
217
232
|
requirements: []
|
218
|
-
|
219
|
-
rubygems_version: 2.5.2.2
|
233
|
+
rubygems_version: 3.0.3
|
220
234
|
signing_key:
|
221
235
|
specification_version: 4
|
222
236
|
summary: An ActiveRecord extension to build date oriented pagination links
|