onyphe 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 07f5d198d564b6052765eb9e1821690dfcd6eceb6a08039fbc3827aa355cfcd2
4
+ data.tar.gz: d188a0855ed04359cfd4c1b28808f3d35bdaa7f2528d49f03a56b49f322b3156
5
+ SHA512:
6
+ metadata.gz: 2933108d194ca7dbf2404684cc959a6b279c15f1a9fef71863210c2a52f9d01043be29186fd1c0d15b0979d436e433abc257f6bd5a3a435036a44fff82630c00
7
+ data.tar.gz: 3497e79df9bb43f6dca098f7ba8073ef1de37dba5fcb8b32dc0764ae80fa9572de6e60ee335247ee3b5ac2ffd02636b6347ec4321c84b74b3e9fe403d7801a43
data/.gitignore ADDED
@@ -0,0 +1,52 @@
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
51
+
52
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.2
7
+ before_install: gem install bundler -v 1.17.1
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in onyphe.gemspec
8
+ gemspec
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/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # Onyphe-rb
2
+
3
+ [![Build Status](https://travis-ci.org/ninoseki/onyphe-rb.svg?branch=master)](https://travis-ci.org/ninoseki/onyphe-rb)
4
+ [![Coverage Status](https://coveralls.io/repos/github/ninoseki/onyphe-rb/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/onyphe-rb?branch=master)
5
+ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/c4afca9e0ff94d11a53332c0598b868f)](https://www.codacy.com/app/ninoseki/onyphe-rb)
6
+
7
+ [Onyphe](https://www.onyphe.io) API wrapper for Ruby.
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'onyphe'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install onyphe
24
+
25
+ ## Usage
26
+
27
+ ```rb
28
+ require "ohyphe"
29
+
30
+ # When given nothing, it tries to load your API key from ENV["ONYPHE_API_KEY"]
31
+ api = Onyphe::API.new
32
+ # or you can pass your API key as an argument
33
+ api = Onyphe::API.new(YOUR_API_KEY)
34
+
35
+ api.ctl("github.com")
36
+ api.datascan("1.1.1.1")
37
+ api.forward("1.1.1.1")
38
+ api.geoloc("1.1.1.1")
39
+ api.inetnum("1.1.1.1")
40
+ api.ip("1.1.1.1")
41
+ api.md5("44d88612fea8a8f36de82e1278abb02f")
42
+ api.onionscan("3fyb44wdhnd2ghhl.onion")
43
+ api.pastries("1.1.1.1")
44
+ api.reverse("1.1.1.1")
45
+ api.sniffer("1.1.1.1")
46
+ api.synscan("1.1.1.1")
47
+ api.threatlist("1.1.1.1")
48
+
49
+ api.search.datascan(
50
+ os: "Windows",
51
+ port: 443,
52
+ product: "HTTP Server",
53
+ tls: true
54
+ )
55
+ api.search.synscan(
56
+ country: "FR",
57
+ port: 23,
58
+ tag: "mirai"
59
+ )
60
+
61
+ api.search.inetnum(organization: "OVH SAS")
62
+ api.search.threatlist(country: "RU")
63
+ api.search.pastries(content: "hacked")
64
+ api.search.resolver(ip: "124.108.0.0/16")
65
+ api.search.sniffer(ip: "14.164.0.0/14")
66
+ api.search.ctl(host: "vpn")
67
+ api.search.onionscan("app.http.keywords": "dump")
68
+ ```
69
+
70
+ All the API response is wrapped by [OpenStruct](https://github.com/ruby/ostruct).
71
+
72
+ It means you can access to a response through a property-like syntax.
73
+
74
+ ```rb
75
+ res = api.sniffer("217.138.28.194")
76
+ res.results.each do |result|
77
+ puts result.asn
78
+ puts result.ip
79
+ puts result.location
80
+ puts result.organization
81
+ end
82
+ ```
83
+
84
+ Or you can get a hash representative data by using `#to_h` method.
85
+
86
+ ```rb
87
+ res = api.sniffer("217.138.28.194")
88
+ p res.to_h
89
+ # => {:count=>10, :error=>0, :max_page=>3, :myip=>"<MY_IP>", :page=>1, :results=>[{:@category=>"sniffer", :@timestamp=>"2018-11-15T00:35:37.000Z", :@type=>"doc", :asn=>"AS20952", :city=>"London", :country=>"GB", ...
90
+ ```
91
+
92
+ ### Pagination
93
+
94
+ Enumerable style pagination is not supported at the present time.
95
+
96
+ You can specify page index by passing `page` argument to the method.
97
+
98
+ ```rb
99
+ res = api.search.threatlist(country: "RU", page = 1)
100
+ page = res.page
101
+ max_page = res.max_page
102
+
103
+ ((page + 1)..max_page).each do |page_index|
104
+ res = api.search.threatlist({ country: "RU" }, page = page_index)
105
+ end
106
+ ```
107
+
108
+ ## Contributing
109
+
110
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nioseki/onyphe.
111
+
112
+ ## License
113
+
114
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "onyphe"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/onyphe/api.rb ADDED
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "forwardable"
4
+
5
+ module Onyphe
6
+ class API
7
+ extend Forwardable
8
+
9
+ attr_reader :search
10
+
11
+ def initialize(api_key = ENV["ONYPHE_API_KEY"])
12
+ raise(ArgumentError, "'api_key' argument is required") unless api_key
13
+
14
+ @ctl = Clients::Ctl.new(api_key)
15
+ @datascan = Clients::Datascan.new(api_key)
16
+ @forward = Clients::Forward.new(api_key)
17
+ @geoloc = Clients::Geoloc.new(api_key)
18
+ @inetnum = Clients::Inetnum.new(api_key)
19
+ @ip = Clients::IP.new(api_key)
20
+ @md5 = Clients::MD5.new(api_key)
21
+ @onionscan = Clients::Onionscan.new(api_key)
22
+ @pastries = Clients::Pastries.new(api_key)
23
+ @reverse = Clients::Reverse.new(api_key)
24
+ @sniffer = Clients::Sniffer.new(api_key)
25
+ @synscan = Clients::Synscan.new(api_key)
26
+ @threatlist = Clients::Threatlist.new(api_key)
27
+
28
+ @search = Clients::Search.new(api_key)
29
+ end
30
+
31
+ def_delegator :@ctl, :get_by_domain, :ctl
32
+ def_delegator :@datascan, :get_by_query, :datascan
33
+ def_delegator :@forward, :get_by_ip, :forward
34
+ def_delegator :@geoloc, :get_by_ip, :geoloc
35
+ def_delegator :@inetnum, :get_by_ip, :inetnum
36
+ def_delegator :@ip, :get_by_ip, :ip
37
+ def_delegator :@md5, :get_by_md5, :md5
38
+ def_delegator :@onionscan, :get_by_onion, :onionscan
39
+ def_delegator :@pastries, :get_by_ip, :pastries
40
+ def_delegator :@reverse, :get_by_ip, :reverse
41
+ def_delegator :@sniffer, :get_by_ip, :sniffer
42
+ def_delegator :@synscan, :get_by_ip, :synscan
43
+ def_delegator :@threatlist, :get_by_ip, :threatlist
44
+ end
45
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+ require "net/https"
5
+
6
+ module Onyphe
7
+ class Client
8
+ HOST = "www.onyphe.io"
9
+ URL = "https://#{HOST}/api"
10
+
11
+ def initialize(api_key)
12
+ @api_key = api_key
13
+ end
14
+
15
+ private
16
+
17
+ def url_for(path)
18
+ URI(URL + path)
19
+ end
20
+
21
+ def https_options
22
+ if proxy = ENV["HTTPS_PROXY"] || ENV["https_proxy"]
23
+ uri = URI(proxy)
24
+ {
25
+ proxy_address: uri.hostname,
26
+ proxy_port: uri.port,
27
+ proxy_from_env: false,
28
+ use_ssl: true
29
+ }
30
+ else
31
+ { use_ssl: true }
32
+ end
33
+ end
34
+
35
+ def request(req)
36
+ Net::HTTP.start(HOST, 443, https_options) do |http|
37
+ http_response = http.request(req)
38
+ if http_response.code == '200'
39
+ yield JSON.parse(http_response.body, object_class: Response)
40
+ else
41
+ raise(Error, "unsupported response code returned: #{http_response.code}")
42
+ end
43
+ end
44
+ end
45
+
46
+ def get(path, params = {}, &block)
47
+ url = url_for(path)
48
+ params["apikey"] = @api_key
49
+ url.query = URI.encode_www_form(params)
50
+
51
+ get = Net::HTTP::Get.new(url)
52
+ request(get, &block)
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Ctl < Client
6
+ def get_by_domain(domain, page = 1)
7
+ get("/ctl/#{domain}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Datascan < Client
6
+ def get_by_query(query, page = 1)
7
+ get("/datascan/#{query}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Forward < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/forward/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Geoloc < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/geoloc/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Inetnum < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/inetnum/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class IP < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/ip/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class MD5 < Client
6
+ def get_by_md5(md5, page = 1)
7
+ get("/md5/#{md5}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Onionscan < Client
6
+ def get_by_onion(onion, page = 1)
7
+ get("/onionscan/#{onion}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Pastries < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/pastries/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Reverse < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/reverse/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "addressable/uri"
4
+
5
+ module Onyphe
6
+ module Clients
7
+ class Search < Client
8
+ def datascan(params, page = 1)
9
+ search("datascan", params, page)
10
+ end
11
+
12
+ def synscan(params, page = 1)
13
+ search("synscan", params, page)
14
+ end
15
+
16
+ def inetnum(params, page = 1)
17
+ search("inetnum", params, page)
18
+ end
19
+
20
+ def threatlist(params, page = 1)
21
+ search("threatlist", params, page)
22
+ end
23
+
24
+ def pastries(params, page = 1)
25
+ search("pastries", params, page)
26
+ end
27
+
28
+ def resolver(params, page = 1)
29
+ search("resolver", params, page)
30
+ end
31
+
32
+ def sniffer(params, page = 1)
33
+ search("sniffer", params, page)
34
+ end
35
+
36
+ def ctl(params, page = 1)
37
+ search("ctl", params, page)
38
+ end
39
+
40
+ def onionscan(params, page = 1)
41
+ search("onionscan", params, page)
42
+ end
43
+
44
+ private
45
+
46
+ def search(type, params, page)
47
+ get("/search/#{type}/#{params_to_uri_string(params)}", page: page) { |json| json }
48
+ end
49
+
50
+ def params_to_uri_string(params)
51
+ s = params.map do |k, v|
52
+ v = "\"#{v}\"" if v.to_s.include? " "
53
+ [k, v].join(":")
54
+ end.join(" ")
55
+
56
+ Addressable::URI.encode s
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Sniffer < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/sniffer/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Synscan < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/synscan/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ module Clients
5
+ class Threatlist < Client
6
+ def get_by_ip(ip, page = 1)
7
+ get("/threatlist/#{ip}", page: page) { |json| json }
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+
5
+ module Onyphe
6
+ class Response < OpenStruct
7
+ def openstruct_to_hash(object, hash = {})
8
+ return object unless object.respond_to?(:each_pair)
9
+
10
+ object.each_pair do |key, value|
11
+ hash[key] = case value
12
+ when OpenStruct then openstruct_to_hash(value)
13
+ when Array then value.map { |v| openstruct_to_hash(v) }
14
+ else value
15
+ end
16
+ end
17
+ hash
18
+ end
19
+
20
+ def to_h
21
+ openstruct_to_hash(self)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onyphe
4
+ VERSION = "0.1.0"
5
+ end
data/lib/onyphe.rb ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "onyphe/response"
4
+ require "onyphe/api"
5
+
6
+ require "onyphe/client"
7
+ require "onyphe/clients/ctl"
8
+ require "onyphe/clients/datascan"
9
+ require "onyphe/clients/forward"
10
+ require "onyphe/clients/geoloc"
11
+ require "onyphe/clients/inetnum"
12
+ require "onyphe/clients/ip"
13
+ require "onyphe/clients/md5"
14
+ require "onyphe/clients/onionscan"
15
+ require "onyphe/clients/pastries"
16
+ require "onyphe/clients/reverse"
17
+ require "onyphe/clients/sniffer"
18
+ require "onyphe/clients/synscan"
19
+ require "onyphe/clients/threatlist"
20
+ require "onyphe/clients/search"
21
+
22
+ require "onyphe/version"
23
+
24
+ module Onyphe
25
+ class Error < StandardError; end
26
+ end
data/onyphe.gemspec ADDED
@@ -0,0 +1,36 @@
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 "onyphe/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "onyphe"
9
+ spec.version = Onyphe::VERSION
10
+ spec.authors = ["Manabu Niseki"]
11
+ spec.email = ["manabu.niseki@gmail.com"]
12
+
13
+ spec.summary = "ONYPHE API wrapper for Ruby"
14
+ spec.description = "ONYPHE API wrapper for Ruby"
15
+ spec.homepage = "https://github.com/ninoseki/onyphe-rb"
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_dependency "addressable", "~> 2.5"
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.17"
30
+ spec.add_development_dependency "coveralls", "~> 0.8"
31
+ spec.add_development_dependency "dotenv", "~> 2.5"
32
+ spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rspec", "~> 3.0"
34
+ spec.add_development_dependency "vcr", "~> 4.0"
35
+ spec.add_development_dependency "webmock", "~> 3.4"
36
+ end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: onyphe
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-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: addressable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.8'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: vcr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.4'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.4'
125
+ description: ONYPHE API wrapper for Ruby
126
+ email:
127
+ - manabu.niseki@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".travis.yml"
135
+ - Gemfile
136
+ - LICENSE
137
+ - README.md
138
+ - Rakefile
139
+ - bin/console
140
+ - bin/setup
141
+ - lib/onyphe.rb
142
+ - lib/onyphe/api.rb
143
+ - lib/onyphe/client.rb
144
+ - lib/onyphe/clients/ctl.rb
145
+ - lib/onyphe/clients/datascan.rb
146
+ - lib/onyphe/clients/forward.rb
147
+ - lib/onyphe/clients/geoloc.rb
148
+ - lib/onyphe/clients/inetnum.rb
149
+ - lib/onyphe/clients/ip.rb
150
+ - lib/onyphe/clients/md5.rb
151
+ - lib/onyphe/clients/onionscan.rb
152
+ - lib/onyphe/clients/pastries.rb
153
+ - lib/onyphe/clients/reverse.rb
154
+ - lib/onyphe/clients/search.rb
155
+ - lib/onyphe/clients/sniffer.rb
156
+ - lib/onyphe/clients/synscan.rb
157
+ - lib/onyphe/clients/threatlist.rb
158
+ - lib/onyphe/response.rb
159
+ - lib/onyphe/version.rb
160
+ - onyphe.gemspec
161
+ homepage: https://github.com/ninoseki/onyphe-rb
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.7.6
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: ONYPHE API wrapper for Ruby
185
+ test_files: []