ero_getter 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ero_getter.gemspec +2 -2
- data/lib/downloader/nijigazou_sokuhou.rb +1 -1
- data/spec/downloader/nijigazou_sokuhou_spec.rb +3 -3
- data/spec/samples/nijigazou_sokuhou/first.html +1195 -880
- data/spec/samples/nijigazou_sokuhou/last.html +205 -527
- data/spec/samples/nijigazou_sokuhou/middle.html +1190 -871
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.8
|
data/ero_getter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ero_getter"
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["masarakki"]
|
12
|
-
s.date = "2012-07-
|
12
|
+
s.date = "2012-07-26"
|
13
13
|
s.description = "ero getter"
|
14
14
|
s.email = "masaki@hisme.net"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -2,7 +2,7 @@
|
|
2
2
|
class NijigazouSokuhou < EroGetter::Base
|
3
3
|
|
4
4
|
name '二次画像速報'
|
5
|
-
url %r{http://
|
5
|
+
url %r{http://nijigazo.2chblog.jp/archives/\d+.html}
|
6
6
|
|
7
7
|
target ".article-body-more > a > img" do |path|
|
8
8
|
path.parent[:href] if path.parent[:href] =~ /jpe?g|png|gif$/
|
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
4
|
describe NijigazouSokuhou do
|
5
|
-
let(:url) { 'http://
|
5
|
+
let(:url) { 'http://nijigazo.2chblog.jp/archives/52249806.html' }
|
6
6
|
subject { @dl = NijigazouSokuhou.new(url) }
|
7
7
|
|
8
8
|
before do
|
@@ -31,8 +31,8 @@ describe NijigazouSokuhou do
|
|
31
31
|
its("targets.count") { should == 50 }
|
32
32
|
its("targets.first") { should == "http://img03.nijigazo.com/2012/05/11/azusa/0511azusa_0051.jpg" }
|
33
33
|
its(:sub_directory) { should == 'azusa/20120511' }
|
34
|
-
its(:prev) { should == 'http://
|
35
|
-
its(:next) { should == 'http://
|
34
|
+
its(:prev) { should == 'http://nijigazo.2chblog.jp/archives/52249804.html' }
|
35
|
+
its(:next) { should == 'http://nijigazo.2chblog.jp/archives/52249808.html' }
|
36
36
|
end
|
37
37
|
|
38
38
|
context :last do
|