rgeoserver 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbc6202dfea95c8595273fa6271570e6c285cb45
4
- data.tar.gz: 17b2882f0b708331f206c9439aebf0c568cdbdfe
3
+ metadata.gz: c734e56f5c59d071e943b75c88a6858f9702bfa4
4
+ data.tar.gz: 497738106e62ae7875c6dd6396ce395d0bf79ac8
5
5
  SHA512:
6
- metadata.gz: 391648e97543aedd8b91f26b772a5ef0e1b095824cc4c5a7e93c59c4dd2f39af1ada2831062a84805d13d2675efe666c0485a4021b6056e52d3059605182d6d3
7
- data.tar.gz: 06ed0b4e4fe7be8aa21cde3cc68e00feff4d0b86b24369acc4da0488b0e9ea1518fc084d9fa8631353f48b74c625242dfd2335d48c2dc7b06bef9b4074552db6
6
+ metadata.gz: 0db5305c827e8fe95cc4f200aa7e01445fe0460f85412996dbdc64be43361bd0b6de9bd21d8188a08a7bb886e967adaa3dab7ece2828903595f449368a8abe57
7
+ data.tar.gz: 6ef916c5bdbcf137f328e6d4ad30672c2be9e0ea017af2a7347bb0dc96bc893b42f9723ce2e21d8910851f3a2f6aa662ec364ba5a8b185131e2fc9d6e3d2f303
data/.gitignore CHANGED
@@ -10,3 +10,4 @@ doc
10
10
  .swp
11
11
  .swo
12
12
  *.log
13
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -1,6 +1,9 @@
1
+ notifications:
2
+ email: false
3
+
1
4
  language: ruby
2
5
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
6
  - 1.9.3
6
- script: bundle exec rspec spec/functional/*_spec.rb
7
+ - 2.0.0
8
+ - 2.1.6
9
+ - 2.2.2
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/README.rdoc CHANGED
@@ -1,10 +1,12 @@
1
+ {<img src="https://travis-ci.org/sul-dlss/rgeoserver.svg" alt="Build Status" />}[https://travis-ci.org/sul-dlss/rgeoserver]
2
+
1
3
  == RGeoServer
2
4
 
3
5
  RGeoServer is a Ruby client for the GeoServer RESTful Configuration interface.
4
6
 
5
7
  Requirements:
6
8
  * {GeoServer}[http://geoserver.org] 2.1.3 or later.
7
- * Ruby 1.9.3
9
+ * Ruby 1.9.3 or later
8
10
 
9
11
  It provides primitive Ruby model abstraction.
10
12
 
@@ -79,17 +81,15 @@ See *examples* directory for more examples.
79
81
 
80
82
  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:
81
83
 
82
- $ rake integration
83
-
84
84
  If you have the test instance running already on port 8080, you can run the tests simply with:
85
85
 
86
- $ rake
86
+ $ rake spec:integration
87
87
 
88
88
  To generate the documentation run:
89
89
 
90
90
  $ rake yard
91
91
 
92
- To enter into an irb console with all classes loaded:
92
+ To enter into an Pry console with all classes loaded:
93
93
 
94
94
  $ rake console
95
95
 
data/Rakefile CHANGED
@@ -13,40 +13,63 @@ end
13
13
 
14
14
  # Get your spec rake tasks working in RSpec 2.0
15
15
 
16
- require 'rspec/core/rake_task'
16
+ begin
17
+ require 'rspec/core/rake_task'
17
18
 
18
- desc 'Default: run specs.'
19
- task :default => :spec
19
+ namespace :spec do
20
+ desc 'Run unit tests'
21
+ RSpec::Core::RakeTask.new(:unit) do |t|
22
+ t.pattern = 'spec/unit/**/*_spec.rb'
23
+ end
20
24
 
21
- desc "Run specs"
22
- RSpec::Core::RakeTask.new do |t|
23
- # Put spec opts in a file named .rspec in root
24
- end
25
+ desc 'Run functional tests which requires GeoServer running'
26
+ RSpec::Core::RakeTask.new(:functional) do |t|
27
+ t.pattern = 'spec/functional/**/*_spec.rb'
28
+ end
25
29
 
