Module: That
Constant Summary collapse
- BLOG_URL =
'http://geminstallthat.wordpress.com/feed/'- GEM_PATH =
File.join(*File.(__FILE__).split(File::Separator)[0..-3])
- FEED =
SimpleRSS.parse(open(BLOG_URL))
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
22 23 24 |
# File 'lib/that.rb', line 22 def build version_to_pubdate_mapping end |
#recent ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/that.rb', line 12 def recent FEED.items.each do |f| if f[:pubDate] >= (YAML.load_file(version_to_pubdate_filename)[current_version]) puts "#" * 30 puts f[:pubDate] puts f[:description] end end end |