shp2geocouch 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/bin/shp2geocouch CHANGED
@@ -13,6 +13,7 @@ class ShapefileToGeoCouch
13
13
  set_accessors(options)
14
14
  @uri = parse_database_url
15
15
  @db = CouchRest.database! @database_url
16
+ @geocouch_utils = "http://max.iriscouch.com/apps"
16
17
  verify_dependencies
17
18
  convert
18
19
  upload
@@ -106,10 +107,10 @@ class ShapefileToGeoCouch
106
107
  def add_ddoc
107
108
  puts "Replicating http://github.com/maxogden/geocouch-utils..." if @verbose
108
109
  view_exists = @db.get('_design/geo') rescue false
109
- internet_connection = HTTParty.get('http://localhost:5984') rescue false
110
+ internet_connection = HTTParty.get(@geocouch_utils) rescue false
110
111
  if !view_exists && internet_connection
111
112
  resp = HTTParty.post(couch_url + '/_replicate',
112
- :body => '{"source":"http://localhost:5984/catmapper","target":"' + @name + '", "doc_ids":["_design/geo"]}',
113
+ :body => '{"source":' + @geocouch_utils + ',"target":"' + @name + '", "doc_ids":["_design/geo"]}',
113
114
  :headers => {'content-type' => "application/json"}
114
115
  )
115
116
  resp = JSON.parse(resp)
Binary file
data/shp2geocouch.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shp2geocouch}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Max Ogden"]
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "bin/shp2geocouch",
27
- "pkg/shp2geocouch-0.0.5.gem",
27
+ "pkg/shp2geocouch-0.0.6.gem",
28
28
  "shp2geocouch.gemspec"
29
29
  ]
30
30
  s.homepage = %q{http://github.com/maxogden/shp2geocouch}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shp2geocouch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Max Ogden
@@ -61,7 +61,7 @@ files:
61
61
  - Rakefile
62
62
  - VERSION
63
63
  - bin/shp2geocouch
64
- - pkg/shp2geocouch-0.0.5.gem
64
+ - pkg/shp2geocouch-0.0.6.gem
65
65
  - shp2geocouch.gemspec
66
66
  has_rdoc: true
67
67
  homepage: http://github.com/maxogden/shp2geocouch
Binary file