26
- require 'yard'
27
- YARD::Rake::YardocTask.new do |t|
28
- t.options = ["--readme", "README.rdoc"]
29
- end
30
+ desc 'Run integration tests which requires GeoServer running'
31
+ RSpec::Core::RakeTask.new(:integration) do |t|
32
+ t.pattern = 'spec/integration/**/*_spec.rb'
33
+ end
30
34
 
31
- desc "Open an irb session preloaded with this library"
32
- task :console do
33
- sh "irb --simple-prompt -rubygems -I lib -r rgeoserver.rb"
34
- end
35
+ # desc 'Run integration tests which requires GeoServer running and preloaded'
36
+ # RSpec::Core::RakeTask.new(:integration, :jetty_home, :jetty_port, :java_opts) do |t, args|
37
+ # t.pattern = 'spec/integration/**/*_spec.rb'
38
+ # require 'jettywrapper'
39
+ # jetty_params = {
40
+ # :jetty_home => args.jetty_home,
41
+ # :java_opts => [args.java_opts],
42
+ # :jetty_port => args.jetty_port,
43
+ # :quiet => true,
44
+ # :startup_wait => 20
45
+ # }
46
+ #
47
+ # fail if Jettywrapper.wrap(jetty_params) do
48
+ # Rake::Task['spec:integration'].invoke
49
+ # end
50
+ # end
51
+ end
35
52
 
36
- desc "Execute integration tests"
37
- task :integration, :jetty_home, :jetty_port, :java_opts do |t, args|
53
+ desc 'Run all tests'
54
+ task :spec => [ 'spec:unit', 'spec:functional', 'spec:integration' ]
38
55
 
39
- require 'jettywrapper'
40
- jetty_params = {
41
- :jetty_home => args.jetty_home,
42
- :java_opts => [args.java_opts],
43
- :jetty_port => args.jetty_port,
44
- :quiet => true,
45
- :startup_wait => 20
46
- }
56
+ task :default => 'spec:unit'
57
+ rescue LoadError
58
+ end
59
+
60
+ begin
61
+ require 'yard'
62
+ YARD::Rake::YardocTask.new do |t|
63
+ t.options = ["--readme", "README.rdoc"]
64
+ end
65
+ rescue LoadError
66
+ end
47
67
 
48
- error = Jettywrapper.wrap(jetty_params) do
49
- Rake::Task['spec'].invoke
68
+ desc "Open an pry session preloaded with this library"
69
+ task :console do
70
+ begin
71
+ require 'pry'
72
+ sh 'pry -I lib -r rgeoserver'
73
+ rescue LoadError
50
74
  end
51
- raise "test failures: #{error}" if error
52
75
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.8
1
+ 0.7.9
data/rgeoserver.gemspec CHANGED
@@ -1,44 +1,37 @@
1
- require File.join(File.dirname(__FILE__), "lib/rgeoserver/version")
1
+ require File.join(File.dirname(__FILE__), 'lib/rgeoserver/version')
2
2
  Gem::Specification.new do |s|
3
- s.name = "rgeoserver"
3
+ s.name = 'rgeoserver'
4
4
  s.version = RGeoServer::VERSION
5
5
  s.platform = Gem::Platform::RUBY
6
- s.required_ruby_version = ">= 1.9.3"
7
- s.authors = ["Renzo Sanchez-Silva", "Bess Sadler", "Darren Hardy"]
8
- s.email = ["drh@stanford.edu"]
9
- s.summary = %q{GeoServer REST API Ruby library }
10
- s.description = %q{GeoServer REST API Ruby library : Requires GeoServer 2.1.3+}
11
- s.homepage = "http://github.com/sul-dlss/rgeoserver"
6
+ s.required_ruby_version = '>= 1.9.3'
7
+ s.authors = ['Renzo Sanchez-Silva', 'Bess Sadler', 'Darren Hardy']
8
+ s.email = ['drh@stanford.edu']
9
+ s.summary = 'GeoServer REST API Ruby library'
10
+ s.description = 'GeoServer REST API Ruby library'
11
+ s.homepage = 'http://github.com/sul-dlss/rgeoserver'
12
12
  s.has_rdoc = true
13
13
  s.licenses = ['ALv2', 'Stanford University Libraries']
14
-
15
14
 
16
15
  s.files = `git ls-files`.split("\n")
17
16
  s.test_files = `git ls-files -- {examples,spec}/*`.split("\n")
18
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
18
+ s.require_paths = ['lib']
20
19
 
