piplcollector 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/piplcollector.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f54a8baf7137dd70c1812b43fed5843fd15337
|
4
|
+
data.tar.gz: 59ddfce16cd8f771298e8cae19bf48cd7839b112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db0caa285e7d5a407e09fc0d1f5dc728ad5b57f80c74ecac83a945d0220ee30e31a002016167e2932035c49e3f37068176006eee67c5d940395089c51fd15f4d
|
7
|
+
data.tar.gz: da350ac438dc4453c9ebdf77ed652060d58934c89313b0a82e56ccd489a8ed11f7105b5dd1366e51038bcac4ff1660a1e89fb019e8befe9a0893621704ca01e6
|
data/lib/piplcollector.rb
CHANGED
@@ -3,13 +3,14 @@ require 'json'
|
|
3
3
|
require 'pry'
|
4
4
|
|
5
5
|
class PiplCollector
|
6
|
-
def initialize(input_dir, output_dir, output_append_dir, id_field, ignore_files, api_key, field_mapping)
|
6
|
+
def initialize(input_dir, output_dir, output_append_dir, id_field, ignore_files, api_key, field_mapping, geocoder_api_key)
|
7
7
|
@input_dir = input_dir
|
8
8
|
@output_dir = output_dir
|
9
9
|
@output_append_dir = output_append_dir
|
10
10
|
@id_field = id_field
|
11
11
|
@ignore_files = ignore_files
|
12
12
|
@api_key = api_key
|
13
|
+
@geocoder_api_key = geocoder_api_key
|
13
14
|
@field_mapping = field_mapping
|
14
15
|
@already_collected = load_output_files
|
15
16
|
end
|
@@ -49,7 +50,7 @@ class PiplCollector
|
|
49
50
|
sleep(1)
|
50
51
|
|
51
52
|
# Get data from Pipl
|
52
|
-
p = PiplRequest.new(@api_key, @field_mapping)
|
53
|
+
p = PiplRequest.new(@api_key, @field_mapping, @geocoder_api_key)
|
53
54
|
output = p.get_data(data_item)
|
54
55
|
|
55
56
|
# Handle output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piplcollector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. C. McGrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Gets data from Pipl for dir of files
|
14
14
|
email: shidash@shidash.com
|