miteru 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miteru/feeds.rb +1 -1
- data/lib/miteru/feeds/ayashige.rb +2 -2
- data/lib/miteru/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: 6cab38702cb3aaddbaa604419e8bd152203ade037d5717fdcca6931ee107f6fb
|
4
|
+
data.tar.gz: c3b082bcb05ac1541d7f936b81ad1922531c28417e6c95590ab6e10903e12f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cf3776a64efa453afa42fafbdedd12c182beb48a72cab8eaab3258f15fe5198df9b72249276cd5d3069a4f98324062abe081c56355be9a0bb5d4d889bcd7b3f
|
7
|
+
data.tar.gz: 6bdce0624ae732455d14a260cdc98ba369b0f1ed3e4cb322e8111f94cccba3a8fc26a2b9df4c44caf72ac211c0e0f5d1da0fba22bc5fd50a957f443b08ffc6ae
|
data/lib/miteru/feeds.rb
CHANGED
@@ -20,7 +20,7 @@ module Miteru
|
|
20
20
|
@suspicious_urls ||= [].tap do |arr|
|
21
21
|
urls = @feeds.map do |feed|
|
22
22
|
feed.urls.select { |url| url.start_with?("http://", "https://") }
|
23
|
-
end.flatten
|
23
|
+
end.flatten.uniq
|
24
24
|
|
25
25
|
urls.map { |url| breakdown(url) }.flatten.uniq.sort.each { |url| arr << url }
|
26
26
|
end
|
@@ -7,13 +7,13 @@ module Miteru
|
|
7
7
|
class Feeds
|
8
8
|
class Ayashige < Feed
|
9
9
|
HOST = "ayashige.herokuapp.com"
|
10
|
-
URL = "https://#{HOST}
|
10
|
+
URL = "https://#{HOST}"
|
11
11
|
|
12
12
|
def urls
|
13
13
|
url = url_for("/feed")
|
14
14
|
res = JSON.parse(get(url))
|
15
15
|
|
16
|
-
domains = res.map { |item| item["domain"]}
|
16
|
+
domains = res.map { |item| item["domain"] }
|
17
17
|
domains.map do |domain|
|
18
18
|
[
|
19
19
|
"https://#{domain}",
|
data/lib/miteru/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miteru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.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: 2018-12-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|