citysdk 0.1.1.5 → 0.1.1.6

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: 22e5cabe4c99ab4905f9381289dbf2acad7bd081
4
- data.tar.gz: 522647ed6b7a85536fdb48530f0e756f91b2a8a3
3
+ metadata.gz: 4bfcffbf3d68ab140fcff49bef32b00b36267fce
4
+ data.tar.gz: c5d29f8b530f05f958ab7a381cd32f8d6c140f3d
5
5
  SHA512:
6
- metadata.gz: d24e53984b9342b10088c6a82f64ec96ce68c874acdcdca6dfdf274f633f4523b9581a64edabfbc26ebe251fa1c25da049494c0312bf8423508daa4f51d4a98f
7
- data.tar.gz: f46cfdedc451dd2c4321f9587122bb081e4ff543a4674fa7290e4ab4d07d3bf6a78364b50f216acb8a77a73420dd32e2f199f24d954c1f6a29c299466c83f303
6
+ metadata.gz: a2f13274d614ed901a5921813d3d43cd4c34cb4c80335880a78c9c5251fadf99a53b5b962528d837c808af3247f23b6adcacc7aba0f4a95a1165470d951aff3d
7
+ data.tar.gz: 9eb12eef8f05b1b9cd58ea1e7525ed3d5e04b5d471571b73f103c5bb4e7348292eeb4ed00b27ced26cc360cabb73b1459b5310502b16c61b8cd6cab4044a0a8b
@@ -148,10 +148,6 @@ module CitySDK
148
148
  sign_in
149
149
  if @params[:unique_id] and @params[:match] and (@params[:hasgeometry] != 'unknown')
150
150
 
151
- # puts ""
152
- # puts "doImport... 1"
153
- # puts ""
154
-
155
151
  match_tpl[:match][:params][:radius] = @params[:radius] || 200
156
152
  match_tpl[:match][:params][:geometry_type] = @params[:geometry_type] || :point
157
153
  @params[:match].each do |a|
@@ -165,10 +161,12 @@ module CitySDK
165
161
  :id => rec[:id]
166
162
  }
167
163
  node[:name] = rec[:properties][@params[:name]] if @params[:name]
168
- node[:data] = rec[:properties]
164
+ node[:data] = filterFields(rec[:properties])
169
165
 
170
166
  # puts JSON.pretty_generate(node)
171
167
 
168
+ yield(node) if block_given?
169
+
172
170
  @api.match_create_node(node) if not dryrun
173
171
  count -= 1
174
172
  end
@@ -188,10 +186,12 @@ module CitySDK
188
186
  :id => rec[:id]
189
187
  }
190
188
  node[:name] = rec[:properties][@params[:name]] if @params[:name]
191
- node[:data] = rec[:properties]
189
+ node[:data] = filterFields(rec[:properties])
192
190
 
193
191
  # puts JSON.pretty_generate(node)
194
192
 
193
+ yield(node) if block_given?
194
+
195
195
  @api.create_node(node) if not dryrun
196
196
  count -= 1
197
197
  end
data/lib/citysdk.rb CHANGED
@@ -4,6 +4,6 @@ require 'citysdk/file_reader.rb'
4
4
  require 'citysdk/importer.rb'
5
5
 
6
6
  module CitySDK
7
- VERSION = "0.1.1.5"
7
+ VERSION = "0.1.1.6"
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citysdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.5
4
+ version: 0.1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Demeyer