rgeo-geojson 0.3.0 → 0.3.1

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: f03a9ed7960db6dc2eee2b24498f1dcfab817bec
4
- data.tar.gz: fb4db35db82d544cc5436f4a3264408be0d3a5dd
3
+ metadata.gz: b963b8280f0f189f154f284aea3b300ca7b16def
4
+ data.tar.gz: 3d2c9a2ae2179ff2bebbf8a6a041edc502fddee1
5
5
  SHA512:
6
- metadata.gz: 388bda1f4cff81bd0fd2efe4dd61ae4e85ec3ac6c9e1abc7785b917e819b0fe2361775e2cec9ce1eb71ae2f94c8fb922bbc5b016af59fc3db3c8d75c939485da
7
- data.tar.gz: 9b7b2f9f61b3749237fbe27667bc902ce2cc89b87a01b9daff0c8f789bc4a39b340d288a4d09eb614c88da564fcd3eccd09af1bd4b9b66aa34aad8b1944a275c
6
+ metadata.gz: 742a3101471e19cde8e5feea3eedb8d1f3fb7c43ec4f945da1ddd874880ff80efecdce530f6bc01a2f1f68013a1cc468f9deb409e87ac66946e740b63a6e34f6
7
+ data.tar.gz: 0f840064668a804a8388046cbabc21eaca020f658c2cf653d070c1dbd1f062dd1cbdd4582f3d4c913de0cd1023bbd2c1c600aacdb14774be5d6ac1d91832adbe
data/History.md ADDED
@@ -0,0 +1,50 @@
1
+ ### 0.3.1 / 2014-05-29
2
+
3
+ * Include docs files in gemspec
4
+ * Gemspec cleanup
5
+
6
+
7
+ ### 0.3.0 / 2014-05-27
8
+
9
+ * Require ruby 1.9.3+
10
+ * Update development environment
11
+
12
+
13
+ ### 0.2.5 / 2012-??-??
14
+
15
+ * The gemspec no longer includes the timestamp in the version, so that
16
+ bundler can pull from github. (Reported by corneverbruggen)
17
+
18
+
19
+ ### 0.2.4 / 2012-04-??
20
+
21
+ * Travis CI integration.
22
+
23
+
24
+ ### 0.2.3 / 2012-03-17
25
+
26
+ * Returns nil from the encode method if nil is passed in. (Suggestion by
27
+ Pete Deffendol.)
28
+
29
+
30
+ ### 0.2.2 / 2012-01-09
31
+
32
+ * Fixed Feature#property(:symbol). (Reported by Andy Allan.)
33
+ * Added an "rgeo-geojson.rb" wrapper so bundler's auto-require will work
34
+ without modification. (Reported by Mauricio Pasquier Juan.)
35
+
36
+
37
+ ### 0.2.1 / 2011-04-11
38
+
39
+ * The gem version is now accessible via an api.
40
+ * A .gemspec file is now available for gem building and bundler git
41
+ integration.
42
+
43
+
44
+ ### 0.2.0 / 2010-12-07
45
+
46
+ * Initial public alpha release. Spun rgeo-geojson off from the core rgeo
47
+ gem.
48
+
49
+
50
+ For earlier history, see the History file for the rgeo gem.
data/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # RGeo::GeoJSON
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rgeo-geojson.svg)](http://badge.fury.io/rb/rgeo-geojson)
4
+ [![Build Status](https://travis-ci.org/rgeo/rgeo-geojson.svg?branch=master)](https://travis-ci.org/rgeo/rgeo-geojson)
5
+
6
+ `RGeo::GeoJSON` is an optional module for [RGeo](http://github.com/rgeo/rgeo)
7
+ that provides GeoJSON encoding and decoding services.
8
+
9
+ ## Summary
10
+
11
+ RGeo is a key component for writing location-aware applications in the Ruby
12
+ programming language. At its core is an implementation of the industry
13
+ standard OGC Simple Features Specification, which provides data
14
+ representations of geometric objects such as points, lines, and polygons,
15
+ along with a set of geometric analysis operations. See the README for the
16
+ "rgeo" gem for more information.
17
+
18
+ `RGeo::GeoJSON` is an optional RGeo add-on module that provides GeoJSON encoding
19
+ and decoding services. GeoJSON is an emerging standard format used by many web
20
+ services that need to communicate geospatial data. See http://www.geojson.org
21
+ for more information.
22
+
23
+ Example:
24
+
25
+ ```ruby
26
+ require 'rgeo/geo_json'
27
+
28
+ str1 = '{"type":"Point","coordinates":[1,2]}'
29
+ geom = RGeo::GeoJSON.decode(str1, :json_parser => :json)
30
+ geom.as_text # => "POINT(1.0 2.0)"
31
+
32
+ str2 = '{"type":"Feature","geometry":{"type":"Point","coordinates":[2.5,4.0]},"properties":{"color":"red"}}'
33
+ feature = RGeo::GeoJSON.decode(str2, :json_parser => :json)
34
+ feature['color'] # => 'red'
35
+ feature.geometry.as_text # => "POINT(2.5 4.0)"
36
+
37
+ hash = RGeo::GeoJSON.encode(feature)
38
+ hash.to_json == str2 # => true
39
+ ```
40
+
41
+ ## Install
42
+
43
+ `RGeo::GeoJSON` has the following requirements:
44
+
45
+ * Ruby 1.9.3 or later
46
+ * rgeo 0.3.13 or later.
47
+
48
+ Include in your bundle:
49
+
50
+ ```ruby
51
+ gem 'rgeo-geojson'
52
+ ```
53
+
54
+ Install RGeo::GeoJSON as a gem:
55
+
56
+ ```sh
57
+ gem install rgeo-geojson
58
+ ```
59
+
60
+ See the README for the "rgeo" gem, a required dependency, for further installation information.
61
+
62
+ If you are using Ruby 1.8, use version `0.2.x`.
63
+
64
+ ### To-do list
65
+
66
+ * Add support for the "bbox" and "crs" elements.
67
+
68
+ ### Development and support
69
+
70
+ RDoc Documentation is available at http://rdoc.info/gems/rgeo-geojson
71
+
72
+ Source code is hosted on Github at http://github.com/rgeo/rgeo-geojson
73
+
74
+ Contributions are welcome. Fork the project on Github.
75
+
76
+ Report bugs on Github issues at http://github.com/rgeo/rgeo-geojson/issues
77
+
78
+ ### Acknowledgments
79
+
80
+ RGeo is written by Daniel Azuma (http://www.daniel-azuma.com).
81
+
82
+ Development is supported by:
83
+
84
+ * [Pirq](http://www.pirq.com)
85
+ * [Neighborland](https://neighborland.com)
86
+
87
+ ### License
88
+
89
+ Copyright 2014 Daniel Azuma
90
+
91
+ Copyright 2014 Tee Parham
92
+
93
+ https://github.com/rgeo/rgeo-geojson/blob/master/LICENSE.txt
@@ -1,5 +1,5 @@
1
1
  module RGeo
2
2
  module GeoJSON
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-geojson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
- - Daniel Azuma, Tee Parham
7
+ - Daniel Azuma
8
+ - Tee Parham
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
12
+ date: 2014-05-29 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rgeo
@@ -70,12 +71,16 @@ description: RGeo is a geospatial data library for Ruby. RGeo::GeoJSON is an opt
70
71
  RGeo module providing GeoJSON encoding and decoding services. This module can be
71
72
  used to communicate with location-based web services that understand the GeoJSON
72
73
  format.
73
- email: dazuma@gmail.com, parhameter@gmail.com
74
+ email:
75
+ - dazuma@gmail.com
76
+ - parhameter@gmail.com
74
77
  executables: []
75
78
  extensions: []
76
79
  extra_rdoc_files: []
77
80
  files:
81
+ - History.md
78
82
  - LICENSE.txt
83
+ - README.md
79
84
  - lib/rgeo-geojson.rb
80
85
  - lib/rgeo/geo_json.rb
81
86
  - lib/rgeo/geo_json/coder.rb
@@ -84,7 +89,8 @@ files:
84
89
  - lib/rgeo/geo_json/version.rb
85
90
  - test/basic_test.rb
86
91
  homepage: http://github.com/rgeo/rgeo-geojson
87
- licenses: []
92
+ licenses:
93
+ - BSD
88
94
  metadata: {}
89
95
  post_install_message:
90
96
  rdoc_options: []