rgeoserver 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +30 -0
  2. data/VERSION +1 -1
  3. data/lib/rgeoserver.rb +1 -0
  4. metadata +116 -172
data/README.rdoc CHANGED
@@ -30,6 +30,36 @@ http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html
30
30
  > ft.profile
31
31
  => {:name=>"states", :workspace=>"topp", :nativeName=>"states"}
32
32
 
33
+ A full sample script creating coverage stores in a small cluster:
34
+
35
+ require 'rgeoserver'
36
+
37
+ layers = {
38
+ 'south_america_1787' => {
39
+ 'url' => 'file:///geo_data/rumsey/g0411047.tif',
40
+ 'description' => "Map of South America by D'Anville",
41
+ 'type' => 'GeoTIFF'
42
+ },
43
+ 'city_of_san_francisco_1859' => {
44
+ 'url' => 'file:///geo_data/rumsey/g1030000alpha.tif',
45
+ 'description' => 'Map of San Francisco by the U.S. Coast Survey, with detail of the unsettled lands',
46
+ 'type' => 'GeoTIFF'
47
+ }
48
+ }
49
+
50
+ (1..7).each do |cat_id|
51
+ cat = RGeoServer::Catalog.new :user=>'admin', :url => "http://geoserver-app#{cat_id}/rest", :password => "osgeo!"
52
+ ws = cat.get_workspace('cite')
53
+ RGeoServer::ResourceInfo.list(RGeoServer::CoverageStore, cat, layers.keys, :workspace => ws) do |cs|
54
+ cs.description = layers[cs.name]['description']
55
+ cs.url = layers[cs.name]['url']
56
+ cs.data_type = layers[cs.name]['type']
57
+ cs.enabled = 'true'
58
+ cs.save
59
+ end
60
+ end
61
+
62
+
33
63
  == Testing
