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.
@@ -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)).
@@ -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('http://www.elnuevodia.com/rss/noticias.xml') do |rss|
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
@@ -1,3 +1,3 @@
1
1
  module EndiFeed
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-07-16 00:00:00.000000000 Z
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: -3619404315001140883
194
+ hash: -3125964423663139480
195
195
  requirements: []
196
196
  rubyforge_project:
197
197
  rubygems_version: 1.8.25