activerecord-spatial 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +16 -0
  3. data/Gemfile +21 -0
  4. data/Guardfile +17 -0
  5. data/MIT-LICENSE +23 -0
  6. data/README.rdoc +169 -0
  7. data/Rakefile +28 -0
  8. data/activerecord-spatial.gemspec +26 -0
  9. data/lib/activerecord-spatial.rb +32 -0
  10. data/lib/activerecord-spatial/active_record.rb +14 -0
  11. data/lib/activerecord-spatial/active_record/connection_adapters/postgresql/adapter_extensions.rb +36 -0
  12. data/lib/activerecord-spatial/active_record/connection_adapters/postgresql/postgis.rb +24 -0
  13. data/lib/activerecord-spatial/active_record/connection_adapters/postgresql/unknown_srid.rb +21 -0
  14. data/lib/activerecord-spatial/active_record/models/geography_column.rb +17 -0
  15. data/lib/activerecord-spatial/active_record/models/geometry_column.rb +17 -0
  16. data/lib/activerecord-spatial/active_record/models/spatial_column.rb +22 -0
  17. data/lib/activerecord-spatial/active_record/models/spatial_ref_sys.rb +20 -0
  18. data/lib/activerecord-spatial/associations.rb +292 -0
  19. data/lib/activerecord-spatial/spatial_columns.rb +345 -0
  20. data/lib/activerecord-spatial/spatial_function.rb +201 -0
  21. data/lib/activerecord-spatial/spatial_scope_constants.rb +114 -0
  22. data/lib/activerecord-spatial/spatial_scopes.rb +297 -0
  23. data/lib/activerecord-spatial/version.rb +5 -0
  24. data/lib/tasks/test.rake +45 -0
  25. data/test/accessors_geographies_tests.rb +149 -0
  26. data/test/accessors_geometries_tests.rb +151 -0
  27. data/test/adapter_tests.rb +44 -0
  28. data/test/associations_tests.rb +656 -0
  29. data/test/database.yml +17 -0
  30. data/test/fixtures/bars.yml +16 -0
  31. data/test/fixtures/blorts.yml +37 -0
  32. data/test/fixtures/foo3ds.yml +17 -0
  33. data/test/fixtures/foo_geographies.yml +16 -0
  34. data/test/fixtures/foos.yml +16 -0
  35. data/test/fixtures/zortables.yml +36 -0
  36. data/test/geography_column_tests.rb +40 -0
  37. data/test/geometry_column_tests.rb +40 -0
  38. data/test/models/bar.rb +17 -0
  39. data/test/models/blort.rb +12 -0
  40. data/test/models/foo.rb +17 -0
  41. data/test/models/foo3d.rb +17 -0
  42. data/test/models/foo_geography.rb +16 -0
  43. data/test/models/zortable.rb +17 -0
  44. data/test/spatial_scopes_geographies_tests.rb +106 -0
  45. data/test/spatial_scopes_tests.rb +444 -0
  46. data/test/test_helper.rb +272 -0
  47. metadata +138 -0
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-spatial
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - J Smith
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ! '>='
17
+ - !ruby/object:Gem::Version
18
+ version: '3.2'
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '3.2'
24
+ type: :runtime
25
+ prerelease: false
26
+ name: rails
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.3.0.dev
33
+ version_requirements: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 0.3.0.dev
38
+ type: :runtime
39
+ prerelease: false
40
+ name: geos-extensions
41
+ description: ActiveRecord Spatial gives AR the ability to work with PostGIS columns.
42
+ email: code@zoocasa.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files:
46
+ - README.rdoc
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - Guardfile
51
+ - MIT-LICENSE
52
+ - README.rdoc
53
+ - Rakefile
54
+ - activerecord-spatial.gemspec
55
+ - lib/activerecord-spatial.rb
56
+ - lib/activerecord-spatial/active_record.rb
57
+ - lib/activerecord-spatial/active_record/connection_adapters/postgresql/adapter_extensions.rb
58
+ - lib/activerecord-spatial/active_record/connection_adapters/postgresql/postgis.rb
59
+ - lib/activerecord-spatial/active_record/connection_adapters/postgresql/unknown_srid.rb
60
+ - lib/activerecord-spatial/active_record/models/geography_column.rb
61
+ - lib/activerecord-spatial/active_record/models/geometry_column.rb
62
+ - lib/activerecord-spatial/active_record/models/spatial_column.rb
63
+ - lib/activerecord-spatial/active_record/models/spatial_ref_sys.rb
64
+ - lib/activerecord-spatial/associations.rb
65
+ - lib/activerecord-spatial/spatial_columns.rb
66
+ - lib/activerecord-spatial/spatial_function.rb
67
+ - lib/activerecord-spatial/spatial_scope_constants.rb
68
+ - lib/activerecord-spatial/spatial_scopes.rb
69
+ - lib/activerecord-spatial/version.rb
70
+ - lib/tasks/test.rake
71
+ - test/accessors_geographies_tests.rb
72
+ - test/accessors_geometries_tests.rb
73
+ - test/adapter_tests.rb
74
+ - test/associations_tests.rb
75
+ - test/database.yml
76
+ - test/fixtures/bars.yml
77
+ - test/fixtures/blorts.yml
78
+ - test/fixtures/foo3ds.yml
79
+ - test/fixtures/foo_geographies.yml
80
+ - test/fixtures/foos.yml
81
+ - test/fixtures/zortables.yml
82
+ - test/geography_column_tests.rb
83
+ - test/geometry_column_tests.rb
84
+ - test/models/bar.rb
85
+ - test/models/blort.rb
86
+ - test/models/foo.rb
87
+ - test/models/foo3d.rb
88
+ - test/models/foo_geography.rb
89
+ - test/models/zortable.rb
90
+ - test/spatial_scopes_geographies_tests.rb
91
+ - test/spatial_scopes_tests.rb
92
+ - test/test_helper.rb
93
+ homepage: https://github.com/zoocasa/activerecord-spatial
94
+ licenses: []
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.0.3
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: ActiveRecord Spatial gives AR the ability to work with PostGIS columns.
116
+ test_files:
117
+ - test/accessors_geographies_tests.rb
118
+ - test/accessors_geometries_tests.rb
119
+ - test/adapter_tests.rb
120
+ - test/associations_tests.rb
121
+ - test/database.yml
122
+ - test/fixtures/bars.yml
123
+ - test/fixtures/blorts.yml
124
+ - test/fixtures/foo3ds.yml
125
+ - test/fixtures/foo_geographies.yml
126
+ - test/fixtures/foos.yml
127
+ - test/fixtures/zortables.yml
128
+ - test/geography_column_tests.rb
129
+ - test/geometry_column_tests.rb
130
+ - test/models/bar.rb
131
+ - test/models/blort.rb
132
+ - test/models/foo.rb
133
+ - test/models/foo3d.rb
134
+ - test/models/foo_geography.rb
135
+ - test/models/zortable.rb
136
+ - test/spatial_scopes_geographies_tests.rb
137
+ - test/spatial_scopes_tests.rb
138
+ - test/test_helper.rb