fushin 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fushin/posts/seesaa.rb +10 -0
- data/lib/fushin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d419faf011f7caaead47a6f992ca41809cb2cfe1a15676edc8ab77d44d5e5625
|
4
|
+
data.tar.gz: 4efacf86c1b7ad9db22ce5ac6d3b8e1d92369b450964fa9fb462fc345e9fb25e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7aeda3a940d57176677dab9bb5e68bff04dece49cfb79da175b7a81c71ba2029d2e2fbfd43023fe107db8972069fe249d2acef4b4b97193db2804668bfb7802
|
7
|
+
data.tar.gz: ffc3b2ce2bd4966bc82043ee021a55b819d40cb87f8ded690b0695f0a50d6f439bcb33e251756dbcf60e64436df81b9e7594574c36f56885b645afe6c68fb999
|
data/lib/fushin/posts/seesaa.rb
CHANGED
@@ -10,6 +10,16 @@ module Fushin
|
|
10
10
|
def main_cleanup_selectors
|
11
11
|
%w(script iframe .listCategoryArticle font)
|
12
12
|
end
|
13
|
+
|
14
|
+
def attachements
|
15
|
+
@attachements ||= doc.css("div.text > a").map do |a|
|
16
|
+
url = a.get("href")
|
17
|
+
next unless url
|
18
|
+
next unless url.include? "seesaa.net/image/"
|
19
|
+
|
20
|
+
Models::Attachment.new url
|
21
|
+
end.compact
|
22
|
+
end
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
data/lib/fushin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fushin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|