buzz_feed 0.1.8 → 0.1.9

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.
@@ -1,3 +1,6 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+
1
4
  module BuzzFeed
2
5
  module Client
3
6
 
@@ -40,7 +43,8 @@ module BuzzFeed
40
43
 
41
44
  def self.read_blogspot(url)
42
45
  data = []
43
- xml = Nokogiri::XML(open(url)).remove_namespaces!
46
+ urlsrc = Net::HTTP.get URI.parse(url)
47
+ xml = Nokogiri::XML(urlsrc).remove_namespaces!
44
48
  xml.xpath('//feed/entry').each do |item|
45
49
  id = item.xpath('id').text
46
50
  title = item.xpath('title').text.strip
@@ -2,7 +2,7 @@ module BuzzFeed
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 8
5
+ TINY = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buzz_feed
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kristijan Sedlak