21
- s.add_dependency "activemodel", "~> 3.2.0"
22
- s.add_dependency "activesupport", "~> 3.2.0"
23
- s.add_dependency "confstruct", "~> 0.2.0"
24
- s.add_dependency "mime-types", "~> 2.0"
25
- s.add_dependency "nokogiri", "~> 1.6.0"
26
- s.add_dependency "rest-client", "~> 1.6.0"
27
- s.add_dependency "rgeo", "~> 0.3.0"
28
- s.add_dependency "rgeo-shapefile", "~> 0.2.0"
29
- s.add_dependency "rubyzip", "~> 0.9.0"
20
+ s.add_dependency 'activemodel', '~> 3.2.0'
21
+ s.add_dependency 'activesupport', '~> 3.2.0'
22
+ s.add_dependency 'confstruct', '~> 0.2.0'
23
+ s.add_dependency 'nokogiri', '~> 1.6.0'
24
+ s.add_dependency 'rest-client', '~> 1.6.0'
25
+ s.add_dependency 'rgeo', '~> 0.3.0'
26
+ s.add_dependency 'rgeo-shapefile', '~> 0.2.0'
27
+ s.add_dependency 'rubyzip', '~> 0.9.0'
30
28
 
31
- s.add_development_dependency("awesome_print")
32
- s.add_development_dependency("bundler", "~> 1.0")
33
- s.add_development_dependency("debugger", "~> 1.0")
34
- s.add_development_dependency("equivalent-xml")
35
- s.add_development_dependency("irbtools")
36
- s.add_development_dependency("jettywrapper")
37
- s.add_development_dependency("pry")
38
- s.add_development_dependency("rake")
39
- s.add_development_dependency("rspec")
40
- s.add_development_dependency("shoulda")
41
- # s.add_development_dependency("version_bumper", "~> 0.4.0")
42
- s.add_development_dependency("yard")
43
-
29
+ s.add_development_dependency 'bundler'
30
+ s.add_development_dependency 'equivalent-xml'
31
+ s.add_development_dependency 'jettywrapper'
32
+ s.add_development_dependency 'pry'
33
+ s.add_development_dependency 'rake'
34
+ s.add_development_dependency 'rspec'
35
+ s.add_development_dependency 'version_bumper'
36
+ s.add_development_dependency 'yard'
44
37
  end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe RGeoServer::Catalog do
4
+ subject {
5
+ described_class.new
6
+ }
7
+ it 'responds to API' do
8
+ %w(
9
+ each_layer
10
+ get_coverage
11
+ get_coverage_store
12
+ get_coverage_stores
13
+ get_data_store
14
+ get_data_stores
15
+ get_default_namespace
16
+ get_default_workspace
17
+ get_layer
18
+ get_layergroup
19
+ get_layergroups
20
+ get_style
21
+ get_styles
22
+ get_wms_store
23
+ get_wms_stores
24
+ get_workspace
25
+ get_workspaces
26
+ headers
27
+ reload
28
+ reset
29
+ set_default_workspace
30
+ ).map(&:to_sym).each do |m|
31
+ expect {
32
+ fail "API is missing: #{m}" unless subject.respond_to?(m)
33
+ }.not_to raise_error
34
+ end
35
+ end
36
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeoserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renzo Sanchez-Silva
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-18 00:00:00.000000000 Z
13
+ date: 2015-07-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -54,20 +54,6 @@ dependencies:
54
54
  - - ~>
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.2.0
57
- - !ruby/object:Gem::Dependency
58
- name: mime-types
59
- requirement: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ~>
62
- - !ruby/object:Gem::Version
63
- version: '2.0'
64
- type: :runtime
65
- prerelease: false
66
- version_requirements: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - ~>
69
- - !ruby/object:Gem::Version
70
- version: '2.0'
71
57
  - !ruby/object:Gem::Dependency
72
58
  name: nokogiri
73
59
  requirement: !ruby/object:Gem::Requirement
@@ -138,50 +124,8 @@ dependencies:
138
124
  - - ~>
139
125
  - !ruby/object:Gem::Version
140
126
  version: 0.9.0
141
- - !ruby/object:Gem::Dependency
142
- name: awesome_print
143
- requirement: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - '>='
146
- - !ruby/object:Gem::Version
147
- version: '0'
148
- type: :development
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - '>='
153
- - !ruby/object:Gem::Version
154
- version: '0'
155
127
  - !ruby/object:Gem::Dependency