34
64
  We use {jettywrapper}[https://github.com/projecthydra/jettywrapper] to wrap a test instance of GeoServer. In theory, you should be able to point to any other local installation. Suppose that you download the binary stable version 2.1.3 binary from {here}[http://sourceforge.net/project/downloading.php?groupname=geoserver&filename=geoserver-2.1.3-bin.zip&use_mirror=softlayer], then unzip it under say, /tmp/geoserver-2.1.3. The integration tests are executed as follows:
35
65
  > rake integration['/tmp/geoserver-2.1.3','8080','-DGEOSERVER_DATA_DIR=data_dir']
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
data/lib/rgeoserver.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'active_model'
2
2
  require 'yaml'
3
+ require 'confstruct'
3
4
 
4
5
  module RGeoServer
5
6
  autoload :Config, "rgeoserver/config"
metadata CHANGED
@@ -1,202 +1,155 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rgeoserver
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.4
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 3
10
- version: 0.5.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Renzo Sanchez-Silva
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-29 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rest-client
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2151853600 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: nokogiri
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2151853600
25
+ - !ruby/object:Gem::Dependency
26
+ name: nokogiri
27
+ requirement: &2151852040 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
46
33
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: mime-types
50
34
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2151852040
36
+ - !ruby/object:Gem::Dependency
37
+ name: mime-types
38
+ requirement: &2151850600 !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
60
44
  type: :runtime
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: activesupport
64
45
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2151850600
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: &2151849080 !ruby/object:Gem::Requirement
66
50
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
74
55
  type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: activemodel
78
56
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2151849080
58
+ - !ruby/object:Gem::Dependency
59
+ name: activemodel
60
+ requirement: &2151847820 !ruby/object:Gem::Requirement
80
61
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
88
66
  type: :runtime
89
- version_requirements: *id005
90
- - !ruby/object:Gem::Dependency
91
- name: confstruct
92
67
  prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2151847820
69
+ - !ruby/object:Gem::Dependency
70
+ name: confstruct
71
+ requirement: &2151846960 !ruby/object:Gem::Requirement
94
72
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 3
99
- segments:
100
- - 0
101
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
102
77
  type: :runtime
103
- version_requirements: *id006
104
- - !ruby/object:Gem::Dependency
105
- name: rake
106
78
  prerelease: false
107
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *2151846960
80
+ - !ruby/object:Gem::Dependency
81
+ name: rake
82
+ requirement: &2151862320 !ruby/object:Gem::Requirement
108
83
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
116
88
  type: :development
117
- version_requirements: *id007
118
- - !ruby/object:Gem::Dependency
119
- name: shoulda
120
89
  prerelease: false
121
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *2151862320
91
+ - !ruby/object:Gem::Dependency
92
+ name: shoulda
93
+ requirement: &2151861320 !ruby/object:Gem::Requirement
122
94
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 3
127
- segments:
128
- - 0
129
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
130
99
  type: :development
131
- version_requirements: *id008
132
- - !ruby/object:Gem::Dependency
133
- name: bundler
134
100
  prerelease: false
135
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *2151861320
102
+ - !ruby/object:Gem::Dependency
103
+ name: bundler
104
+ requirement: &2151859920 !ruby/object:Gem::Requirement
136
105
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 11
141
- segments:
142
- - 1
143
- - 0
144
- - 14
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
145
109
  version: 1.0.14
146
110
  type: :development
147
- version_requirements: *id009
148
- - !ruby/object:Gem::Dependency
149
- name: rspec
150
111
  prerelease: false
151
- requirement: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *2151859920
113
+ - !ruby/object:Gem::Dependency
114
+ name: rspec
115
+ requirement: &2151858660 !ruby/object:Gem::Requirement
152
116
  none: false
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- hash: 3
157
- segments:
158
- - 0
159
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
160
121
  type: :development
161
- version_requirements: *id010
162
- - !ruby/object:Gem::Dependency
163
- name: yard
164
122
  prerelease: false
165
- requirement: &id011 !ruby/object:Gem::Requirement
123
+ version_requirements: *2151858660
124
+ - !ruby/object:Gem::Dependency
125
+ name: yard
126
+ requirement: &2151856760 !ruby/object:Gem::Requirement
166
127
  none: false
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- hash: 3
171
- segments:
172
- - 0
173
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
174
132
  type: :development
175
- version_requirements: *id011
176
- - !ruby/object:Gem::Dependency
177
- name: jettywrapper
178
133
  prerelease: false
179
- requirement: &id012 !ruby/object:Gem::Requirement
134
+ version_requirements: *2151856760
135
+ - !ruby/object:Gem::Dependency
136
+ name: jettywrapper
137
+ requirement: &2151855380 !ruby/object:Gem::Requirement
180
138
  none: false
181
- requirements:
182
- - - ">="
183
- - !ruby/object:Gem::Version
184
- hash: 3
185
- segments:
186
- - 0
187
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
188
143
  type: :development
189
- version_requirements: *id012
190
- description: "GeoServer REST API Ruby library : Requires GeoServer 2.1.3+"
191
- email:
144
+ prerelease: false
145
+ version_requirements: *2151855380
146
+ description: ! 'GeoServer REST API Ruby library : Requires GeoServer 2.1.3+'
147
+ email:
192
148
  - renzo.sanchez.silva@gmail.com
193
149
  executables: []
194
-
195
150
  extensions: []
196
-
197
151
  extra_rdoc_files: []
198
-
199
- files:
152
+ files:
200
153
  - .gitignore
201
154
  - Gemfile
202
155
  - README.rdoc
@@ -221,38 +174,29 @@ files:
221
174
  - spec/spec_helper.rb
222
175
  homepage: http://github.com/rnz0/rgeoserver
223
176
  licenses: []
224
-
225
177
  post_install_message:
226
178
  rdoc_options: []
227
-
228
- require_paths:
179
+ require_paths:
229
180
  - lib
230
- required_ruby_version: !ruby/object:Gem::Requirement
181
+ required_ruby_version: !ruby/object:Gem::Requirement
231
182
  none: false
232
- requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- hash: 3
236
- segments:
237
- - 0
238
- version: "0"
239
- required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ required_rubygems_version: !ruby/object:Gem::Requirement
240
188
  none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- hash: 3
245
- segments:
246
- - 0
247
- version: "0"
189
+ requirements:
190
+ - - ! '>='
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
248
193
  requirements: []
249
-
250
194
  rubyforge_project:
251
195
  rubygems_version: 1.8.10
252
196
  signing_key:
253
197
  specification_version: 3
254
198
  summary: GeoServer REST API ruby library
255
- test_files:
199
+ test_files:
256
200
  - spec/lib/integration_test_spec.rb
257
201
  - spec/spec_helper.rb
258
202
  has_rdoc: