mysql_point 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d975e2ed816017f80323ee67e342ca78f9e8072
4
- data.tar.gz: 4cf3edf52e950e56130c548dd4f6420f0b816a13
3
+ metadata.gz: 3a3feb5912b6bd2ac2b9131dccdf10d944009795
4
+ data.tar.gz: 50f4a89ab5cb1662d18a212ee317b751956d4664
5
5
  SHA512:
6
- metadata.gz: 5713ef96af9ae5fae7228831fe6e6c53d8ac127cd2251f9a3e7fd4bd74937e94cfbb7946c689f0ad320878dccbe244b057f44ae46b3bb423be4d68f02e2f6e98
7
- data.tar.gz: 3603b599915d322ff1796d12035cc87be61e70c60b698a4124213dcbdca9bcc26408678761d18282720472d9b4a4dfbc23652b7ba28f8833c0b0e10176f7fc4f
6
+ metadata.gz: 226b0acc1df0b95d9cee1673d4e4a7bf144e57763c3aac8a6fe625b2b420d637c48e535ad703d56b0ea5bc1bd5c753488bf0795f94d7f51edb1467621a5172a6
7
+ data.tar.gz: f0812dcc540137cb511a145813a9064d1712c36f3b3c664be9276b79790f0db558f34361e61fafa82ca572236f5d04de295e37e7dee5be5514ea3a2599516a10
data/.circleci/config.yml CHANGED
@@ -13,4 +13,5 @@ jobs:
13
13
  - checkout
14
14
  - run: bundle install
15
15
  - run: echo $DATABASE_URL
16
+ - run: appraisal install
16
17
  - run: appraisal rake test
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
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.0"
5
+ gem "activerecord", "~> 5.0.0"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.1"
5
+ gem "activerecord", "~> 5.1.0"
6
6
 
7
7
  gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.2.0"
6
+
7
+ gemspec path: "../"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MySQLPoint
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: mysql_point
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
  - Lance Ivy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
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.5.1
147
+ rubygems_version: 2.6.13
147
148
  signing_key:
148
149
  specification_version: 4
149
150
  summary: ActiveRecord support for MySQL POINT fields.
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.15.1-lance