activerecord-postgres-postgis 0.1.0

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.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +24 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +22 -0
  5. data/Gemfile +23 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +6 -0
  9. data/activerecord-postgres-postgis.gemspec +29 -0
  10. data/lib/activerecord-postgres-postgis.rb +10 -0
  11. data/lib/activerecord-postgres-postgis/active_record.rb +3 -0
  12. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/column.rb +53 -0
  13. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/oid.rb +33 -0
  14. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/postgresql_adapter.rb +29 -0
  15. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/quoting.rb +17 -0
  16. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_definitions.rb +49 -0
  17. data/lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_statements.rb +42 -0
  18. data/lib/activerecord-postgres-postgis/arel/visitors/to_sql.rb +9 -0
  19. data/lib/activerecord-postgres-postgis/model.rb +35 -0
  20. data/lib/activerecord-postgres-postgis/railtie.rb +18 -0
  21. data/lib/activerecord-postgres-postgis/version.rb +7 -0
  22. data/lib/generators/postgis/setup_generator.rb +25 -0
  23. data/lib/tasks/postgis.rake +12 -0
  24. data/lib/templates/rails4/setup_postgis.rb +9 -0
  25. data/lib/templates/setup_postgis.rb +9 -0
  26. data/spec/dummy/rails-4.1.0/.gitignore +16 -0
  27. data/spec/dummy/rails-4.1.0/README.rdoc +28 -0
  28. data/spec/dummy/rails-4.1.0/Rakefile +6 -0
  29. data/spec/dummy/rails-4.1.0/app/assets/images/.keep +0 -0
  30. data/spec/dummy/rails-4.1.0/app/assets/javascripts/application.js +16 -0
  31. data/spec/dummy/rails-4.1.0/app/assets/stylesheets/application.css +15 -0
  32. data/spec/dummy/rails-4.1.0/app/controllers/application_controller.rb +5 -0
  33. data/spec/dummy/rails-4.1.0/app/controllers/concerns/.keep +0 -0
  34. data/spec/dummy/rails-4.1.0/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/rails-4.1.0/app/mailers/.keep +0 -0
  36. data/spec/dummy/rails-4.1.0/app/models/.keep +0 -0
  37. data/spec/dummy/rails-4.1.0/app/models/concerns/.keep +0 -0
  38. data/spec/dummy/rails-4.1.0/app/models/foo.rb +5 -0
  39. data/spec/dummy/rails-4.1.0/app/views/layouts/application.html.erb +14 -0
  40. data/spec/dummy/rails-4.1.0/bin/bundle +3 -0
  41. data/spec/dummy/rails-4.1.0/bin/rails +8 -0
  42. data/spec/dummy/rails-4.1.0/bin/rake +8 -0
  43. data/spec/dummy/rails-4.1.0/bin/spring +18 -0
  44. data/spec/dummy/rails-4.1.0/config.ru +4 -0
  45. data/spec/dummy/rails-4.1.0/config/application.rb +32 -0
  46. data/spec/dummy/rails-4.1.0/config/boot.rb +4 -0
  47. data/spec/dummy/rails-4.1.0/config/database.yml +11 -0
  48. data/spec/dummy/rails-4.1.0/config/environment.rb +5 -0
  49. data/spec/dummy/rails-4.1.0/config/environments/development.rb +37 -0
  50. data/spec/dummy/rails-4.1.0/config/environments/production.rb +82 -0
  51. data/spec/dummy/rails-4.1.0/config/environments/test.rb +39 -0
  52. data/spec/dummy/rails-4.1.0/config/initializers/assets.rb +8 -0
  53. data/spec/dummy/rails-4.1.0/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/dummy/rails-4.1.0/config/initializers/cookies_serializer.rb +3 -0
  55. data/spec/dummy/rails-4.1.0/config/initializers/filter_parameter_logging.rb +4 -0
  56. data/spec/dummy/rails-4.1.0/config/initializers/inflections.rb +16 -0
  57. data/spec/dummy/rails-4.1.0/config/initializers/mime_types.rb +4 -0
  58. data/spec/dummy/rails-4.1.0/config/initializers/session_store.rb +3 -0
  59. data/spec/dummy/rails-4.1.0/config/initializers/wrap_parameters.rb +14 -0
  60. data/spec/dummy/rails-4.1.0/config/locales/en.yml +23 -0
  61. data/spec/dummy/rails-4.1.0/config/routes.rb +56 -0
  62. data/spec/dummy/rails-4.1.0/config/secrets.yml +22 -0
  63. data/spec/dummy/rails-4.1.0/db/migrate/20140628210427_setup_postgis.rb +9 -0
  64. data/spec/dummy/rails-4.1.0/db/migrate/20140628230435_create_foos.rb +10 -0
  65. data/spec/dummy/rails-4.1.0/db/schema.rb +35 -0
  66. data/spec/dummy/rails-4.1.0/db/seeds.rb +7 -0
  67. data/spec/dummy/rails-4.1.0/lib/assets/.keep +0 -0
  68. data/spec/dummy/rails-4.1.0/lib/tasks/.keep +0 -0
  69. data/spec/dummy/rails-4.1.0/log/.keep +0 -0
  70. data/spec/dummy/rails-4.1.0/public/404.html +67 -0
  71. data/spec/dummy/rails-4.1.0/public/422.html +67 -0
  72. data/spec/dummy/rails-4.1.0/public/500.html +66 -0
  73. data/spec/dummy/rails-4.1.0/public/favicon.ico +0 -0
  74. data/spec/dummy/rails-4.1.0/public/robots.txt +5 -0
  75. data/spec/dummy/rails-4.1.0/vendor/assets/javascripts/.keep +0 -0
  76. data/spec/dummy/rails-4.1.0/vendor/assets/stylesheets/.keep +0 -0
  77. data/spec/migration_spec.rb +39 -0
  78. data/spec/model_spec.rb +16 -0
  79. data/spec/setup_generator_spec.rb +65 -0
  80. data/spec/spatial_spec.rb +51 -0
  81. data/spec/spec_helper.rb +114 -0
  82. data/spec/support/migration.rb +11 -0
  83. metadata +280 -0
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
@@ -0,0 +1,39 @@
1
+ RSpec.describe :migration do
2
+ context 'geometry' do
3
+ it 'should render a geometry column with spatial type LINESTRING and srid 423' do
4
+ create_temp_table(:geometry, :geom, spatial_type: 'LINESTRING', srid: 423)
5
+ expect(dump_schema).to match(/t.geometry "geom", spatial_type: 'LINESTRING', srid: 423/)
6
+ end
7
+
8
+ it 'should render a geometry column with spatial type LINESTRING and no srid' do
9
+ create_temp_table(:geometry, :geom, spatial_type: 'LINESTRING')
10
+ expect(dump_schema).to match(/t.geometry "geom", spatial_type: 'LINESTRING'/)
11
+ end
12
+
13
+ it 'should continue to render other data types' do
14
+ create_temp_table(:integer, :some_integer, limit: 8)
15
+ expect(dump_schema).to match(/t.integer "some_integer", limit: 8/)
16
+ end
17
+
18
+ context 'add_geometry_column' do
19
+ it 'should render a geometry column with spatial type LINESTRING and srid 4326' do
20
+ table_name = Time.now.to_i
21
+ ActiveRecord::Migration.create_table(table_name)
22
+ ActiveRecord::Migration.add_geometry_column(table_name, :geom, srid: 4326, spatial_type: 'LINESTRING', dimension: 2)
23
+ expect(dump_schema).to match(/t.geometry "geom", spatial_type: 'LINESTRING', srid: 4326/)
24
+ end
25
+ end
26
+ end
27
+
28
+ context 'geography' do
29
+ it 'should render a geography column with spatial type LINESTRING and srid 4326' do
30
+ create_temp_table(:geography, :geog, spatial_type: 'LINESTRING', srid: 4326)
31
+ expect(dump_schema).to match(/t.geography "geog", spatial_type: 'LINESTRING', srid: 4326/)
32
+ end
33
+
34
+ it 'should render a geography column with spatial type LINESTRING and srid 4326 even though srid is blank' do
35
+ create_temp_table(:geography, :geog, spatial_type: 'LINESTRING')
36
+ expect(dump_schema).to match(/t.geography "geog", spatial_type: 'LINESTRING', srid: 4326/)
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,16 @@
1
+ RSpec.describe :model do
2
+ context :geometry do
3
+ it 'should expect geometry factory generator' do
4
+ column = Foo.columns_hash['bar']
5
+ expect(column.oid_type.factory_generator.class).to eq(RGeo::Cartesian::Factory)
6
+ end
7
+
8
+ end
9
+
10
+ context :geography do
11
+ it 'should expect geographic factory generator' do
12
+ column = Foo.columns_hash['car']
13
+ expect(column.oid_type.factory_generator.class).to eq(RGeo::Geographic::Factory)
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,65 @@
1
+ require 'generator_spec/test_case'
2
+ require File.expand_path("../../lib/generators/postgis/setup_generator", __FILE__)
3
+
4
+ RSpec.describe Postgis::SetupGenerator do
5
+ include GeneratorSpec::TestCase
6
+
7
+ destination File.expand_path('../../tmp', __FILE__)
8
+
9
+ before(:each) do
10
+ prepare_destination
11
+ run_generator
12
+ end
13
+
14
+ it 'should create the setup_postgis migration' do
15
+ assert_migration('db/migrate/setup_postgis.rb')
16
+ end
17
+
18
+ context 'Rails 4.x' do
19
+ before(:each) do
20
+ stub_const('Rails::VERSION::STRING', '4.1.0')
21
+ prepare_destination
22
+ run_generator
23
+ end
24
+
25
+ it 'should enable the postgis extension on up' do
26
+ assert_migration('db/migrate/setup_postgis.rb') do |migration|
27
+ assert_class_method :up, migration do |up|
28
+ assert_match(/enable_extension :postgis/, up)
29
+ end
30
+ end
31
+ end
32
+
33
+ it 'should disable the postgis extension on down' do
34
+ assert_migration('db/migrate/setup_postgis.rb') do |migration|
35
+ assert_class_method :down, migration do |down|
36
+ assert_match(/disable_extension :postgis/, down)
37
+ end
38
+ end
39
+ end
40
+ end
41
+
42
+ context 'Rails 3.x' do
43
+ before(:each) do
44
+ stub_const('Rails::VERSION::STRING', '3.0.0')
45
+ prepare_destination
46
+ run_generator
47
+ end
48
+
49
+ it 'should enable the postgis extension on up' do
50
+ assert_migration('db/migrate/setup_postgis.rb') do |migration|
51
+ assert_class_method :up, migration do |up|
52
+ assert_match(/execute 'CREATE EXTENSION IF NOT EXISTS postgis'/, up)
53
+ end
54
+ end
55
+ end
56
+
57
+ it 'should disable the postgis extension on down' do
58
+ assert_migration('db/migrate/setup_postgis.rb') do |migration|
59
+ assert_class_method :down, migration do |down|
60
+ assert_match(/execute 'DROP EXTENSION IF EXISTS postgis'/, down)
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,51 @@
1
+ # FIXME This is one of the ugliest pieces of code ever. It performs all the
2
+ # necessary tests to meet spec compliance but it's hard on the eyes. Refactor!!!
3
+ #
4
+ RSpec.describe :spatial do
5
+ [:bar, :car].each do |column|
6
+ it 'should cast WKT to rgeo' do
7
+ foo = Foo.new(:"#{column}" => 'LINESTRING(0 0, 1 1)')
8
+ expect(foo.send(column)).to be_kind_of(RGeo::Feature::Geometry)
9
+ end
10
+
11
+ it 'should cast WKB to rgeo' do
12
+ foo = Foo.new(:"#{column}" => '0020000002000001a700000002000000000000000000000000000000003ff00000000000003ff0000000000000')
13
+ expect(foo.send(column)).to be_kind_of(RGeo::Feature::Geometry)
14
+ end
15
+
16
+ it 'should gracefully handle nil' do
17
+ foo = Foo.new(:"#{column}" => nil)
18
+ expect(foo.send(column)).to be_nil
19
+ end
20
+
21
+ it 'should save WKT and cast to rgeo' do
22
+ foo = Foo.new(:"#{column}" => 'LINESTRING(0 0, 1 1)')
23
+ foo.save!
24
+ foo.reload
25
+ expect(foo.send(column)).to be_kind_of(RGeo::Feature::Geometry)
26
+ end
27
+
28
+ it 'should save WKB and cast to rgeo' do
29
+ foo = Foo.new(:"#{column}" => '0020000002000001a700000002000000000000000000000000000000003ff00000000000003ff0000000000000')
30
+ foo.save!
31
+ foo.reload
32
+ expect(foo.send(column)).to be_kind_of(RGeo::Feature::Geometry)
33
+ end
34
+
35
+ context :queries do
36
+ before(:each) do
37
+ @foo = Foo.new(:"#{column}" => 'LINESTRING(0 0, 1 1)')
38
+ @foo.save!
39
+ @foo.reload
40
+ end
41
+
42
+ it 'should work with a find_by! query' do
43
+ expect(Foo.find_by!(:"#{column}" => @foo.send(column)).send(column)).to eq(@foo.send(column))
44
+ end
45
+
46
+ it 'should work with a where query' do
47
+ expect(Foo.where(:"#{column}" => @foo.send(column))[0].send(column)).to eq(@foo.send(column))
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,114 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, make a
10
+ # separate helper file that requires this one and then use it only in the specs
11
+ # that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+
18
+ require 'simplecov'
19
+ require 'coveralls'
20
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
21
+ SimpleCov::Formatter::HTMLFormatter,
22
+ Coveralls::SimpleCov::Formatter
23
+ ]
24
+ SimpleCov.start do
25
+ add_filter 'spec'
26
+ end
27
+
28
+ ENV['RAILS_ENV'] = 'test'
29
+
30
+ rails_version = ENV['RAILS_VERSION'] || '4.1.0'
31
+
32
+ require File.expand_path("../../spec/dummy/rails-#{rails_version}/config/environment", __FILE__)
33
+
34
+ require 'rails'
35
+ require 'rspec/rails'
36
+ require 'database_cleaner'
37
+
38
+ # Require supporting ruby files with custom matchers and macros, etc,
39
+ # in spec/support/ and its subdirectories.
40
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
41
+
42
+ RSpec.configure do |config|
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Many RSpec users commonly either run the entire suite or an individual
54
+ # file, and it's useful to allow more verbose output when running an
55
+ # individual spec file.
56
+ if config.files_to_run.one?
57
+ # Use the documentation formatter for detailed output,
58
+ # unless a formatter has already been configured
59
+ # (e.g. via a command-line flag).
60
+ config.default_formatter = 'doc'
61
+ end
62
+
63
+ # Print the 10 slowest examples and example groups at the
64
+ # end of the spec run, to help surface which specs are running
65
+ # particularly slow.
66
+ config.profile_examples = 10
67
+
68
+ # Run specs in random order to surface order dependencies. If you find an
69
+ # order dependency and want to debug it, you can fix the order by providing
70
+ # the seed, which is printed after each run.
71
+ # --seed 1234
72
+ config.order = :random
73
+
74
+ # Seed global randomization in this process using the `--seed` CLI option.
75
+ # Setting this allows you to use `--seed` to deterministically reproduce
76
+ # test failures related to randomization by passing the same `--seed` value
77
+ # as the one that triggered the failure.
78
+ Kernel.srand config.seed
79
+
80
+ # rspec-expectations config goes here. You can use an alternate
81
+ # assertion/expectation library such as wrong or the stdlib/minitest
82
+ # assertions if you prefer.
83
+ config.expect_with :rspec do |expectations|
84
+ # Enable only the newer, non-monkey-patching expect syntax.
85
+ # For more details, see:
86
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
87
+ expectations.syntax = :expect
88
+ end
89
+
90
+ # rspec-mocks config goes here. You can use an alternate test double
91
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
92
+ config.mock_with :rspec do |mocks|
93
+ # Enable only the newer, non-monkey-patching expect syntax.
94
+ # For more details, see:
95
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
96
+ mocks.syntax = :expect
97
+
98
+ # Prevents you from mocking or stubbing a method that does not exist on
99
+ # a real object. This is generally recommended.
100
+ mocks.verify_partial_doubles = true
101
+ end
102
+
103
+ config.before(:suite) do
104
+ DatabaseCleaner.strategy = :transaction
105
+ DatabaseCleaner.clean_with(:truncation, except: %w(spatial_ref_sys))
106
+ end
107
+
108
+ config.around(:each) do |example|
109
+ DatabaseCleaner.cleaning do
110
+ example.run
111
+ end
112
+ end
113
+ end
114
+ end
@@ -0,0 +1,11 @@
1
+ def create_temp_table(column_type, column_name, options = {})
2
+ ActiveRecord::Migration.create_table Time.now.to_i.to_s.to_sym do |t|
3
+ t.send(column_type, column_name, options)
4
+ end
5
+ end
6
+
7
+ def dump_schema
8
+ stream = StringIO.new
9
+ ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream, ActiveRecord::Base)
10
+ stream.string
11
+ end
metadata ADDED
@@ -0,0 +1,280 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-postgres-postgis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Anthony Smith
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rgeo
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: database_cleaner
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: generator_spec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-rails
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'
111
+ description: Write a longer description. Optional.
112
+ email:
113
+ - anthony@sticksnleaves.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".travis.yml"
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - activerecord-postgres-postgis.gemspec
126
+ - lib/activerecord-postgres-postgis.rb
127
+ - lib/activerecord-postgres-postgis/active_record.rb
128
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/column.rb
129
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/oid.rb
130
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/postgresql_adapter.rb
131
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/quoting.rb
132
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_definitions.rb
133
+ - lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_statements.rb
134
+ - lib/activerecord-postgres-postgis/arel/visitors/to_sql.rb
135
+ - lib/activerecord-postgres-postgis/model.rb
136
+ - lib/activerecord-postgres-postgis/railtie.rb
137
+ - lib/activerecord-postgres-postgis/version.rb
138
+ - lib/generators/postgis/setup_generator.rb
139
+ - lib/tasks/postgis.rake
140
+ - lib/templates/rails4/setup_postgis.rb
141
+ - lib/templates/setup_postgis.rb
142
+ - spec/dummy/rails-4.1.0/.gitignore
143
+ - spec/dummy/rails-4.1.0/README.rdoc
144
+ - spec/dummy/rails-4.1.0/Rakefile
145
+ - spec/dummy/rails-4.1.0/app/assets/images/.keep
146
+ - spec/dummy/rails-4.1.0/app/assets/javascripts/application.js
147
+ - spec/dummy/rails-4.1.0/app/assets/stylesheets/application.css
148
+ - spec/dummy/rails-4.1.0/app/controllers/application_controller.rb
149
+ - spec/dummy/rails-4.1.0/app/controllers/concerns/.keep
150
+ - spec/dummy/rails-4.1.0/app/helpers/application_helper.rb
151
+ - spec/dummy/rails-4.1.0/app/mailers/.keep
152
+ - spec/dummy/rails-4.1.0/app/models/.keep
153
+ - spec/dummy/rails-4.1.0/app/models/concerns/.keep
154
+ - spec/dummy/rails-4.1.0/app/models/foo.rb
155
+ - spec/dummy/rails-4.1.0/app/views/layouts/application.html.erb
156
+ - spec/dummy/rails-4.1.0/bin/bundle
157
+ - spec/dummy/rails-4.1.0/bin/rails
158
+ - spec/dummy/rails-4.1.0/bin/rake
159
+ - spec/dummy/rails-4.1.0/bin/spring
160
+ - spec/dummy/rails-4.1.0/config.ru
161
+ - spec/dummy/rails-4.1.0/config/application.rb
162
+ - spec/dummy/rails-4.1.0/config/boot.rb
163
+ - spec/dummy/rails-4.1.0/config/database.yml
164
+ - spec/dummy/rails-4.1.0/config/environment.rb
165
+ - spec/dummy/rails-4.1.0/config/environments/development.rb
166
+ - spec/dummy/rails-4.1.0/config/environments/production.rb
167
+ - spec/dummy/rails-4.1.0/config/environments/test.rb
168
+ - spec/dummy/rails-4.1.0/config/initializers/assets.rb
169
+ - spec/dummy/rails-4.1.0/config/initializers/backtrace_silencers.rb
170
+ - spec/dummy/rails-4.1.0/config/initializers/cookies_serializer.rb
171
+ - spec/dummy/rails-4.1.0/config/initializers/filter_parameter_logging.rb
172
+ - spec/dummy/rails-4.1.0/config/initializers/inflections.rb
173
+ - spec/dummy/rails-4.1.0/config/initializers/mime_types.rb
174
+ - spec/dummy/rails-4.1.0/config/initializers/session_store.rb
175
+ - spec/dummy/rails-4.1.0/config/initializers/wrap_parameters.rb
176
+ - spec/dummy/rails-4.1.0/config/locales/en.yml
177
+ - spec/dummy/rails-4.1.0/config/routes.rb
178
+ - spec/dummy/rails-4.1.0/config/secrets.yml
179
+ - spec/dummy/rails-4.1.0/db/migrate/20140628210427_setup_postgis.rb
180
+ - spec/dummy/rails-4.1.0/db/migrate/20140628230435_create_foos.rb
181
+ - spec/dummy/rails-4.1.0/db/schema.rb
182
+ - spec/dummy/rails-4.1.0/db/seeds.rb
183
+ - spec/dummy/rails-4.1.0/lib/assets/.keep
184
+ - spec/dummy/rails-4.1.0/lib/tasks/.keep
185
+ - spec/dummy/rails-4.1.0/log/.keep
186
+ - spec/dummy/rails-4.1.0/public/404.html
187
+ - spec/dummy/rails-4.1.0/public/422.html
188
+ - spec/dummy/rails-4.1.0/public/500.html
189
+ - spec/dummy/rails-4.1.0/public/favicon.ico
190
+ - spec/dummy/rails-4.1.0/public/robots.txt
191
+ - spec/dummy/rails-4.1.0/vendor/assets/javascripts/.keep
192
+ - spec/dummy/rails-4.1.0/vendor/assets/stylesheets/.keep
193
+ - spec/migration_spec.rb
194
+ - spec/model_spec.rb
195
+ - spec/setup_generator_spec.rb
196
+ - spec/spatial_spec.rb
197
+ - spec/spec_helper.rb
198
+ - spec/support/migration.rb
199
+ homepage: ''
200
+ licenses:
201
+ - MIT
202
+ metadata: {}
203
+ post_install_message:
204
+ rdoc_options: []
205
+ require_paths:
206
+ - lib
207
+ required_ruby_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ requirements: []
218
+ rubyforge_project:
219
+ rubygems_version: 2.2.2
220
+ signing_key:
221
+ specification_version: 4
222
+ summary: Write a short summary. Required.
223
+ test_files:
224
+ - spec/dummy/rails-4.1.0/.gitignore
225
+ - spec/dummy/rails-4.1.0/README.rdoc
226
+ - spec/dummy/rails-4.1.0/Rakefile
227
+ - spec/dummy/rails-4.1.0/app/assets/images/.keep
228
+ - spec/dummy/rails-4.1.0/app/assets/javascripts/application.js
229
+ - spec/dummy/rails-4.1.0/app/assets/stylesheets/application.css
230
+ - spec/dummy/rails-4.1.0/app/controllers/application_controller.rb
231
+ - spec/dummy/rails-4.1.0/app/controllers/concerns/.keep
232
+ - spec/dummy/rails-4.1.0/app/helpers/application_helper.rb
233
+ - spec/dummy/rails-4.1.0/app/mailers/.keep
234
+ - spec/dummy/rails-4.1.0/app/models/.keep
235
+ - spec/dummy/rails-4.1.0/app/models/concerns/.keep
236
+ - spec/dummy/rails-4.1.0/app/models/foo.rb
237
+ - spec/dummy/rails-4.1.0/app/views/layouts/application.html.erb
238
+ - spec/dummy/rails-4.1.0/bin/bundle
239
+ - spec/dummy/rails-4.1.0/bin/rails
240
+ - spec/dummy/rails-4.1.0/bin/rake
241
+ - spec/dummy/rails-4.1.0/bin/spring
242
+ - spec/dummy/rails-4.1.0/config.ru
243
+ - spec/dummy/rails-4.1.0/config/application.rb
244
+ - spec/dummy/rails-4.1.0/config/boot.rb
245
+ - spec/dummy/rails-4.1.0/config/database.yml
246
+ - spec/dummy/rails-4.1.0/config/environment.rb
247
+ - spec/dummy/rails-4.1.0/config/environments/development.rb
248
+ - spec/dummy/rails-4.1.0/config/environments/production.rb
249
+ - spec/dummy/rails-4.1.0/config/environments/test.rb
250
+ - spec/dummy/rails-4.1.0/config/initializers/assets.rb
251
+ - spec/dummy/rails-4.1.0/config/initializers/backtrace_silencers.rb
252
+ - spec/dummy/rails-4.1.0/config/initializers/cookies_serializer.rb
253
+ - spec/dummy/rails-4.1.0/config/initializers/filter_parameter_logging.rb
254
+ - spec/dummy/rails-4.1.0/config/initializers/inflections.rb
255
+ - spec/dummy/rails-4.1.0/config/initializers/mime_types.rb
256
+ - spec/dummy/rails-4.1.0/config/initializers/session_store.rb
257
+ - spec/dummy/rails-4.1.0/config/initializers/wrap_parameters.rb
258
+ - spec/dummy/rails-4.1.0/config/locales/en.yml
259
+ - spec/dummy/rails-4.1.0/config/routes.rb
260
+ - spec/dummy/rails-4.1.0/config/secrets.yml
261
+ - spec/dummy/rails-4.1.0/db/migrate/20140628210427_setup_postgis.rb
262
+ - spec/dummy/rails-4.1.0/db/migrate/20140628230435_create_foos.rb
263
+ - spec/dummy/rails-4.1.0/db/schema.rb
264
+ - spec/dummy/rails-4.1.0/db/seeds.rb
265
+ - spec/dummy/rails-4.1.0/lib/assets/.keep
266
+ - spec/dummy/rails-4.1.0/lib/tasks/.keep
267
+ - spec/dummy/rails-4.1.0/log/.keep
268
+ - spec/dummy/rails-4.1.0/public/404.html
269
+ - spec/dummy/rails-4.1.0/public/422.html
270
+ - spec/dummy/rails-4.1.0/public/500.html
271
+ - spec/dummy/rails-4.1.0/public/favicon.ico
272
+ - spec/dummy/rails-4.1.0/public/robots.txt
273
+ - spec/dummy/rails-4.1.0/vendor/assets/javascripts/.keep
274
+ - spec/dummy/rails-4.1.0/vendor/assets/stylesheets/.keep
275
+ - spec/migration_spec.rb
276
+ - spec/model_spec.rb
277
+ - spec/setup_generator_spec.rb
278
+ - spec/spatial_spec.rb
279
+ - spec/spec_helper.rb
280
+ - spec/support/migration.rb