This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% random_number = (rand * 100000000000).to_i %> | |
<!-- ARTICLES --> | |
<% @mailer.articles.each_with_index do |article, index| %> | |
<%= render :partial => 'mailers/email/cultpubs/activate_article', :locals => {:article => article} -%> | |
<!-- AD UNIT --> | |
<tr> | |
<td> | |
<a name="axt2" xt="SPNOTRACK" href="http://ad.doubleclick.net/jump/k.site107.tmus/mailer;pos=<%= index + 1 %>;sz=590x80;dcove=r;ord=<%= random_number %>" target="_new"><img style="display:block;border-top:2px solid #000000; border-bottom:2px solid #000000; padding: 3px 0; margin-bottom:3px;" name="i30" src="http://ad.doubleclick.net/ad/k.site107.tmus/mailer;pos=3;sz=590x80;dcove=r;ord=123456789?" width="590" height="80" border="0" alt=""></a> | |
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
GITHUB = "http://github.com/" | |
FOLLOWER_COUNT_SELECTOR = '#repo_sub_menu li:nth-of-type(1)' | |
PROJECT_SELECTOR = 'li.project .title b a' | |
class String | |
def parse_int |