mapfish 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ pkg
data/README CHANGED
@@ -80,7 +80,7 @@ Import some data::
80
80
 
81
81
  rails runner "Geonames::Weather.weather(:north => 44.1, :south => -9.9, :east => -22.4, :west => 55.2).each { |st| WeatherStation.create(:name => st.stationName, :geom => Point.from_x_y(st.lng, st.lat)) }"
82
82
 
83
- (needs lib/geonames.rb from http://github.com/pka/map_layers/tree in lib/)
83
+ (needs lib/geonames.rb from http://github.com/pka/map_layers/raw/master/lib/geonames.rb)
84
84
 
85
85
  Create a resource for an existing table::
86
86
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.5
1
+ 1.3.6
@@ -58,50 +58,50 @@ module GeoRuby
58
58
  end
59
59
  end
60
60
  class Point
61
- def to_json(options = nil)
61
+ def as_json(options = nil)
62
62
  {:type => "Point",
63
- :coordinates => [self.x, self.y]}.to_json(options)
63
+ :coordinates => [self.x, self.y]}.as_json(options)
64
64
  end
65
65
  end
66
66
  class LineString
67
- def to_json(options = nil)
67
+ def as_json(options = nil)
68
68
  coords = self.points.collect {|point| [point.x, point.y] }
69
69
  {:type => "LineString",
70
- :coordinates => coords}.to_json(options)
70
+ :coordinates => coords}.as_json(options)
71
71
  end
72
72
  end
73
73
  class Polygon
74
- def to_json(options = nil)
74
+ def as_json(options = nil)
75
75
  coords = self.collect {|ring| ring.points.collect {|point| [point.x, point.y] } }
76
76
  {:type => "Polygon",
77
- :coordinates => coords}.to_json(options)
77
+ :coordinates => coords}.as_json(options)
78
78
  end
79
79
  end
80
80
  class MultiPoint
81
- def to_json(options = nil)
81
+ def as_json(options = nil)
82
82
  coords = self.geometries.collect {|geom| [geom.x, geom.y] }
83
83
  {:type => "MultiPoint",
84
- :coordinates => coords}.to_json(options)
84
+ :coordinates => coords}.as_json(options)
85
85
  end
86
86
  end
87
87
  class MultiLineString
88
- def to_json(options = nil)
88
+ def as_json(options = nil)
89
89
  coords = self.geometries.collect {|geom| geom.points.collect {|point| [point.x, point.y] } }
90
90
  {:type => "MultiLineString",
91
- :coordinates => coords}.to_json(options)
91
+ :coordinates => coords}.as_json(options)
92
92
  end
93
93
  end
94
94
  class MultiPolygon
95
- def to_json(options = nil)
95
+ def as_json(options = nil)
96
96
  coords = self.geometries.collect {|geom| geom.collect {|ring| ring.points.collect {|point| [point.x, point.y] } } }
97
97
  {:type => "MultiPolygon",
98
- :coordinates => coords}.to_json(options)
98
+ :coordinates => coords}.as_json(options)
99
99
  end
100
100
  end
101
101
  class GeometryCollection
102
- def to_json(options = nil)
102
+ def as_json(options = nil)
103
103
  {:type => "GeometryCollection",
104
- :geometries => self.geometries}.to_json(options)
104
+ :geometries => self.geometries}.as_json(options)
105
105
  end
106
106
  end
107
107
 
@@ -116,12 +116,12 @@ module GeoRuby
116
116
  @id=id
117
117
  end
118
118
 
119
- def to_json(options = nil)
119
+ def as_json(options = nil)
120
120
  result={:type=>"Feature",
121
121
  :geometry=>@geometry,
122
122
  :properties=>@properties}
123
123
  result[:id]=@id if @id!=nil
124
- return result.to_json(options)
124
+ return result.as_json(options)
125
125
  end
126
126
 
127
127
  def ==(other)
@@ -139,9 +139,9 @@ module GeoRuby
139
139
  @features=features
140
140
  end
141
141
 
142
- def to_json(options = nil)
142
+ def as_json(options = nil)
143
143
  {:type=>"FeatureCollection",
144
- :features=>@features}.to_json(options)
144
+ :features=>@features}.as_json(options)
145
145
  end
146
146
 
147
147
  def ==(other)
@@ -1,44 +1,44 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mapfish}
8
- s.version = "1.3.5"
8
+ s.version = "1.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pirmin Kalberer"]
12
- s.date = %q{2010-06-19}
12
+ s.date = %q{2011-07-07}
13
13
  s.description = %q{MapFish is a flexible and complete framework for building rich web-mapping applications. Homepage: mapfish.org}
14
14
  s.email = %q{pka@sourcepole.ch}
