rgeo-geojson 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.2.1 / 2011-04-11
2
+
3
+ * The gem version is now accessible via an api.
4
+ * A .gemspec file is now available for gem building and bundler git integration.
5
+
1
6
  === 0.2.0 / 2010-12-07
2
7
 
3
8
  * Initial public alpha release. Spun rgeo-geojson off from the core rgeo gem.
data/README.rdoc CHANGED
@@ -38,7 +38,7 @@ Example:
38
38
  RGeo::GeoJSON has the following requirements:
39
39
 
40
40
  * Ruby 1.8.7 or later. Ruby 1.9.2 or later preferred.
41
- * \RGeo 0.2.0 or later.
41
+ * \RGeo 0.2.8 or later.
42
42
  * If you are using Ruby 1.8, you should install the "json" gem to support
43
43
  parsing JSON strings. Ruby 1.9 has JSON support in its standard library
44
44
  and does not require the gem.
@@ -75,7 +75,7 @@ Development of \RGeo is sponsored by GeoPage, Inc. (http://www.geopage.com).
75
75
 
76
76
  === License
77
77
 
78
- Copyright 2010 Daniel Azuma
78
+ Copyright 2010-2011 Daniel Azuma
79
79
 
80
80
  All rights reserved.
81
81
 
data/Version CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -0,0 +1,56 @@
1
+ # -----------------------------------------------------------------------------
2
+ #
3
+ # Version of rgeo-geojson
4
+ #
5
+ # -----------------------------------------------------------------------------
6
+ # Copyright 2010 Daniel Azuma
7
+ #
8
+ # All rights reserved.
9
+ #
10
+ # Redistribution and use in source and binary forms, with or without
11
+ # modification, are permitted provided that the following conditions are met:
12
+ #
13
+ # * Redistributions of source code must retain the above copyright notice,
14
+ # this list of conditions and the following disclaimer.
15
+ # * Redistributions in binary form must reproduce the above copyright notice,
16
+ # this list of conditions and the following disclaimer in the documentation
17
+ # and/or other materials provided with the distribution.
18
+ # * Neither the name of the copyright holder, nor the names of any other
19
+ # contributors to this software, may be used to endorse or promote products
20
+ # derived from this software without specific prior written permission.
21
+ #
22
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
+ # POSSIBILITY OF SUCH DAMAGE.
33
+ # -----------------------------------------------------------------------------
34
+ ;
35
+
36
+
37
+ begin
38
+ require 'versionomy'
39
+ rescue ::LoadError
40
+ end
41
+
42
+
43
+ module RGeo
44
+
45
+ module GeoJSON
46
+
47
+ # Current version of RGeo::GeoJSON as a frozen string
48
+ VERSION_STRING = ::File.read(::File.dirname(__FILE__)+'/../../../Version').strip.freeze
49
+
50
+ # Current version of RGeo::GeoJSON as a Versionomy object, if the
51
+ # Versionomy gem is available; otherwise equal to VERSION_STRING.
52
+ VERSION = defined?(::Versionomy) ? ::Versionomy.parse(VERSION_STRING) : VERSION_STRING
53
+
54
+ end
55
+
56
+ end
data/lib/rgeo/geo_json.rb CHANGED
@@ -57,6 +57,7 @@ end
57
57
 
58
58
 
59
59
  # Implementation files
60
+ require 'rgeo/geo_json/version'
60
61
  require 'rgeo/geo_json/entities'
61
62
  require 'rgeo/geo_json/coder'
62
63
  require 'rgeo/geo_json/interface'
data/test/tc_basic.rb CHANGED
@@ -54,6 +54,11 @@ module RGeo
54
54
  end
55
55
 
56
56
 
57
+ def test_has_version
58
+ assert_not_nil(::RGeo::GeoJSON::VERSION)
59
+ end
60
+
61
+
57
62
  def test_point
58
63
  object_ = @geo_factory.point(10, 20)
59
64
  json_ = {
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-geojson
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
4
+ prerelease:
5
+ version: 0.2.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Daniel Azuma
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-12-07 00:00:00 -08:00
18
- default_executable:
13
+ date: 2011-04-11 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rgeo
@@ -25,11 +20,7 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 2
31
- - 0
32
- version: 0.2.0
23
+ version: 0.2.8
33
24
  type: :runtime
34
25
  version_requirements: *id001
35
26
  description: RGeo is a geospatial data library for Ruby. RGeo::GeoJSON is an optional RGeo module providing GeoJSON encoding and decoding services. This module can be used to communicate with location-based web services that understand the GeoJSON format.
@@ -45,12 +36,12 @@ files:
45
36
  - lib/rgeo/geo_json/coder.rb
46
37
  - lib/rgeo/geo_json/entities.rb
47
38
  - lib/rgeo/geo_json/interface.rb
39
+ - lib/rgeo/geo_json/version.rb
48
40
  - lib/rgeo/geo_json.rb
41
+ - test/tc_basic.rb
49
42
  - History.rdoc
50
43
  - README.rdoc
51
- - test/tc_basic.rb
52
44
  - Version
53
- has_rdoc: true
54
45
  homepage: http://virtuoso.rubyforge.org/rgeo-geojson
55
46
  licenses: []
56
47
 
@@ -64,25 +55,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
55
  requirements:
65
56
  - - ">="
66
57
  - !ruby/object:Gem::Version
67
- segments:
68
- - 1
69
- - 8
70
- - 7
71
58
  version: 1.8.7
72
59
  required_rubygems_version: !ruby/object:Gem::Requirement
73
60
  none: false
74
61
  requirements:
75
- - - ">="
62
+ - - ">"
76
63
  - !ruby/object:Gem::Version
77
- segments:
78
- - 0
79
- version: "0"
64
+ version: 1.3.1
80
65
  requirements: []
81
66
 
82
67
  rubyforge_project: virtuoso
83
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.7.2
84
69
  signing_key:
85
70
  specification_version: 3
86
- summary: RGeo::GeoJSON is an RGeo module providing GeoJSON encoding and decoding.
71
+ summary: An RGeo module providing GeoJSON encoding and decoding.
87
72
  test_files:
88
73
  - test/tc_basic.rb