Kill trailing whitespace in ruby files

This commit is contained in:
小太
2013-03-19 23:10:10 +11:00
parent c107f96cec
commit cba839ba76
319 changed files with 2710 additions and 2710 deletions

View File

@@ -8,7 +8,7 @@ module Sources
def site_name
"Nico Seiga"
end
def unique_id
profile_url =~ /\/illust\/(\d+)/
"nicoseiga" + $1
@@ -21,9 +21,9 @@ module Sources
@tags = get_tags_from_page(page)
end
end
protected
def get_profile_from_page(page)
links = page.search("div.illust_user_name a")
@@ -34,10 +34,10 @@ module Sources
profile_url = nil
artist_name = nil
end
return [artist_name, profile_url].compact
end
def get_image_url_from_page(page)
links = page.search("a#illust_link")
@@ -47,7 +47,7 @@ module Sources
nil
end
end
def get_tags_from_page(page)
links = page.search("div#tag_block nobr a.tag")
@@ -55,7 +55,7 @@ module Sources
[node.text, "http://seiga.nicovideo.jp" + node.attr("href")]
end
end
def agent
@agent ||= begin
mech = Mechanize.new