osakana 0.3.0 → 0.4.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: e16910b5733fad0a62fd5334ea405cda967abf3a8bce51042785a586340f049d
4
- data.tar.gz: 171eff5ae67aa6030407e8ea4d34d2b3f38d592ebdb9992224ac4ce03b96b1d4
3
+ metadata.gz: 434f89723284d0761a2fd4bd18c7e657631f55276c1d656606ce7abb959665a3
4
+ data.tar.gz: d83d90d1c149dfda966fe62566577affadd66d580ef8bc25d503ef064330925a
5
5
  SHA512:
6
- metadata.gz: f8cc4687b7b665b65bc92ad4bf2506d57c71620b479ed1f62b14d4c5f685baa82763ae2d3f62d335196b5202e214cd1713e3318b0600d86a95f0c90fac0b545a
7
- data.tar.gz: 7d883c02582709a28aa762550dd3ec93a4ab3756137f90df3e2b016c13adaab64e0d4997db9a8f989c2479c34650782a03cfb868aa70236ed9e707d8507e8297
6
+ metadata.gz: 2e75652d9b5e40d75ff2c9d8dc9686ac85d2072c35f3c1bdf3625f904f00ce463a862a8ee6a8cb1439bec0be73e54791bc63179ce152f75c062d21af75a654b7
7
+ data.tar.gz: 0a1954f1dbb74691b9885f19ef779d544f92c2289182a431c3515634f86c1c3176aa3fdd37ce6e8446d9c13dfdbfb398a7d404d2eec0d7eb4d368e9719af7bb7
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osakana
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "date"
4
+ require "kokki"
4
5
 
5
6
  module Osakana
6
7
  class Website
@@ -31,7 +32,12 @@ module Osakana
31
32
  end
32
33
 
33
34
  def summary
34
- @summary ||= "#{domain}, #{ipv4} (date: #{date})"
35
+ @summary ||=
36
+ [].tap do |out|
37
+ out << "#{domain}, #{ipv4} #{Kokki.flagize(ipv4)} (date: #{date})"
38
+ rescue Kokki::InvalidInputError => _
39
+ out << "#{domain}, #{ipv4} (date: #{date})"
40
+ end.first
35
41
  end
36
42
 
37
43
  def vt_link
@@ -32,7 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "webmock", "~> 3.5"
33
33
 
34
34
  spec.add_dependency "censu", "~> 0.2"
35
- spec.add_dependency "http", "~> 4.0"
35
+ spec.add_dependency "http", "~> 4.1"
36
+ spec.add_dependency "kokki", "~> 0.1"
36
37
  spec.add_dependency "robtex", "~> 0.1"
37
38
  spec.add_dependency "securitytrails", "~> 0.1"
38
39
  spec.add_dependency "slack-incoming-webhooks", "~> 0.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osakana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2019-03-15 00:00:00.000000000 Z
11
+ date: 2019-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '4.0'
117
+ version: '4.1'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '4.0'
124
+ version: '4.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: kokki
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.1'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: robtex
127
141
  requirement: !ruby/object:Gem::Requirement