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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4130401cafc166adc3cd2991d961790b4b04dc29a94cc27be3f4b16ec046bceb
4
- data.tar.gz: c6dd5d23bb2f5b6972f071510a4273cd4a6e24e49c28a72c773c2fac14ab29da
3
+ metadata.gz: d419faf011f7caaead47a6f992ca41809cb2cfe1a15676edc8ab77d44d5e5625
4
+ data.tar.gz: 4efacf86c1b7ad9db22ce5ac6d3b8e1d92369b450964fa9fb462fc345e9fb25e
5
5
  SHA512:
6
- metadata.gz: 1158d20339e6e1de16d6fecd68c9de1875c478db07655c91664090dccdba12726c24f6fe5796509dd02a0b401aeb7901f7f51ab337f5c80359266637da8d6491
7
- data.tar.gz: 61250ae22682319f9630b5b3e8f62f37a7856f2d522150e1d2b44a899e0e55fd970bd563dfc00410eb54990f4584dc8f38a8484654fb9fd0501789d4ed831b39
6
+ metadata.gz: b7aeda3a940d57176677dab9bb5e68bff04dece49cfb79da175b7a81c71ba2029d2e2fbfd43023fe107db8972069fe249d2acef4b4b97193db2804668bfb7802
7
+ data.tar.gz: ffc3b2ce2bd4966bc82043ee021a55b819d40cb87f8ded690b0695f0a50d6f439bcb33e251756dbcf60e64436df81b9e7594574c36f56885b645afe6c68fb999
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fushin
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler