fushin 0.3.2 → 0.3.3

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: eaed16618a5b214257cde6a34a750b61786c40adcddca7ebb8bb80b3e91014ce
4
- data.tar.gz: c7593de893e79d23c042e03026902e04152552d0db79cbf63daba199d8567940
3
+ metadata.gz: 348de497e974915f34c1f7749b53f3e87924958c91fd7a461a61114902bd938a
4
+ data.tar.gz: 59cb5d481a3bfe11c21eacee2bdb78ab374ad77963d7f05ed4ee3ae509757e45
5
5
  SHA512:
6
- metadata.gz: 45db8c8062c76b474eef6d7d0c80554fc402ef320df9fbd4645d64f982ad178a6d853b79fafdda01d63b0399228cbf65dadef8948de53b2fdcefb8bff304209a
7
- data.tar.gz: e17eca676c394e5900baa609641de46e6c8033b3b3ccf2c8d9257678982717082a5b51eb66672586bdf933c8c4e55a513bc4c49be46524d473373716a3ba4a5b
6
+ metadata.gz: 3375de38841cac652e4b6025e5b23a014e7b613f6ddc6d41843075cf1ddd76588f42739fe6694f36f40e137f6b6e502a38fab709f4f488b6a2f17797c56bacf2
7
+ data.tar.gz: bd65a2f36dcd75a494a6d4b6ba5d0a126d1856bc6824eab347f72180e035c4a2abd99bfee80ca23e5e13ab2cd57345998ca0bcaae62ceab2778234e7da4e40e5
@@ -18,10 +18,12 @@ module Fushin
18
18
  end.flatten
19
19
  attachements << { text: "IoC is not found." } if attachements.empty?
20
20
  Notifier.notify("#{item.title} (#{item.link})", attachements)
21
-
22
- Cache.save(item.link, true)
23
21
  rescue StandardError => e
24
- puts "#{e.class} (#{e}) is happened during processing #{item.link}"
22
+ attachements = []
23
+ attachements << { text: "#{e.class} (#{e}) is happened during processing." }
24
+ Notifier.notify("#{item.title} (#{item.link})", attachements)
25
+ ensure
26
+ Cache.save(item.link, true)
25
27
  end
26
28
  end
27
29
 
@@ -29,7 +29,7 @@ module Fushin
29
29
  end
30
30
 
31
31
  def btcs
32
- @btcs ||= main.text.scan(/\b[13][a-km-zA-HJ-NP-Z0-9]{26,33}\b/).uniq.map do |address|
32
+ @btcs ||= main.text.scan(/[13][a-km-zA-HJ-NP-Z0-9]{26,33}/).uniq.map do |address|
33
33
  Models::BTC.new(address)
34
34
  end
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fushin
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
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-04 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler