lib/inochi/rake.rb in inochi-1.1.0 vs lib/inochi/rake.rb in inochi-1.1.1

- old
+ new

@@ -111,11 +111,11 @@ program_file = first_caller_file program_home = File.dirname(program_file) # load the project module program_name = File.basename(program_home) - project_libs = File.join('lib', program_name) + project_libs = File.join(program_home, 'lib', program_name) require project_libs project_module = fetch_project_module(project_symbol) # supply default options @@ -534,11 +534,11 @@ file ann_feed_dst => doc_man_deps do require 'time' require 'rss/maker' - feed = RSS::Maker.make('2.0') do |feed| + rss = RSS::Maker.make('2.0') do |feed| feed.channel.title = ann_project feed.channel.link = project_module::WEBSITE feed.channel.description = project_module::TAGLINE Rake::Task[:ann_rel_doc].invoke @@ -549,11 +549,11 @@ item.link = project_module::DOCSITE + '#' + ann_rel_doc.here_frag item.date = Time.parse(item.title) item.description = ann_html end - File.write ann_feed_dst, feed + File.write ann_feed_dst, rss end CLOBBER.include ann_feed_dst # plain text @@ -740,10 +740,10 @@ # check if this release was already announced require 'mechanize' www = WWW::Mechanize.new page = www.get "http://rubyforge.org/news/?group_id=#{group_id}" - posts = (page/'//a[starts-with(./@href, "/forum/forum.php?forum_id=")]/text()').map {|e| e.to_s.gsub("\302\240", '').strip } + posts = (page/'//a[starts-with(./@href, "/forum/forum.php?forum_id=")]/text()').map {|e| e.to_s.strip } already_announced = posts.include? ann_subject if already_announced warn 'This release was already announced to RubyForge news, so I will NOT announce it there again.'