scrapers 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scrapers/rubytapas.rb +1 -1
- data/lib/scrapers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47586955a9afa8ba3ad9889d94f08cbf0a7626dc
|
4
|
+
data.tar.gz: 816482c5ab499efb61e9992e4245f2599f111e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c832f72bae485a6725e162501cc193bea0f23296a2530b60be24d9c2882da58b4345ec6b4eccba33911375b58af47ae639024a9493b4bba286411c67776851
|
7
|
+
data.tar.gz: dd47db0c37d508eebd3b171312e79a82d96b98acf37f44c3edb19905adf097652f2f952b11438a6f1a91b16f667d259a55bd976b9f5ff47b134201f6f25f0da8
|
data/lib/scrapers/rubytapas.rb
CHANGED
@@ -37,7 +37,7 @@ module Scrapers
|
|
37
37
|
|
38
38
|
m.current_page.tap do |page|
|
39
39
|
tapas.title = page.title.strip
|
40
|
-
tapas.episode_dir = File.join(dest,tapas.title.split("|").first.strip.downcase.gsub(%r{
|
40
|
+
tapas.episode_dir = File.join(dest,tapas.title.split("|").first.strip.downcase.gsub(%r{[^[:alnum:][:space:]]},' ').gsub(%r{[[:space:]]+},'-'))
|
41
41
|
tapas.attachments = page.links_with(:href => %r{\bdownload\b})
|
42
42
|
puts "Fetching and saving #{tapas.title} into #{tapas.episode_dir}"
|
43
43
|
FileUtils.mkdir(tapas.episode_dir)
|
data/lib/scrapers/version.rb
CHANGED