156
128
  name: bundler
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - ~>
160
- - !ruby/object:Gem::Version
161
- version: '1.0'
162
- type: :development
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - ~>
167
- - !ruby/object:Gem::Version
168
- version: '1.0'
169
- - !ruby/object:Gem::Dependency
170
- name: debugger
171
- requirement: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - ~>
174
- - !ruby/object:Gem::Version
175
- version: '1.0'
176
- type: :development
177
- prerelease: false
178
- version_requirements: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - ~>
181
- - !ruby/object:Gem::Version
182
- version: '1.0'
183
- - !ruby/object:Gem::Dependency
184
- name: equivalent-xml
185
129
  requirement: !ruby/object:Gem::Requirement
186
130
  requirements:
187
131
  - - '>='
@@ -195,7 +139,7 @@ dependencies:
195
139
  - !ruby/object:Gem::Version
196
140
  version: '0'
197
141
  - !ruby/object:Gem::Dependency
198
- name: irbtools
142
+ name: equivalent-xml
199
143
  requirement: !ruby/object:Gem::Requirement
200
144
  requirements:
201
145
  - - '>='
@@ -265,7 +209,7 @@ dependencies:
265
209
  - !ruby/object:Gem::Version
266
210
  version: '0'
267
211
  - !ruby/object:Gem::Dependency
268
- name: shoulda
212
+ name: version_bumper
269
213
  requirement: !ruby/object:Gem::Requirement
270
214
  requirements:
271
215
  - - '>='
@@ -292,7 +236,7 @@ dependencies:
292
236
  - - '>='
293
237
  - !ruby/object:Gem::Version
294
238
  version: '0'
295
- description: 'GeoServer REST API Ruby library : Requires GeoServer 2.1.3+'
239
+ description: GeoServer REST API Ruby library
296
240
  email:
297
241
  - drh@stanford.edu
298
242
  executables:
@@ -304,7 +248,6 @@ files:
304
248
  - .rspec
305
249
  - .travis.yml
306
250
  - Gemfile
307
- - Gemfile.lock
308
251
  - README.rdoc
309
252
  - Rakefile
310
253
  - VERSION
@@ -361,6 +304,7 @@ files:
361
304
  - spec/functional/rest_api_client_spec.rb
362
305
  - spec/integration/geoserver_spec.rb
363
306
  - spec/spec_helper.rb
307
+ - spec/unit/catalog_spec.rb
364
308
  - spec/utils/boundingbox_spec.rb
365
309
  - spec/utils/shapefile_info_spec.rb
366
310
  homepage: http://github.com/sul-dlss/rgeoserver
@@ -419,6 +363,7 @@ test_files:
419
363
  - spec/functional/rest_api_client_spec.rb
420
364
  - spec/integration/geoserver_spec.rb
421
365
  - spec/spec_helper.rb
366
+ - spec/unit/catalog_spec.rb
422
367
  - spec/utils/boundingbox_spec.rb
423
368
  - spec/utils/shapefile_info_spec.rb
424
369
  has_rdoc: true
