securitytrails 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/.rspec +3 -0
- data/.rspec_status +16 -0
- data/.travis.yml +7 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +75 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/securitytrails.rb +15 -0
- data/lib/securitytrails/api.rb +19 -0
- data/lib/securitytrails/client.rb +66 -0
- data/lib/securitytrails/clients/domain.rb +27 -0
- data/lib/securitytrails/clients/domains.rb +15 -0
- data/lib/securitytrails/clients/history.rb +31 -0
- data/lib/securitytrails/clients/ips.rb +19 -0
- data/lib/securitytrails/version.rb +5 -0
- data/securitytrails.gemspec +34 -0
- metadata +162 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 261c6c00d23d6df4749ada457317fadaeb83fc1bbea5aba1fc1e028f1ec6ea03
|
4
|
+
data.tar.gz: 44f57b73d27c6eba24cf25494d210ffd1245223abc1575a33b13f11a0bfd2f5b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5134e81d04585fcba97b0453e10cfeaa31d10443ae97878b8e1f6ef0e19db77c7b7527bc11938c3fd6747648a2e14e43a8ae383bedb6ee318cf4610684224af5
|
7
|
+
data.tar.gz: 7b9e4405bc2d2412db7d66dcfb07680df402ebd52f4223ddbb279224b027f311c5ab018e45e732cf1c8a707aa478a47bdd2279dc94d60a9e18795d51217ca7d2
|
data/.gitignore
ADDED
@@ -0,0 +1,50 @@
|
|
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
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
Gemfile.lock
|
46
|
+
.ruby-version
|
47
|
+
.ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
data/.rspec
ADDED
data/.rspec_status
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/clients/domain_spec.rb[1:1:1] | passed | 0.00564 seconds |
|
4
|
+
./spec/clients/domain_spec.rb[1:2:1] | passed | 0.00746 seconds |
|
5
|
+
./spec/clients/domain_spec.rb[1:3:1] | passed | 0.00589 seconds |
|
6
|
+
./spec/clients/domain_spec.rb[1:4:1] | passed | 0.00717 seconds |
|
7
|
+
./spec/clients/domain_spec.rb[1:5:1] | passed | 0.00577 seconds |
|
8
|
+
./spec/clients/domains_spec.rb[1:1:1] | passed | 0.00811 seconds |
|
9
|
+
./spec/clients/domains_spec.rb[1:2:1] | passed | 0.00705 seconds |
|
10
|
+
./spec/clients/history_spec.rb[1:1:1] | passed | 0.00653 seconds |
|
11
|
+
./spec/clients/history_spec.rb[1:2:1] | passed | 0.04772 seconds |
|
12
|
+
./spec/clients/history_spec.rb[1:3:1] | passed | 0.00545 seconds |
|
13
|
+
./spec/clients/ips_spec.rb[1:1:1] | passed | 0.00531 seconds |
|
14
|
+
./spec/clients/ips_spec.rb[1:2:1] | passed | 0.00507 seconds |
|
15
|
+
./spec/clients/ips_spec.rb[1:3:1] | passed | 0.00484 seconds |
|
16
|
+
./spec/securitytrails_spec.rb[1:1] | passed | 0.00085 seconds |
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 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/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# SecurityTrails
|
2
|
+
|
3
|
+
[](https://travis-ci.org/ninoseki/securitytrails)
|
4
|
+
[](https://www.codacy.com/app/ninoseki/securitytrails?utm_source=github.com&utm_medium=referral&utm_content=ninoseki/securitytrails&utm_campaign=Badge_Grade)
|
5
|
+
[](https://coveralls.io/github/ninoseki/securitytrails?branch=master)
|
6
|
+
|
7
|
+
[SecurityTrails](https://securitytrails.com) API wrapper for Ruby.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'securitytrails'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install securitytrails
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require "securitytrails"
|
29
|
+
|
30
|
+
# When given nothing, it tries to load your API key from ENV["SECURITYTRAILS_API_KEY"]
|
31
|
+
api = SecurityTrails::API.new
|
32
|
+
# or you can pass your API key as an argument
|
33
|
+
api = SecurityTrails::API.new(YOUR_API_KEY)
|
34
|
+
|
35
|
+
# Domain details
|
36
|
+
# https://docs.securitytrails.com/v1.0/reference#domains
|
37
|
+
api.domain.get_by_hostname("github.com")
|
38
|
+
api.domain.get_subdomains("github.com")
|
39
|
+
api.domain.get_tags("github.com")
|
40
|
+
api.domain.get_associated_domains("github.com")
|
41
|
+
api.domain.get_whois("github.com")
|
42
|
+
|
43
|
+
# Domain search
|
44
|
+
# https://docs.securitytrails.com/v1.0/reference#domain-search
|
45
|
+
api.domains.search(
|
46
|
+
filter: {
|
47
|
+
ipv4: "1.1.1.1"
|
48
|
+
})
|
49
|
+
api.domains.stats(
|
50
|
+
filter: {
|
51
|
+
ipv4: "1.1.1.1"
|
52
|
+
}
|
53
|
+
)
|
54
|
+
|
55
|
+
# History
|
56
|
+
# https://docs.securitytrails.com/v1.0/reference#history
|
57
|
+
api.history.get_dns_history("github.com", "a")
|
58
|
+
api.history.get_all_dns_history("github.com", "a")
|
59
|
+
api.history.get_whois_history("github.com")
|
60
|
+
|
61
|
+
|
62
|
+
# IPs
|
63
|
+
# https://docs.securitytrails.com/v1.0/reference#ips
|
64
|
+
api.ips.explore("8.8.8.8")
|
65
|
+
api.ips.search("ptr_part = 'ns1'")
|
66
|
+
api.ips.stats("ptr_part = 'amazon.com'")
|
67
|
+
```
|
68
|
+
|
69
|
+
## Contributing
|
70
|
+
|
71
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/securitytrails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
72
|
+
|
73
|
+
## License
|
74
|
+
|
75
|
+
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 "securitytrails"
|
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
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "securitytrails/version"
|
4
|
+
|
5
|
+
require "securitytrails/api"
|
6
|
+
require "securitytrails/client"
|
7
|
+
|
8
|
+
require "securitytrails/clients/domain"
|
9
|
+
require "securitytrails/clients/domains"
|
10
|
+
require "securitytrails/clients/history"
|
11
|
+
require "securitytrails/clients/ips"
|
12
|
+
|
13
|
+
module SecurityTrails
|
14
|
+
class Error < StandardError; end
|
15
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurityTrails
|
4
|
+
class API
|
5
|
+
attr_reader :domain
|
6
|
+
attr_reader :domains
|
7
|
+
attr_reader :history
|
8
|
+
attr_reader :ips
|
9
|
+
|
10
|
+
def initialize(api_key = ENV["SECURITYTRAILS_API_KEY"])
|
11
|
+
raise(ArgumentError, "'api_key' argument is required") unless api_key
|
12
|
+
|
13
|
+
@domain = Clients::Domain.new(api_key)
|
14
|
+
@domains = Clients::Domains.new(api_key)
|
15
|
+
@history = Clients::History.new(api_key)
|
16
|
+
@ips = Clients::IPs.new(api_key)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "net/https"
|
4
|
+
|
5
|
+
module SecurityTrails
|
6
|
+
class Client
|
7
|
+
attr_reader :api_key
|
8
|
+
|
9
|
+
HOST = "api.securitytrails.com"
|
10
|
+
VERSION = 1
|
11
|
+
URL = "https://#{HOST}/v#{VERSION}"
|
12
|
+
|
13
|
+
def initialize(api_key)
|
14
|
+
@api_key = api_key
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def url_for(path)
|
20
|
+
URI(URL + path)
|
21
|
+
end
|
22
|
+
|
23
|
+
def https_options
|
24
|
+
if proxy = ENV["HTTPS_PROXY"] || ENV["https_proxy"]
|
25
|
+
uri = URI(proxy)
|
26
|
+
{
|
27
|
+
proxy_address: uri.hostname,
|
28
|
+
proxy_port: uri.port,
|
29
|
+
proxy_from_env: false,
|
30
|
+
use_ssl: true
|
31
|
+
}
|
32
|
+
else
|
33
|
+
{ use_ssl: true }
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def request(req)
|
38
|
+
Net::HTTP.start(HOST, 443, https_options) do |http|
|
39
|
+
response = http.request(req)
|
40
|
+
if response.code == '200'
|
41
|
+
yield JSON.parse(response.body)
|
42
|
+
else
|
43
|
+
raise(Error, "unsupported response code returned: #{response.code}")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def get(path, params = {}, &block)
|
49
|
+
url = url_for(path)
|
50
|
+
params["apikey"] = api_key
|
51
|
+
url.query = URI.encode_www_form(params)
|
52
|
+
|
53
|
+
get = Net::HTTP::Get.new(url)
|
54
|
+
request(get, &block)
|
55
|
+
end
|
56
|
+
|
57
|
+
def post(path, params = {}, &block)
|
58
|
+
url = url_for(path)
|
59
|
+
url.query = "apikey=#{api_key}"
|
60
|
+
|
61
|
+
post = Net::HTTP::Post.new(url)
|
62
|
+
post.body = params.is_a?(Hash) ? params.to_json : params.to_s
|
63
|
+
request(post, &block)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurityTrails
|
4
|
+
module Clients
|
5
|
+
class Domain < Client
|
6
|
+
def get_by_hostname(hostname)
|
7
|
+
get("/domain/#{hostname}") { |json| json }
|
8
|
+
end
|
9
|
+
|
10
|
+
def get_subdomains(hostname)
|
11
|
+
get("/domain/#{hostname}/subdomains") { |json| json }
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_tags(hostname)
|
15
|
+
get("/domain/#{hostname}/tags") { |json| json }
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_associated_domains(hostname)
|
19
|
+
get("/domain/#{hostname}/associated") { |json| json }
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_whois(hostname)
|
23
|
+
get("/domain/#{hostname}/whois") { |json| json }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurityTrails
|
4
|
+
module Clients
|
5
|
+
class Domains < Client
|
6
|
+
def search(params)
|
7
|
+
post("/domains/list", params) { |json| json }
|
8
|
+
end
|
9
|
+
|
10
|
+
def stats(params)
|
11
|
+
post("/domains/stats", params) { |json| json }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurityTrails
|
4
|
+
module Clients
|
5
|
+
class History < Client
|
6
|
+
def get_dns_history(hostname, type, page = 1)
|
7
|
+
get("/history/#{hostname}/dns/#{type.downcase}", page: page) { |json| json }
|
8
|
+
end
|
9
|
+
|
10
|
+
def get_all_dns_history(hostname, type)
|
11
|
+
first_page = get_dns_history(hostname, type, 1)
|
12
|
+
pages = first_page["pages"].to_i
|
13
|
+
|
14
|
+
records = []
|
15
|
+
records << first_page["records"]
|
16
|
+
|
17
|
+
(2..pages).each do |page_idx|
|
18
|
+
next_page = get_dns_history(hostname, type, page_idx)
|
19
|
+
records << next_page["records"]
|
20
|
+
end
|
21
|
+
|
22
|
+
first_page["records"] = records.flatten
|
23
|
+
first_page
|
24
|
+
end
|
25
|
+
|
26
|
+
def get_whois_history(hostname)
|
27
|
+
get("/history/#{hostname}/whois/") { |json| json }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SecurityTrails
|
4
|
+
module Clients
|
5
|
+
class IPs < Client
|
6
|
+
def explore(ipaddress)
|
7
|
+
get("/ips/nearby/#{ipaddress}") { |json| json }
|
8
|
+
end
|
9
|
+
|
10
|
+
def search(query)
|
11
|
+
post("/ips/list", query: query) { |json| json }
|
12
|
+
end
|
13
|
+
|
14
|
+
def stats(query)
|
15
|
+
post("/ips/stats", query: query) { |json| json }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "securitytrails/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "securitytrails"
|
9
|
+
spec.version = SecurityTrails::VERSION
|
10
|
+
spec.authors = ["Manabu Niseki"]
|
11
|
+
spec.email = ["manabu.niseki@gmail.com"]
|
12
|
+
|
13
|
+
spec.summary = "SecurityTrails API wrapper for Ruby"
|
14
|
+
spec.description = "SecurityTrails API wrapper for Ruby"
|
15
|
+
spec.homepage = "https://github.com/ninoseki/securitytrails"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
28
|
+
spec.add_development_dependency "coveralls", "~> 0.8"
|
29
|
+
spec.add_development_dependency "dotenv", "~> 2.5"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
spec.add_development_dependency "vcr", "~> 4.0"
|
33
|
+
spec.add_development_dependency "webmock", "~> 3.4"
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: securitytrails
|
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: 2018-11-01 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: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
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: dotenv
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.4'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.4'
|
111
|
+
description: SecurityTrails API wrapper for Ruby
|
112
|
+
email:
|
113
|
+
- manabu.niseki@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".rspec_status"
|
121
|
+
- ".travis.yml"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- lib/securitytrails.rb
|
130
|
+
- lib/securitytrails/api.rb
|
131
|
+
- lib/securitytrails/client.rb
|
132
|
+
- lib/securitytrails/clients/domain.rb
|
133
|
+
- lib/securitytrails/clients/domains.rb
|
134
|
+
- lib/securitytrails/clients/history.rb
|
135
|
+
- lib/securitytrails/clients/ips.rb
|
136
|
+
- lib/securitytrails/version.rb
|
137
|
+
- securitytrails.gemspec
|
138
|
+
homepage: https://github.com/ninoseki/securitytrails
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.7.6
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: SecurityTrails API wrapper for Ruby
|
162
|
+
test_files: []
|