ero_getter 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +4 -0
- data/Gemfile +2 -0
- data/VERSION +1 -1
- data/ero_getter.gemspec +9 -3
- data/lib/downloader/pm_style.rb +1 -1
- data/spec/downloader/pm_style_spec.rb +4 -4
- data/spec/samples/pm_style/test.html +751 -1007
- metadata +36 -4
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.2
|
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.6.
|
8
|
+
s.version = "1.6.2"
|
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 = "2013-02-
|
12
|
+
s.date = "2013-02-10"
|
13
13
|
s.description = "ero getter"
|
14
14
|
s.email = "masaki@hisme.net"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -73,7 +73,7 @@ Gem::Specification.new do |s|
|
|
73
73
|
s.homepage = "http://github.com/masarakki/ero_getter"
|
74
74
|
s.licenses = ["MIT"]
|
75
75
|
s.require_paths = ["lib"]
|
76
|
-
s.rubygems_version = "1.8.
|
76
|
+
s.rubygems_version = "1.8.25"
|
77
77
|
s.summary = "ero getter"
|
78
78
|
|
79
79
|
if s.respond_to? :specification_version then
|
@@ -90,6 +90,8 @@ Gem::Specification.new do |s|
|
|
90
90
|
s.add_development_dependency(%q<guard-spork>, [">= 0"])
|
91
91
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
92
92
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
93
|
+
s.add_development_dependency(%q<pry>, [">= 0"])
|
94
|
+
s.add_development_dependency(%q<pry-doc>, [">= 0"])
|
93
95
|
else
|
94
96
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
95
97
|
s.add_dependency(%q<httpclient>, [">= 0"])
|
@@ -101,6 +103,8 @@ Gem::Specification.new do |s|
|
|
101
103
|
s.add_dependency(%q<guard-spork>, [">= 0"])
|
102
104
|
s.add_dependency(%q<bundler>, [">= 0"])
|
103
105
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
106
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
107
|
+
s.add_dependency(%q<pry-doc>, [">= 0"])
|
104
108
|
end
|
105
109
|
else
|
106
110
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
@@ -113,6 +117,8 @@ Gem::Specification.new do |s|
|
|
113
117
|
s.add_dependency(%q<guard-spork>, [">= 0"])
|
114
118
|
s.add_dependency(%q<bundler>, [">= 0"])
|
115
119
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
120
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
121
|
+
s.add_dependency(%q<pry-doc>, [">= 0"])
|
116
122
|
end
|
117
123
|
end
|
118
124
|
|
data/lib/downloader/pm_style.rb
CHANGED
@@ -2,7 +2,7 @@ class PmStyle < EroGetter::Base
|
|
2
2
|
name 'PM Style'
|
3
3
|
url %r{http://mxserver08.net/new_pm/main/movie\d+.html}
|
4
4
|
target "a > img" do |path|
|
5
|
-
path.parent[:href] if path[:
|
5
|
+
path.parent[:href] if path.parent[:href] =~ /file=.+\.zip$/
|
6
6
|
end
|
7
7
|
sub_directory do
|
8
8
|
matches = targets.first.match(/pm_(.+?)(\d+)[a|b|c].zip$/)
|
@@ -10,10 +10,10 @@ describe PmStyle do
|
|
10
10
|
end
|
11
11
|
its(:base_dir) { should == 'pm_style' }
|
12
12
|
its(:targets) { should == [
|
13
|
-
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/
|
14
|
-
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/
|
15
|
-
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/
|
13
|
+
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056a.zip',
|
14
|
+
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056c.zip',
|
15
|
+
'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056b.zip']
|
16
16
|
}
|
17
|
-
its(:sub_directory) { should == '
|
17
|
+
its(:sub_directory) { should == 'pm_chu_003056' }
|
18
18
|
end
|
19
19
|
|