spysex 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +58 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +36 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/spyse.rb +15 -0
- data/lib/spyse/api.rb +30 -0
- data/lib/spyse/clients/as.rb +35 -0
- data/lib/spyse/clients/base.rb +75 -0
- data/lib/spyse/clients/cert.rb +35 -0
- data/lib/spyse/clients/cve.rb +49 -0
- data/lib/spyse/clients/domain.rb +83 -0
- data/lib/spyse/clients/ip.rb +40 -0
- data/lib/spyse/version.rb +3 -0
- data/lib/spysex.rb +3 -0
- data/spysex.gemspec +30 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 349d1252d038b09b7042965cc022bb33dbaf841699d76b4403a8ede215b667fd
|
4
|
+
data.tar.gz: b98c60bde0e6dc5272e1d5e6a52fa1d96292c5fc42c6c0e6763c3db803de4a9a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 993f76ca091a2d04ea35614100c25bd0fcfc94c74ee92a8cea874d81669705f2c1b6551e7e38ae086290af98e21650d9f5e48673638e1e20eece617830452cbf
|
7
|
+
data.tar.gz: 0b96be9c75d50bb6f68fca1473b14b6c7727b911b3045d206149454ba8edf7641071afda4b972bb0f55f59b0bb717466e195968ebe7f2687b503229d01b12b2a
|
data/.gitignore
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
Gemfile.lock
|
49
|
+
.ruby-version
|
50
|
+
.ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
57
|
+
|
58
|
+
.rspec_status
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Manabu Niseki
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# spysex
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.com/ninoseki/spysex.svg?branch=master)](https://travis-ci.com/ninoseki/spysex)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/github/ninoseki/spysex/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/spysex?branch=master)
|
5
|
+
[![CodeFactor](https://www.codefactor.io/repository/github/ninoseki/spysex/badge)](https://www.codefactor.io/repository/github/ninoseki/spysex)
|
6
|
+
|
7
|
+
A dead simple [Spyse](https://spyse.com) API wrapper for Ruby.
|
8
|
+
|
9
|
+
Note: this wrapper does not support all the API endpoints.
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
```bash
|
14
|
+
gem install spysex
|
15
|
+
```
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require "spysex"
|
21
|
+
|
22
|
+
# when given nothing, it tries to load your usernamem & API key via ENV["SPYSE_API_KEY"]
|
23
|
+
api = Spyse::API.new
|
24
|
+
# or you can set them manually
|
25
|
+
api = Spyse::API.new("foo bar")
|
26
|
+
|
27
|
+
api.domain.get("example.com")
|
28
|
+
api.domain.search(search_params)
|
29
|
+
|
30
|
+
api.ip.get("1.1.1.1")
|
31
|
+
api.ip.search(search_params)
|
32
|
+
```
|
33
|
+
|
34
|
+
## License
|
35
|
+
|
36
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "spysex"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/spyse.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "spyse/version"
|
2
|
+
|
3
|
+
require "spyse/clients/base"
|
4
|
+
|
5
|
+
require "spyse/clients/as"
|
6
|
+
require "spyse/clients/cert"
|
7
|
+
require "spyse/clients/cve"
|
8
|
+
require "spyse/clients/domain"
|
9
|
+
require "spyse/clients/ip"
|
10
|
+
|
11
|
+
require "spyse/api"
|
12
|
+
|
13
|
+
module Spyse
|
14
|
+
class Error < StandardError; end
|
15
|
+
end
|
data/lib/spyse/api.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
class API
|
5
|
+
def initialize(api_key = ENV["SPYSE_API_KEY"])
|
6
|
+
@api_key = api_key
|
7
|
+
raise ArgumentError, "No api key has been found or provided!" unless @api_key
|
8
|
+
end
|
9
|
+
|
10
|
+
def as
|
11
|
+
@as ||= Client::AS.new(@api_key)
|
12
|
+
end
|
13
|
+
|
14
|
+
def cert
|
15
|
+
@cert ||= Client::Cert.new(@api_key)
|
16
|
+
end
|
17
|
+
|
18
|
+
def cve
|
19
|
+
@cve ||= Client::CVE.new(@api_key)
|
20
|
+
end
|
21
|
+
|
22
|
+
def domain
|
23
|
+
@domain ||= Client::Domain.new(@api_key)
|
24
|
+
end
|
25
|
+
|
26
|
+
def ip
|
27
|
+
@ip ||= Client::IP.new(@api_key)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
module Client
|
5
|
+
class AS < Base
|
6
|
+
#
|
7
|
+
# Lists AS
|
8
|
+
#
|
9
|
+
# @see https://spyse.com/api#/as/as
|
10
|
+
#
|
11
|
+
# @return [Hash]
|
12
|
+
#
|
13
|
+
def get(asn, limit: nil, offset: nil)
|
14
|
+
params = {
|
15
|
+
asn: asn, limit: limit, offset: offset,
|
16
|
+
}.compact
|
17
|
+
_get("/as", params) { |json| json }
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Lists ASs
|
22
|
+
#
|
23
|
+
# @see https://spyse.com/api#/as/as_search
|
24
|
+
#
|
25
|
+
# @return [Hash]
|
26
|
+
#
|
27
|
+
def search(search_params, limit: nil, offset: nil)
|
28
|
+
params = {
|
29
|
+
search_params: search_params, limit: limit, offset: offset,
|
30
|
+
}.compact
|
31
|
+
_post("/as/search", params) { |json| json }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
require "net/https"
|
5
|
+
require "uri"
|
6
|
+
|
7
|
+
module Spyse
|
8
|
+
module Client
|
9
|
+
class Base
|
10
|
+
HOST = "api.spyse.com"
|
11
|
+
VERSION = "v3"
|
12
|
+
BASE_URL = "https://#{HOST}/#{VERSION}/data"
|
13
|
+
|
14
|
+
def initialize(api_key)
|
15
|
+
@api_key = api_key
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def url_for(path)
|
21
|
+
URI(BASE_URL + path)
|
22
|
+
end
|
23
|
+
|
24
|
+
def https_options
|
25
|
+
if proxy = ENV["HTTPS_PROXY"] || ENV["https_proxy"]
|
26
|
+
uri = URI(proxy)
|
27
|
+
{
|
28
|
+
proxy_address: uri.hostname,
|
29
|
+
proxy_port: uri.port,
|
30
|
+
proxy_from_env: false,
|
31
|
+
use_ssl: true
|
32
|
+
}
|
33
|
+
else
|
34
|
+
{ use_ssl: true }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def request(req)
|
39
|
+
Net::HTTP.start(HOST, 443, https_options) do |http|
|
40
|
+
req["Authorization"] = "Bearer #{@api_key}"
|
41
|
+
|
42
|
+
response = http.request(req)
|
43
|
+
|
44
|
+
code = response.code.to_i
|
45
|
+
body = response.body
|
46
|
+
json = JSON.parse(body)
|
47
|
+
|
48
|
+
case code
|
49
|
+
when 200
|
50
|
+
yield json
|
51
|
+
else
|
52
|
+
error = json.dig("error", "message") || body
|
53
|
+
raise Error, "Unsupported response code returned: #{code} - #{error}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def _get(path, params = {}, &block)
|
59
|
+
uri = url_for(path)
|
60
|
+
uri.query = URI.encode_www_form(params)
|
61
|
+
get = Net::HTTP::Get.new(uri)
|
62
|
+
|
63
|
+
request(get, &block)
|
64
|
+
end
|
65
|
+
|
66
|
+
def _post(path, params = {}, &block)
|
67
|
+
post = Net::HTTP::Post.new(url_for(path))
|
68
|
+
post.body = JSON.generate(params)
|
69
|
+
post["Content-Type"] = "application/json"
|
70
|
+
|
71
|
+
request(post, &block)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
module Client
|
5
|
+
class Cert < Base
|
6
|
+
#
|
7
|
+
# Lists Certificate
|
8
|
+
#
|
9
|
+
# @see https://spyse.com/api#/certificate/certificate
|
10
|
+
#
|
11
|
+
# @return [Hash]
|
12
|
+
#
|
13
|
+
def get(hash, limit: nil, offset: nil)
|
14
|
+
params = {
|
15
|
+
hash: hash, limit: limit, offset: offset,
|
16
|
+
}.compact
|
17
|
+
_get("/cert", params) { |json| json }
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Lists certificates
|
22
|
+
#
|
23
|
+
# @see https://spyse.com/api#/certificate/cert_search
|
24
|
+
#
|
25
|
+
# @return [Hash]
|
26
|
+
#
|
27
|
+
def search(search_params, limit: nil, offset: nil)
|
28
|
+
params = {
|
29
|
+
search_params: search_params, limit: limit, offset: offset,
|
30
|
+
}.compact
|
31
|
+
_post("/cert/search", params) { |json| json }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
module Client
|
5
|
+
class CVE < Base
|
6
|
+
#
|
7
|
+
# Lists CVE
|
8
|
+
#
|
9
|
+
# @see https://spyse.com/api#/cve/cve
|
10
|
+
#
|
11
|
+
# @return [Hash]
|
12
|
+
#
|
13
|
+
def get(cve_id, limit: nil, offset: nil)
|
14
|
+
params = {
|
15
|
+
cve_id: cve_id, limit: limit, offset: offset,
|
16
|
+
}.compact
|
17
|
+
_get("/cve", params) { |json| json }
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Lists IPs, that vulnerable by provided CVE
|
22
|
+
#
|
23
|
+
# @see https://spyse.com/api#/cve/vulnerable_ip_by_cve
|
24
|
+
#
|
25
|
+
# @return [Hash]
|
26
|
+
#
|
27
|
+
def vulnerable_ip(cve, limit: nil, offset: nil)
|
28
|
+
params = {
|
29
|
+
cve: cve, limit: limit, offset: offset,
|
30
|
+
}.compact
|
31
|
+
_get("/cve/vulnerable-ip", params) { |json| json }
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# Lists CVEs
|
36
|
+
#
|
37
|
+
# @see https://spyse.com/api#/cve/cve_search
|
38
|
+
#
|
39
|
+
# @return [Hash]
|
40
|
+
#
|
41
|
+
def search(search_params, limit: nil, offset: nil)
|
42
|
+
params = {
|
43
|
+
search_params: search_params, limit: limit, offset: offset,
|
44
|
+
}.compact
|
45
|
+
_post("/cve/search", params) { |json| json }
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
module Client
|
5
|
+
class Domain < Base
|
6
|
+
#
|
7
|
+
# Lists domains
|
8
|
+
#
|
9
|
+
# @see https://spyse.com/api#/domain/domain
|
10
|
+
#
|
11
|
+
# @return [Hash]
|
12
|
+
#
|
13
|
+
def get(name, limit: nil, offset: nil, cert: nil, using_as_mx: nil, using_as_ns: nil, is_mx: nil, is_ns: nil, ip: nil )
|
14
|
+
params = {
|
15
|
+
limit: limit, offset: offset, name: name, cert: cert, using_as_mx: using_as_mx, using_as_ns: using_as_ns, is_mx: is_mx, is_ns: is_ns, ip: ip
|
16
|
+
}.compact
|
17
|
+
_get("/domain", params) { |json| json }
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# Lists subdomains of a domain
|
22
|
+
#
|
23
|
+
# @see https://spyse.com/api#/domain/subdomain
|
24
|
+
#
|
25
|
+
# @return [Hash]
|
26
|
+
#
|
27
|
+
def subdomain(domain, limit: nil, offset: nil)
|
28
|
+
params = {
|
29
|
+
domain: domain,
|
30
|
+
limit: limit,
|
31
|
+
offset: offset
|
32
|
+
}.compact
|
33
|
+
_get("/domain/subdomain", params) { |json| json }
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Lists of related domains
|
38
|
+
#
|
39
|
+
# @see https://spyse.com/api#/related/domain_related_domain
|
40
|
+
#
|
41
|
+
# @return [Hash]
|
42
|
+
#
|
43
|
+
def related_domains(domain, limit: nil, offset: nil)
|
44
|
+
params = {
|
45
|
+
domain: domain,
|
46
|
+
limit: limit,
|
47
|
+
offset: offset
|
48
|
+
}.compact
|
49
|
+
_get("/domain/related/domain", params) { |json| json }
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists of related IPs by domain
|
54
|
+
#
|
55
|
+
# @see https://spyse.com/api#/related/domain_related_ip
|
56
|
+
#
|
57
|
+
# @return [Hash]
|
58
|
+
#
|
59
|
+
def related_ips(domain, limit: nil, offset: nil)
|
60
|
+
params = {
|
61
|
+
domain: domain,
|
62
|
+
limit: limit,
|
63
|
+
offset: offset
|
64
|
+
}.compact
|
65
|
+
_get("/domain/related/ip", params) { |json| json }
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
# Lists domains
|
70
|
+
#
|
71
|
+
# @see https://spyse.com/api#/domain/domain_search
|
72
|
+
#
|
73
|
+
# @return [Hash]
|
74
|
+
#
|
75
|
+
def search(search_params, limit: nil, offset: nil)
|
76
|
+
params = {
|
77
|
+
search_params: search_params, limit: limit, offset: offset,
|
78
|
+
}.compact
|
79
|
+
_post("/domain/search", params) { |json| json }
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Spyse
|
4
|
+
module Client
|
5
|
+
class IP < Base
|
6
|
+
#
|
7
|
+
# Lists ips
|
8
|
+
#
|
9
|
+
# @see https://spyse.com/api#/ip/ip
|
10
|
+
#
|
11
|
+
# @return [Hash]
|
12
|
+
#
|
13
|
+
def get(ip, limit: nil, offset: nil, as_org: nil, country: nil, as_num: nil)
|
14
|
+
params = {
|
15
|
+
limit: limit,
|
16
|
+
offset: offset,
|
17
|
+
ip: ip,
|
18
|
+
as_org: as_org,
|
19
|
+
country: country,
|
20
|
+
as_num: as_num
|
21
|
+
}.compact
|
22
|
+
_get("/ip", params) { |json| json }
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Lists IPs
|
27
|
+
#
|
28
|
+
# @see https://spyse.com/api#/ip/ip_search
|
29
|
+
#
|
30
|
+
# @return [Hash]
|
31
|
+
#
|
32
|
+
def search(search_params, limit: nil, offset: nil)
|
33
|
+
params = {
|
34
|
+
search_params: search_params, limit: limit, offset: offset,
|
35
|
+
}.compact
|
36
|
+
_post("/ip/search", params) { |json| json }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/spysex.rb
ADDED
data/spysex.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative 'lib/spyse/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "spysex"
|
5
|
+
spec.version = Spyse::VERSION
|
6
|
+
spec.authors = ["Manabu Niseki"]
|
7
|
+
spec.email = ["manabu.niseki@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = 'Spyse API wrapper for Ruby'
|
10
|
+
spec.description = 'Spyse API wrapper for Ruby'
|
11
|
+
spec.homepage = "https://github.com/ninoseki/spysex"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
# Specify which files should be added to the gem when it is released.
|
16
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
17
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
18
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
25
|
+
spec.add_development_dependency "coveralls", "~> 0.8"
|
26
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.9"
|
28
|
+
spec.add_development_dependency "vcr", "~> 5.0"
|
29
|
+
spec.add_development_dependency "webmock", "~> 3.7"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spysex
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Manabu Niseki
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coveralls
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.8'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.9'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.9'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.7'
|
97
|
+
description: Spyse API wrapper for Ruby
|
98
|
+
email:
|
99
|
+
- manabu.niseki@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- bin/console
|
112
|
+
- bin/setup
|
113
|
+
- lib/spyse.rb
|
114
|
+
- lib/spyse/api.rb
|
115
|
+
- lib/spyse/clients/as.rb
|
116
|
+
- lib/spyse/clients/base.rb
|
117
|
+
- lib/spyse/clients/cert.rb
|
118
|
+
- lib/spyse/clients/cve.rb
|
119
|
+
- lib/spyse/clients/domain.rb
|
120
|
+
- lib/spyse/clients/ip.rb
|
121
|
+
- lib/spyse/version.rb
|
122
|
+
- lib/spysex.rb
|
123
|
+
- spysex.gemspec
|
124
|
+
homepage: https://github.com/ninoseki/spysex
|
125
|
+
licenses:
|
126
|
+
- MIT
|
127
|
+
metadata: {}
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 2.3.0
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubygems_version: 3.1.2
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Spyse API wrapper for Ruby
|
147
|
+
test_files: []
|