piplrequest 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/piplrequest.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f41d1247ccf24c4999ad7534a29bff822161820
|
4
|
+
data.tar.gz: 82c99485ae114e49b70e87768a9b7ee44f22a95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216ca9b240fd81b74f486559a1c9b77f257f966125aac770168bbfbb28bed7efd7f80e22f8bcdac37d6477ab0e9b43bcce9894b7d19cd80944a54067efab40d9
|
7
|
+
data.tar.gz: 579985a94cddc2c95799f7da0e94cc488a8a89a3c3ac1c86adabdd1a39ec8beb63208f05ddcab4194a53ce3d6ed27c3664c462329599cd8a0e58a33100a621cc
|
data/lib/piplrequest.rb
CHANGED
@@ -28,6 +28,7 @@ class PiplRequest
|
|
28
28
|
# Sends the request
|
29
29
|
def send_request(person)
|
30
30
|
response = Pipl::client.search person: person, pretty: true, hide_sponsored: true, show_sources: "all"
|
31
|
+
binding.pry
|
31
32
|
end
|
32
33
|
|
33
34
|
# Process the output
|
@@ -74,7 +75,8 @@ class PiplRequest
|
|
74
75
|
# Generate the name
|
75
76
|
def gen_name(data_item)
|
76
77
|
return Pipl::Name.new(first: clean_name(get_field_content(data_item, :name, :first)),
|
77
|
-
|
78
|
+
last: clean_name(get_field_content(data_item, :name, :last)),
|
79
|
+
raw: clean_name(get_field_content(data_item, :name, :raw)))
|
78
80
|
end
|
79
81
|
|
80
82
|
# Generate the URL
|
@@ -110,5 +112,3 @@ class PiplRequest
|
|
110
112
|
end
|
111
113
|
end
|
112
114
|
end
|
113
|
-
|
114
|
-
# TODO: Test with Indeed too!
|