15
15
  s.files = [
16
+ ".gitignore",
16
17
  "COPYING.LESSER",
17
- "README",
18
- "Rakefile",
19
- "VERSION",
20
- "init.rb",
21
- "install.rb",
22
- "lib/generators/mapfish/print_controller/USAGE",
23
- "lib/generators/mapfish/print_controller/print_controller_generator.rb",
24
- "lib/generators/mapfish/print_controller/templates/config.yaml",
25
- "lib/generators/mapfish/print_controller/templates/controller.rb",
26
- "lib/generators/mapfish/resource/USAGE",
27
- "lib/generators/mapfish/resource/resource_generator.rb",
28
- "lib/generators/mapfish/resource/templates/controller.rb",
29
- "lib/geojson.rb",
30
- "lib/mapfish.rb",
31
- "lib/mapfish_core_extensions/active_record/base.rb",
32
- "lib/mapfish_core_extensions/array.rb",
33
- "lib/print.rb",
34
- "lib/tasks/mapfish_tasks.rake",
35
- "mapfish.gemspec",
36
- "print/print-standalone.jar",
37
- "test/geojson_test.rb",
38
- "uninstall.rb"
18
+ "README",
19
+ "Rakefile",
20
+ "VERSION",
21
+ "init.rb",
22
+ "install.rb",
23
+ "lib/generators/mapfish/print_controller/USAGE",
24
+ "lib/generators/mapfish/print_controller/print_controller_generator.rb",
25
+ "lib/generators/mapfish/print_controller/templates/config.yaml",
26
+ "lib/generators/mapfish/print_controller/templates/controller.rb",
27
+ "lib/generators/mapfish/resource/USAGE",
28
+ "lib/generators/mapfish/resource/resource_generator.rb",
29
+ "lib/generators/mapfish/resource/templates/controller.rb",
30
+ "lib/geojson.rb",
31
+ "lib/mapfish.rb",
32
+ "lib/mapfish_core_extensions/active_record/base.rb",
33
+ "lib/mapfish_core_extensions/array.rb",
34
+ "lib/print.rb",
35
+ "lib/tasks/mapfish_tasks.rake",
36
+ "mapfish.gemspec",
37
+ "print/print-standalone.jar",
38
+ "test/geojson_test.rb",
39
+ "uninstall.rb"
39
40
  ]
40
41
  s.homepage = %q{http://mapfish.org/doc/implementations/rails.html}
41
- s.rdoc_options = ["--charset=UTF-8"]
42
42
  s.require_paths = ["lib"]
43
43
  s.rubygems_version = %q{1.3.7}
44
44
  s.summary = %q{Mapfish server plugin for Ruby on Rails}
@@ -10,8 +10,7 @@ class GeojsonTest < Test::Unit::TestCase
10
10
  def check_geom(geojson, expected)
11
11
  geom=Geometry.from_geojson(geojson)
12
12
  assert_equal(expected, geom)
13
- assert_equal(JSON::decode(geojson),
14
- JSON::decode(geom.to_json))
13
+ assert_equal(JSON::decode(geojson), JSON::decode(geom.to_json))
15
14
  end
16
15
 
17
16
  def test_point_from_hash
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mapfish
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 3
8
- - 5
9
- version: 1.3.5
9
+ - 6
10
+ version: 1.3.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Pirmin Kalberer
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-19 00:00:00 +02:00
18
+ date: 2011-07-07 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
@@ -38,6 +40,7 @@ dependencies:
38
40
  requirements:
39
41
  - - ">="
40
42
  - !ruby/object:Gem::Version
43
+ hash: 3
41
44
  segments:
42
45
  - 0
43
46
  version: "0"
@@ -51,6 +54,7 @@ dependencies:
51
54
  requirements:
52
55
  - - ">="
53
56
  - !ruby/object:Gem::Version
57
+ hash: 19
54
58
  segments:
55
59
  - 0
56
60
  - 1
@@ -67,6 +71,7 @@ extensions: []
67
71
  extra_rdoc_files: []
68
72
 
69
73
  files:
74
+ - .gitignore
70
75
  - COPYING.LESSER
71
76
  - README
72
77
  - Rakefile
@@ -95,8 +100,8 @@ homepage: http://mapfish.org/doc/implementations/rails.html
95
100
  licenses: []
96
101
 
97
102
  post_install_message:
98
- rdoc_options:
99
- - --charset=UTF-8
103
+ rdoc_options: []
104
+
100
105
  require_paths:
101
106
  - lib
102
107
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -104,6 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
109
  requirements:
105
110
  - - ">="
106
111
  - !ruby/object:Gem::Version
112
+ hash: 3
107
113
  segments:
108
114
  - 0
109
115
  version: "0"
@@ -112,6 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
118
  requirements:
113
119
  - - ">="
114
120
  - !ruby/object:Gem::Version
121
+ hash: 3
115
122
  segments:
116
123
  - 0
117
124
  version: "0"