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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d868b4b59c518eafe81396a1b99749b4eae3902064b04a793bfebd430ff1f439
4
- data.tar.gz: 168da4c83289e570e5c52d8d9177af13459d6598900c8396d7276c472c014a3d
3
+ metadata.gz: 6cab38702cb3aaddbaa604419e8bd152203ade037d5717fdcca6931ee107f6fb
4
+ data.tar.gz: c3b082bcb05ac1541d7f936b81ad1922531c28417e6c95590ab6e10903e12f80
5
5
  SHA512:
6
- metadata.gz: c38d39f868a469b6ef62949f4905e8ae038c833ec1745446cf6ef06a3c206e2996d49b48b8b991ab2a63f7ec0a3c224e435d8cd36dc3232194e45eb0997abc7d
7
- data.tar.gz: 0c019fc0ba2e3037522cb5fb0f262e830e169f9bef6d522812c66ec16cffa770c2b1c81b7cdd3543bb2bfb8f4b406f5d4470dc191429522fa8b61e1b7dadb081
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}",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Miteru
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler