mysql_point 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 +4 -4
- data/.circleci/config.yml +1 -0
- data/Appraisals +6 -2
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/activerecord_5.0.gemfile +1 -1
- data/gemfiles/activerecord_5.1.gemfile +1 -1
- data/gemfiles/activerecord_5.2.gemfile +7 -0
- data/lib/mysql_point/quoting.rb +4 -0
- data/lib/mysql_point/version.rb +1 -1
- metadata +5 -4
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3feb5912b6bd2ac2b9131dccdf10d944009795
|
4
|
+
data.tar.gz: 50f4a89ab5cb1662d18a212ee317b751956d4664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 226b0acc1df0b95d9cee1673d4e4a7bf144e57763c3aac8a6fe625b2b420d637c48e535ad703d56b0ea5bc1bd5c753488bf0795f94d7f51edb1467621a5172a6
|
7
|
+
data.tar.gz: f0812dcc540137cb511a145813a9064d1712c36f3b3c664be9276b79790f0db558f34361e61fafa82ca572236f5d04de295e37e7dee5be5514ea3a2599516a10
|
data/.circleci/config.yml
CHANGED
data/Appraisals
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
appraise 'activerecord-5.0' do
|
2
|
-
gem 'activerecord', '~> 5.0'
|
2
|
+
gem 'activerecord', '~> 5.0.0'
|
3
3
|
end
|
4
4
|
|
5
5
|
appraise 'activerecord-5.1' do
|
6
|
-
gem 'activerecord', '~> 5.1'
|
6
|
+
gem 'activerecord', '~> 5.1.0'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'activerecord-5.2' do
|
10
|
+
gem 'activerecord', '~> 5.2.0'
|
7
11
|
end
|
data/lib/mysql_point/quoting.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
module MySQLPoint::Quoting
|
2
2
|
def quote(value)
|
3
|
+
# ActiveRecord 5.0, 5.1
|
3
4
|
if value.respond_to?(:to_wkt)
|
4
5
|
"ST_GeomFromText(#{super(value.to_wkt)})"
|
6
|
+
# ActiveRecord 5.2
|
7
|
+
elsif value.respond_to?(:value_for_database) && value.value_for_database.respond_to?(:to_wkt)
|
8
|
+
"ST_GeomFromText(#{super(value.value_for_database.to_wkt)})"
|
5
9
|
else
|
6
10
|
super
|
7
11
|
end
|
data/lib/mysql_point/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_point
|
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
|
- Lance Ivy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -103,7 +103,6 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- ".circleci/config.yml"
|
105
105
|
- ".gitignore"
|
106
|
-
- ".travis.yml"
|
107
106
|
- Appraisals
|
108
107
|
- CODE_OF_CONDUCT.md
|
109
108
|
- Gemfile
|
@@ -112,8 +111,10 @@ files:
|
|
112
111
|
- Rakefile
|
113
112
|
- bin/console
|
114
113
|
- bin/setup
|
114
|
+
- gemfiles/.bundle/config
|
115
115
|
- gemfiles/activerecord_5.0.gemfile
|
116
116
|
- gemfiles/activerecord_5.1.gemfile
|
117
|
+
- gemfiles/activerecord_5.2.gemfile
|
117
118
|
- lib/coordinate_validator.rb
|
118
119
|
- lib/mysql_point.rb
|
119
120
|
- lib/mysql_point/column_method.rb
|
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
144
|
version: '0'
|
144
145
|
requirements: []
|
145
146
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.6.13
|
147
148
|
signing_key:
|
148
149
|
specification_version: 4
|
149
150
|
summary: ActiveRecord support for MySQL POINT fields.
|