From f45e8daf36607c37fb0d8f6e18aee860f3c29008 Mon Sep 17 00:00:00 2001 From: Nirmit Patel Date: Fri, 28 Mar 2014 01:53:22 -0700 Subject: [PATCH 1/2] Updated readme to focus on gem name and adapter value so devs can more easily identify change requirements --- README.rdoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rdoc b/README.rdoc index e5a9801..dd59d58 100644 --- a/README.rdoc +++ b/README.rdoc @@ -11,7 +11,7 @@ requires the mysql2 gem. === Spatial Migrations -First, this adapter extends the migration syntax to support creating +First, this adapter extends the migration syntax to support creating spatial columns and indexes. To create a spatial column, use the :geometry type, or any of the OGC spatial types such as :point or :line_string. To create a spatial index, set @@ -55,13 +55,13 @@ the "rgeo-activerecord" gem. Examples, given the spatial table defined above: class MySpatialTable < ActiveRecord::Base - + # By default, use the GEOS implementation for spatial columns. self.rgeo_factory_generator = RGeo::Geos.method(:factory) - + # But use a geographic implementation for the :latlon column. set_rgeo_factory_for_column(:latlon, RGeo::Geographic.spherical_factory) - + end Now you can interact with the data using the RGeo types: @@ -115,8 +115,8 @@ installation information. === Basic Setup -To use this adapter, add this gem, "activerecord-mysql2spatial-adapter", -to your Gemfile, and then request the adapter name "mysql2spatial" in +To use this adapter, add this gem, *"activerecord-mysql2spatial-adapter"*, +to your Gemfile, and then request the adapter name *"mysql2spatial"* in your database connection configuration (which, for a Rails application, is in the config/database.yml file). The other database connection configuration parameters are the same as for the stock mysql2 adapter, From fcd18489a76636555fed896cdddf3ee49867ea9f Mon Sep 17 00:00:00 2001 From: Nirmit Patel Date: Fri, 28 Mar 2014 01:55:55 -0700 Subject: [PATCH 2/2] Used wrong markup value for bold --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index dd59d58..17e54cd 100644 --- a/README.rdoc +++ b/README.rdoc @@ -115,8 +115,8 @@ installation information. === Basic Setup -To use this adapter, add this gem, *"activerecord-mysql2spatial-adapter"*, -to your Gemfile, and then request the adapter name *"mysql2spatial"* in +To use this adapter, add this gem, "activerecord-mysql2spatial-adapter", +to your Gemfile, and then request the adapter name "mysql2spatial" in your database connection configuration (which, for a Rails application, is in the config/database.yml file). The other database connection configuration parameters are the same as for the stock mysql2 adapter,