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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 806cd3dfa1308d8e3f4596f4d463b9b01a5ac177
4
- data.tar.gz: 1a638d6a1c8d82856d9825c5800d12c60c592719
2
+ SHA256:
3
+ metadata.gz: 29e1a40dbb98a32173e09c56d42832aa27d6fdd4813fb51672d247082df14ec3
4
+ data.tar.gz: 27b48717fbf73394a4803a15217b67c59380d266dcd101b023911c453d55f834
5
5
  SHA512:
6
- metadata.gz: 40adf2af7d6ba56e8f52fafef3c76a16ee64f12f6b03340fd6c39e51166cea7cdfe763d52a39d9bc37ba5ec5babba95b46fde8478b57782391fe3f4a727ef204
7
- data.tar.gz: 99e987da82d255de1259be243f46b45465715085008fda2cb4185e7192945954f599bdb4ccaa0bc8600004fdfa25fdb1320015bcdfc780e461eda2b360bdcd29
6
+ metadata.gz: 6d06c483bd244395ccc0af4121699e89193e61169f4bde4efebff06560e511677bf4f45c3b15e3b9b9229ce8363d256398c31741fa7d35c446922dfcd7da5890
7
+ data.tar.gz: eaddd825444df7d0cc5b577d34de836b8ed0de122cadca9ae61b1ed5d92006895d741292bbdb7d071f08df0c4c2918ea7ee70613ae0396d5022e711f5dbebcae
@@ -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 ../..
@@ -0,0 +1,17 @@
1
+ # CHANGELOG
2
+
3
+ ## 1.0.3
4
+
5
+ * Support postgis adapter.
6
+
7
+ ## 1.0.2
8
+
9
+ * Support ruby 2.5 and rails 5.2.
10
+
11
+ ## 1.0.1
12
+
13
+ * Remove constant from included module.
14
+
15
+ ## 1.0.0
16
+
17
+ * First release.
data/Gemfile CHANGED
@@ -1,7 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 5.1.0"
4
- gem "mysql2", "~> 0.4.4"
5
- gem "pg", "~> 0.18"
6
-
7
3
  gemspec
@@ -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"
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "mysql2", "~> 0.4.4"
5
5
  gem "pg", "~> 0.18"
6
+ gem "activerecord-postgis-adapter", "~> 4.1"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "mysql2", "~> 0.4.4"
5
5
  gem "pg", "~> 0.18"
6
+ gem "activerecord-postgis-adapter", "~> 5.1"
6
7
 
7
8
  gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 5.2.0.rc1"
3
+ gem "rails", "~> 5.2.0"
4
4
 
5
5
  gemspec path: "../"
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Datewari
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
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.2
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: 2018-02-13 00:00:00.000000000 Z
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
- rubyforge_project:
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