alexrabarts-term_extraction 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/term_extraction/yahoo.rb +6 -1
- data/lib/term_extraction/zemanta.rb +6 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -41,7 +41,12 @@ class TermExtraction
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def remote_xml
|
44
|
-
|
44
|
+
begin
|
45
|
+
Net::HTTP.post_form(uri, post_params).body
|
46
|
+
rescue => e
|
47
|
+
$stderr.puts "Couldn't fetch from API: #{e.message}" if $VERBOSE
|
48
|
+
nil
|
49
|
+
end
|
45
50
|
end
|
46
51
|
end
|
47
52
|
end
|