Module: That

Extended by:
That
Included in:
That
Defined in:
lib/that.rb

Constant Summary collapse

BLOG_URL =
'http://geminstallthat.wordpress.com/feed/'
GEM_PATH =
File.join(*File.expand_path(__FILE__).split(File::Separator)[0..-3])
FEED =
SimpleRSS.parse(open(BLOG_URL))

Instance Method Summary collapse

Instance Method Details

#buildObject



22
23
24
# File 'lib/that.rb', line 22

def build
  version_to_pubdate_mapping
end

#recentObject



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