shp2geocouch 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/shp2geocouch +3 -2
- data/pkg/shp2geocouch-0.0.6.gem +0 -0
- data/shp2geocouch.gemspec +2 -2
- metadata +4 -4
- data/pkg/shp2geocouch-0.0.5.gem +0 -0
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
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(
|
|
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":
|
|
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.
|
|
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.
|
|
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
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.
|
|
64
|
+
- pkg/shp2geocouch-0.0.6.gem
|
|
65
65
|
- shp2geocouch.gemspec
|
|
66
66
|
has_rdoc: true
|
|
67
67
|
homepage: http://github.com/maxogden/shp2geocouch
|
data/pkg/shp2geocouch-0.0.5.gem
DELETED
|
Binary file
|