miteru 2.2.4 → 2.3.0

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: a604d9ad1201fb7cd6584ff8bbdfc4d48634a89e1f72ff0fb4735407dd4b1a45
4
- data.tar.gz: a947966c3b6f07b6da217fd093ab6d842c0e55dc4db960bb7475344d11f71f54
3
+ metadata.gz: 32e5b8fdac5ea26e971516d09c38d56889247b40152c844974d9bbe79be4e05d
4
+ data.tar.gz: c2fff901074852142c1ce66aeb641a5d3a512bcf286c820ededb1289df822d97
5
5
  SHA512:
6
- metadata.gz: f80bf7a2d2a78cfa2da9b699e709d8b29a38a486a50df992542ef5d22d0a18aaa20779f591851db2f0bd5378f6e9e4841e8053899b73c304f7d35807b6f37621
7
- data.tar.gz: 4aa5a130dbec8eb692c832140af1d1ad5a42350171b03ea7257578484e4affa149c47e7a2642be7177d71330cba346928849a3de78a41c8adf93eeecd5d91fef
6
+ metadata.gz: ec2d6bf3439e556ea0c87b43e93a80f7798f3d2f6a13c4f0ea17c632dce2d99666a7e01d666c58e942b8f84073143beaf871773fcb0d5ddca9e2b705521f1d5a
7
+ data.tar.gz: ab07eb4b67e1473d2e9940165b317c4869ef6bc0e35fb344e00a3bc705089d97fd82ff582339efa1f1726955089ab653de20220bdbd0b6d59b557833617a096f
@@ -49,8 +49,6 @@ module Miteru
49
49
  end
50
50
  end
51
51
 
52
- private
53
-
54
52
  def notifiers
55
53
  @notifiers ||= Miteru.notifiers.map(&:new)
56
54
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Miteru
4
+ class Feeds
5
+ class TweetFeed < Base
6
+ def initialize(base_url = "https://api.tweetfeed.live")
7
+ super(base_url)
8
+ end
9
+
10
+ def urls
11
+ data = get_json("/v1/today/url")
12
+ data.filter_map { |item| item["value"] }
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Miteru
4
- VERSION = "2.2.4"
4
+ VERSION = "2.3.0"
5
5
  end
data/lib/miteru.rb CHANGED
@@ -148,6 +148,7 @@ require "miteru/feeds/base"
148
148
 
149
149
  require "miteru/feeds/ayashige"
150
150
  require "miteru/feeds/phishing_database"
151
+ require "miteru/feeds/tweetfeed"
151
152
  require "miteru/feeds/urlscan_pro"
152
153
  require "miteru/feeds/urlscan"
153
154
 
data/miteru.gemspec CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
44
44
  spec.add_dependency "anyway_config", "2.6.3"
45
45
  spec.add_dependency "colorize", "1.1.0"
46
46
  spec.add_dependency "dotenv", "3.1.0"
47
- spec.add_dependency "down", "5.4.1"
47
+ spec.add_dependency "down", "5.4.2"
48
48
  spec.add_dependency "dry-files", "1.1.0"
49
49
  spec.add_dependency "dry-monads", "1.6.0"
50
50
  spec.add_dependency "http", "5.2.0"
@@ -52,13 +52,13 @@ Gem::Specification.new do |spec|
52
52
  spec.add_dependency "oga", "3.4"
53
53
  spec.add_dependency "parallel", "1.24.0"
54
54
  spec.add_dependency "puma", "6.4.2"
55
- spec.add_dependency "rack", "3.0.9.1"
55
+ spec.add_dependency "rack", "3.0.10"
56
56
  spec.add_dependency "rack-session", "2.0.0"
57
57
  spec.add_dependency "rackup", "2.1.0"
58
- spec.add_dependency "redis", "5.1.0"
58
+ spec.add_dependency "redis", "5.2.0"
59
59
  spec.add_dependency "semantic_logger", "4.15.0"
60
- spec.add_dependency "sentry-ruby", "5.16.1"
61
- spec.add_dependency "sentry-sidekiq", "5.16.1"
60
+ spec.add_dependency "sentry-ruby", "5.17.3"
61
+ spec.add_dependency "sentry-sidekiq", "5.17.3"
62
62
  spec.add_dependency "sidekiq", "7.2.2"
63
63
  spec.add_dependency "slack-notifier", "2.4.0"
64
64
  spec.add_dependency "sqlite3", "1.7.2"
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: 2.2.4
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-07 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -268,14 +268,14 @@ dependencies:
268
268
  requirements:
269
269
  - - '='
270
270
  - !ruby/object:Gem::Version
271
- version: 5.4.1
271
+ version: 5.4.2
272
272
  type: :runtime
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - '='
277
277
  - !ruby/object:Gem::Version
278
- version: 5.4.1
278
+ version: 5.4.2
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: dry-files
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -380,14 +380,14 @@ dependencies:
380
380
  requirements:
381
381
  - - '='
382
382
  - !ruby/object:Gem::Version
383
- version: 3.0.9.1
383
+ version: 3.0.10
384
384
  type: :runtime
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - '='
389
389
  - !ruby/object:Gem::Version
390
- version: 3.0.9.1
390
+ version: 3.0.10
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: rack-session
393
393
  requirement: !ruby/object:Gem::Requirement
@@ -422,14 +422,14 @@ dependencies:
422
422
  requirements:
423
423
  - - '='
424
424
  - !ruby/object:Gem::Version
425
- version: 5.1.0
425
+ version: 5.2.0
426
426
  type: :runtime
427
427
  prerelease: false
428
428
  version_requirements: !ruby/object:Gem::Requirement
429
429
  requirements:
430
430
  - - '='
431
431
  - !ruby/object:Gem::Version
432
- version: 5.1.0
432
+ version: 5.2.0
433
433
  - !ruby/object:Gem::Dependency
434
434
  name: semantic_logger
435
435
  requirement: !ruby/object:Gem::Requirement
@@ -450,28 +450,28 @@ dependencies:
450
450
  requirements:
451
451
  - - '='
452
452
  - !ruby/object:Gem::Version
453
- version: 5.16.1
453
+ version: 5.17.3
454
454
  type: :runtime
455
455
  prerelease: false
456
456
  version_requirements: !ruby/object:Gem::Requirement
457
457
  requirements:
458
458
  - - '='
459
459
  - !ruby/object:Gem::Version
460
- version: 5.16.1
460
+ version: 5.17.3
461
461
  - !ruby/object:Gem::Dependency
462
462
  name: sentry-sidekiq
463
463
  requirement: !ruby/object:Gem::Requirement
464
464
  requirements:
465
465
  - - '='
466
466
  - !ruby/object:Gem::Version
467
- version: 5.16.1
467
+ version: 5.17.3
468
468
  type: :runtime
469
469
  prerelease: false
470
470
  version_requirements: !ruby/object:Gem::Requirement
471
471
  requirements:
472
472
  - - '='
473
473
  - !ruby/object:Gem::Version
474
- version: 5.16.1
474
+ version: 5.17.3
475
475
  - !ruby/object:Gem::Dependency
476
476
  name: sidekiq
477
477
  requirement: !ruby/object:Gem::Requirement
@@ -599,6 +599,7 @@ files:
599
599
  - lib/miteru/feeds/ayashige.rb
600
600
  - lib/miteru/feeds/base.rb
601
601
  - lib/miteru/feeds/phishing_database.rb
602
+ - lib/miteru/feeds/tweetfeed.rb
602
603
  - lib/miteru/feeds/urlscan.rb
603
604
  - lib/miteru/feeds/urlscan_pro.rb
604
605
  - lib/miteru/helpers.rb