endi_feed 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +7 -0
- data/lib/endi_feed/util.rb +4 -2
- data/lib/endi_feed/version.rb +1 -1
- metadata +3 -3
data/Changelog.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# EndiFeed Changelog
|
2
2
|
|
3
|
+
## 0.0.3
|
4
|
+
|
5
|
+
Released August 3, 2013 ([0.0.2](https://github.com/jonahoffline/endi_feed/tree/v0.0.3)).
|
6
|
+
|
7
|
+
* Update EndiFeed::Util.parse_feed method to accept URL.
|
8
|
+
* Update version to 0.0.3
|
9
|
+
|
3
10
|
## 0.0.2
|
4
11
|
|
5
12
|
Released July 16, 2013 ([0.0.2](https://github.com/jonahoffline/endi_feed/tree/v0.0.2)).
|
data/lib/endi_feed/util.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'uri'
|
2
3
|
require 'rss'
|
3
4
|
require 'time'
|
@@ -12,9 +13,10 @@ module EndiFeed
|
|
12
13
|
module_function
|
13
14
|
|
14
15
|
# Fetches and parses RSS feed
|
16
|
+
# @param [String] url to parse
|
15
17
|
# @return [RSS] parsed XML feed or nil
|
16
|
-
def parse_feed
|
17
|
-
open(
|
18
|
+
def parse_feed(url = 'http://www.elnuevodia.com/rss/noticias.xml')
|
19
|
+
open(url) do |rss|
|
18
20
|
RSS::Parser.parse(rss)
|
19
21
|
end
|
20
22
|
end
|
data/lib/endi_feed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: endi_feed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: link_shrink
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash: -
|
194
|
+
hash: -3125964423663139480
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
197
|
rubygems_version: 1.8.25
|