data/Gemfile.lock DELETED
@@ -1,147 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rgeoserver (0.7.6)
5
- activemodel (~> 3.2.0)
6
- activesupport (~> 3.2.0)
7
- confstruct (~> 0.2.0)
8
- mime-types (~> 2.0)
9
- nokogiri (~> 1.6.0)
10
- rest-client (~> 1.6.0)
11
- rgeo (~> 0.3.0)
12
- rgeo-shapefile (~> 0.2.0)
13
- rubyzip (~> 0.9.0)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activemodel (3.2.16)
19
- activesupport (= 3.2.16)
20
- builder (~> 3.0.0)
21
- activesupport (3.2.16)
22
- i18n (~> 0.6, >= 0.6.4)
23
- multi_json (~> 1.0)
24
- alias (0.2.3)
25
- awesome_print (1.2.0)
26
- binding.repl (0.8.0)
27
- boson (1.2.4)
28
- boson-more (0.2.2)
29
- boson (>= 1.2.0)
30
- builder (3.0.4)
31
- childprocess (0.3.9)
32
- ffi (~> 1.0, >= 1.0.11)
33
- clipboard (1.0.5)
34
- coderay (1.1.0)
35
- columnize (0.3.6)
36
- confstruct (0.2.5)
37
- dbf (2.0.7)
38
- fastercsv (~> 1.5.4)
39
- debugger (1.6.3)
40
- columnize (>= 0.3.1)
41
- debugger-linecache (~> 1.2.0)
42
- debugger-ruby_core_source (~> 1.2.4)
43
- debugger-linecache (1.2.0)
44
- debugger-ruby_core_source (1.2.4)
45
- diff-lcs (1.2.5)
46
- equivalent-xml (0.4.0)
47
- nokogiri (>= 1.4.3)
48
- every_day_irb (1.5.1)
49
- fancy_irb (0.7.3)
50
- paint (>= 0.8.1)
51
- unicode-display_width (>= 0.1.1)
52
- fastercsv (1.5.5)
53
- ffi (1.9.3)
54
- g (1.7.2)
55
- hirb (0.7.1)
56
- i18n (0.6.9)
57
- interactive_editor (0.0.10)
58
- spoon (>= 0.0.1)
59
- irbtools (1.5.1)
60
- alias (~> 0.2.3)
61
- awesome_print (~> 1.2.0)
62
- binding.repl (>= 0.7.0)
63
- boson (~> 1.2.4)
64
- boson-more (~> 0.2.2)
65
- clipboard (~> 1.0.5)
66
- coderay (~> 1.1.0)
67
- every_day_irb (>= 1.5.1)
68
- fancy_irb (>= 0.7.3)
69
- g (>= 1.7.2)
70
- hirb (~> 0.7.1)
71
- interactive_editor (>= 0.0.10)
72
- method_locator (>= 0.0.4)
73
- method_source (>= 0.8.2)
74
- methodfinder (>= 1.2.5)
75
- ori (~> 0.1.0)
76
- paint (>= 0.8.6)
77
- wirb (>= 1.0.2)
78
- zucker (>= 13.1)
79
- jettywrapper (1.5.0)
80
- activesupport (>= 3.0.0)
81
- childprocess
82
- i18n
83
- logger
84
- mediashelf-loggable
85
- logger (1.2.8)
86
- mediashelf-loggable (0.4.9)
87
- method_locator (0.0.4)
88
- method_source (0.8.2)
89
- methodfinder (2.0.0)
90
- mime-types (2.0)
91
- mini_portile (0.5.2)
92
- multi_json (1.8.2)
93
- nokogiri (1.6.1)
94
- mini_portile (~> 0.5.0)
95
- ori (0.1.0)
96
- paint (0.8.6)
97
- pry (0.9.12.4)
98
- coderay (~> 1.0)
99
- method_source (~> 0.8)
100
- slop (~> 3.4)
101
- rake (10.1.0)
102
- rest-client (1.6.7)
103
- mime-types (>= 1.16)
104
- rgeo (0.3.20)
105
- rgeo-shapefile (0.2.3)
106
- dbf (>= 1.7.0)
107
- rgeo (>= 0.3.3)
108
- rspec (2.14.1)
109
- rspec-core (~> 2.14.0)
110
- rspec-expectations (~> 2.14.0)
111
- rspec-mocks (~> 2.14.0)
112
- rspec-core (2.14.7)
113
- rspec-expectations (2.14.4)
114
- diff-lcs (>= 1.1.3, < 2.0)
115
- rspec-mocks (2.14.4)
116
- rubyzip (0.9.9)
117
- shoulda (3.5.0)
118
- shoulda-context (~> 1.0, >= 1.0.1)
119
- shoulda-matchers (>= 1.4.1, < 3.0)
120
- shoulda-context (1.1.6)
121
- shoulda-matchers (2.4.0)
122
- activesupport (>= 3.0.0)
123
- slop (3.4.7)
124
- spoon (0.0.4)
125
- ffi
126
- unicode-display_width (0.1.1)
127
- wirb (1.0.2)
128
- paint
129
- yard (0.8.7.3)
130
- zucker (13.1)
131
-
132
- PLATFORMS
133
- ruby
134
-
135
- DEPENDENCIES
136
- awesome_print
137
- bundler (~> 1.0)
138
- debugger (~> 1.0)
139
- equivalent-xml
140
- irbtools
141
- jettywrapper
142
- pry
143
- rake
144
- rgeoserver!
145
- rspec
146
- shoulda
147
- yard