bgpview 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bc5aae28b84c293973e889f23d8ca8228913c764244521127797ca9773bc5498
4
+ data.tar.gz: 1b981f50dc5b594cfd1662954d4d8f56e6bcc5d8262d3b6d2d18bf43c3853ef5
5
+ SHA512:
6
+ metadata.gz: 0add462566b1313bc018e6f5d1b604dcd9a3992c54297c8302dc48c9a1d0a13335a8a3d86fafe256cd7c59d02e2d6a2e4657d194ce130900485c10c036bc57ee
7
+ data.tar.gz: a139522b12747ccf6ee3f102f5315409c757ced16cbe2937a68281aad1e55c6abb44970f65695451aeb9d108b366de0d304c08c82b655f2f9ce381da02a19ff8
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+ service_name: travis-pro
2
+ repo_token: DCgdMF4aeYjgwqonsomfuGjJSeNcnrczI
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,14 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - 'bgpview.gemspec'
6
+
7
+ Style/ClassVars:
8
+ Enabled: false
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ Style/MissingRespondToMissing:
14
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ - 2.6.4
8
+ before_install: gem install bundler -v 2.0.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ryo@ryonkn.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in bgpview.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bgpview (0.1.0)
5
+ httpclient (~> 2.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.6.0)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ ast (2.4.0)
13
+ coderay (1.1.2)
14
+ coveralls (0.8.23)
15
+ json (>= 1.8, < 3)
16
+ simplecov (~> 0.16.1)
17
+ term-ansicolor (~> 1.3)
18
+ thor (>= 0.19.4, < 2.0)
19
+ tins (~> 1.6)
20
+ crack (0.4.3)
21
+ safe_yaml (~> 1.0.0)
22
+ diff-lcs (1.3)
23
+ docile (1.3.2)
24
+ hashdiff (1.0.0)
25
+ httpclient (2.8.3)
26
+ jaro_winkler (1.5.3)
27
+ json (2.2.0)
28
+ method_source (0.9.2)
29
+ parallel (1.17.0)
30
+ parser (2.6.4.0)
31
+ ast (~> 2.4.0)
32
+ pry (0.12.2)
33
+ coderay (~> 1.1.0)
34
+ method_source (~> 0.9.0)
35
+ public_suffix (3.1.1)
36
+ rainbow (3.0.0)
37
+ rake (10.5.0)
38
+ rspec (3.8.0)
39
+ rspec-core (~> 3.8.0)
40
+ rspec-expectations (~> 3.8.0)
41
+ rspec-mocks (~> 3.8.0)
42
+ rspec-core (3.8.2)
43
+ rspec-support (~> 3.8.0)
44
+ rspec-expectations (3.8.4)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.8.0)
47
+ rspec-mocks (3.8.1)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.8.0)
50
+ rspec-support (3.8.2)
51
+ rubocop (0.74.0)
52
+ jaro_winkler (~> 1.5.1)
53
+ parallel (~> 1.10)
54
+ parser (>= 2.6)
55
+ rainbow (>= 2.2.2, < 4.0)
56
+ ruby-progressbar (~> 1.7)
57
+ unicode-display_width (>= 1.4.0, < 1.7)
58
+ rubocop-rspec (1.35.0)
59
+ rubocop (>= 0.60.0)
60
+ ruby-progressbar (1.10.1)
61
+ safe_yaml (1.0.5)
62
+ simplecov (0.16.1)
63
+ docile (~> 1.1)
64
+ json (>= 1.8, < 3)
65
+ simplecov-html (~> 0.10.0)
66
+ simplecov-html (0.10.2)
67
+ term-ansicolor (1.7.1)
68
+ tins (~> 1.0)
69
+ thor (0.20.3)
70
+ tins (1.21.1)
71
+ unicode-display_width (1.6.0)
72
+ vcr (5.0.0)
73
+ webmock (3.7.0)
74
+ addressable (>= 2.3.6)
75
+ crack (>= 0.3.2)
76
+ hashdiff (>= 0.4.0, < 2.0.0)
77
+
78
+ PLATFORMS
79
+ ruby
80
+
81
+ DEPENDENCIES
82
+ bgpview!
83
+ bundler (~> 2.0)
84
+ coveralls (~> 0.8.23)
85
+ pry
86
+ rake (~> 10.0)
87
+ rspec (~> 3.0)
88
+ rubocop
89
+ rubocop-rspec
90
+ simplecov
91
+ vcr
92
+ webmock
93
+
94
+ BUNDLED WITH
95
+ 2.0.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Ryo Nakano
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,49 @@
1
+ # BGPView
2
+
3
+ [![Build Status](https://travis-ci.org/ryonkn/bgpview-ruby-gem.svg)](https://travis-ci.org/ryonkn/bgpview-ruby-gem)
4
+ [![Coverage Status](https://coveralls.io/repos/github/ryonkn/bgpview-ruby-gem/badge.svg)](https://coveralls.io/github/ryonkn/bgpview-ruby-gem)
5
+
6
+ A Ruby wrapper for BGPView API
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'bgpview'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install bgpview
23
+
24
+ ## Usage
25
+
26
+ ```ruby
27
+ require 'bgpview'
28
+
29
+ as2515 = BGPView.find(2515)
30
+ as2515.upstreams
31
+ as2515.peers
32
+ as2515.prefixes
33
+ ```
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it ( https://github.com/ryonkn/bgpview-ruby-gem/fork )
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create new Pull Request
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
46
+
47
+ ## Code of Conduct
48
+
49
+ Everyone interacting in the Bgpview project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ryonkn/bgpview/blob/master/CODE_OF_CONDUCT.md).
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/bgpview.gemspec ADDED
@@ -0,0 +1,43 @@
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 'bgpview/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'bgpview'
9
+ spec.version = BGPView::VERSION
10
+ spec.authors = ['ryonkn']
11
+ spec.email = ['ryo@ryonkn.com']
12
+
13
+ spec.summary = 'A Ruby wrapper for BGPView API'
14
+ spec.description = 'A Ruby wrapper for BGPView API'
15
+ spec.homepage = 'https://github.com/ryonkn/bgpview'
16
+ spec.license = 'MIT'
17
+
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = spec.homepage
20
+ spec.metadata['changelog_uri'] = spec.homepage
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ spec.add_development_dependency 'bundler', '~> 2.0'
32
+ spec.add_development_dependency 'pry'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
+ spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'rubocop-rspec'
37
+ spec.add_development_dependency 'simplecov'
38
+ spec.add_development_dependency 'vcr'
39
+ spec.add_development_dependency 'webmock'
40
+ spec.add_development_dependency 'coveralls', '~> 0.8.23'
41
+
42
+ spec.add_dependency 'httpclient', '~> 2.8'
43
+ end
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 'bgpview'
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
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httpclient'
4
+ require 'json'
5
+ require 'bgpview/error'
6
+
7
+ module BGPView
8
+ class API
9
+ API_BASE_URL = 'https://api.bgpview.io/asn/'
10
+
11
+ def self.call(url)
12
+ client = HTTPClient.new
13
+ response = client.get("#{API_BASE_URL}#{url}")
14
+ raise ApiError, response.reason if response.status != 200
15
+
16
+ hash = JSON.parse(response.body, symbolize_names: true)
17
+ raise ApiError, hash[:status_message] unless hash[:status] == 'ok'
18
+
19
+ hash
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/api'
4
+ require 'bgpview/upstreams'
5
+ require 'bgpview/peers'
6
+ require 'bgpview/prefixes'
7
+ require 'bgpview/number'
8
+
9
+ module BGPView
10
+ class Asn
11
+ @@cache = {}
12
+
13
+ private_class_method :new
14
+ attr_reader :number, :name
15
+
16
+ def initialize(number, name = '', detail: false)
17
+ BGPView::Number.check(number)
18
+
19
+ @number = number
20
+ @name = name
21
+ @data = {}
22
+
23
+ call_api if detail
24
+
25
+ @@cache[number] = self
26
+ end
27
+
28
+ def self.find(number)
29
+ @@cache.key?(number) ? @@cache[number] : new(number, detail: true)
30
+ end
31
+
32
+ def self.find_or_create(number, name)
33
+ @@cache.key?(number) ? @@cache[number] : new(number, name)
34
+ end
35
+
36
+ def method_missing(method, *args)
37
+ if data.key?(method.to_sym)
38
+ data[method.to_sym]
39
+ else
40
+ super
41
+ end
42
+ end
43
+
44
+ def upstreams
45
+ BGPView::Upstreams.find(@number)
46
+ end
47
+
48
+ def peers
49
+ BGPView::Peers.find(@number)
50
+ end
51
+
52
+ def prefixes
53
+ BGPView::Prefixes.find(@number)
54
+ end
55
+
56
+ private
57
+
58
+ def data
59
+ call_api if @data.empty?
60
+ @data
61
+ end
62
+
63
+ def call_api
64
+ result = BGPView::API.call(@number)
65
+ @name = result[:data][:name]
66
+ @data = result[:data]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BGPView
4
+ class Error < StandardError; end
5
+ class InvalidASNumber < Error; end
6
+ class ApiError < Error; end
7
+ end
data/lib/bgpview/ip.rb ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BGPView
4
+ class Ip
5
+ def initialize(data)
6
+ @data = data
7
+ end
8
+
9
+ def method_missing(method, *args)
10
+ if @data.key?(method.to_sym)
11
+ @data[method.to_sym]
12
+ else
13
+ super
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/error'
4
+
5
+ module BGPView
6
+ class Number
7
+ def self.check(number)
8
+ unless number.is_a? Integer
9
+ raise InvalidASNumber, 'AS Number is only Integer'
10
+ end
11
+ if number.negative? || number >= 4_294_967_296
12
+ raise InvalidASNumber, 'AS Number is 4 bytes'
13
+ end
14
+
15
+ true
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/api'
4
+
5
+ module BGPView
6
+ class Peers
7
+ @@cache = {}
8
+
9
+ private_class_method :new
10
+ attr_reader :ipv4, :ipv6
11
+
12
+ def initialize(number)
13
+ BGPView::Number.check(number)
14
+
15
+ peers = BGPView::API.call("#{number}/peers")
16
+
17
+ @ipv4 = extract_as(peers, 'ipv4')
18
+ @ipv6 = extract_as(peers, 'ipv6')
19
+
20
+ @@cache[number] = self
21
+ end
22
+
23
+ def self.find(number)
24
+ @@cache.key?(number) ? @@cache[number] : new(number)
25
+ end
26
+
27
+ private
28
+
29
+ def extract_as(peers, version)
30
+ peers[:data]["#{version}_peers".to_sym].map do |as|
31
+ BGPView::Asn.find_or_create(as[:asn], as[:name])
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/api'
4
+ require 'bgpview/ip'
5
+
6
+ module BGPView
7
+ class Prefixes
8
+ @@cache = {}
9
+
10
+ private_class_method :new
11
+ attr_reader :ipv4, :ipv6
12
+
13
+ def initialize(number)
14
+ BGPView::Number.check(number)
15
+
16
+ prefixes = BGPView::API.call("#{number}/prefixes")
17
+
18
+ @ipv4 = extract_ip(prefixes, 'ipv4')
19
+ @ipv6 = extract_ip(prefixes, 'ipv6')
20
+
21
+ @@cache[number] = self
22
+ end
23
+
24
+ def self.find(number)
25
+ @@cache.key?(number) ? @@cache[number] : new(number)
26
+ end
27
+
28
+ private
29
+
30
+ def extract_ip(prefixes, version)
31
+ prefixes[:data]["#{version}_prefixes".to_sym].map do |prefix|
32
+ BGPView::Ip.new(prefix)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/api'
4
+
5
+ module BGPView
6
+ class Upstreams
7
+ @@cache = {}
8
+
9
+ private_class_method :new
10
+ attr_reader :ipv4, :ipv6
11
+
12
+ def initialize(number)
13
+ BGPView::Number.check(number)
14
+
15
+ upstreams = BGPView::API.call("#{number}/upstreams")
16
+
17
+ @ipv4 = extract_as(upstreams, 'ipv4')
18
+ @ipv6 = extract_as(upstreams, 'ipv6')
19
+
20
+ @@cache[number] = self
21
+ end
22
+
23
+ def self.find(number)
24
+ @@cache.key?(number) ? @@cache[number] : new(number)
25
+ end
26
+
27
+ private
28
+
29
+ def extract_as(upstreams, version)
30
+ upstreams[:data]["#{version}_upstreams".to_sym].map do |as|
31
+ BGPView::Asn.find_or_create(as[:asn], as[:name])
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BGPView
4
+ VERSION = '0.1.0'
5
+ end
data/lib/bgpview.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bgpview/version'
4
+ require 'bgpview/asn'
5
+
6
+ module BGPView
7
+ def self.find(number = 0)
8
+ BGPView::Asn.find(number)
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bgpview
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - ryonkn
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-09-02 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: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.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.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: coveralls
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.8.23
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.8.23
153
+ - !ruby/object:Gem::Dependency
154
+ name: httpclient
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.8'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.8'
167
+ description: A Ruby wrapper for BGPView API
168
+ email:
169
+ - ryo@ryonkn.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".coveralls.yml"
175
+ - ".gitignore"
176
+ - ".rspec"
177
+ - ".rubocop.yml"
178
+ - ".travis.yml"
179
+ - CODE_OF_CONDUCT.md
180
+ - Gemfile
181
+ - Gemfile.lock
182
+ - LICENSE.txt
183
+ - README.md
184
+ - Rakefile
185
+ - bgpview.gemspec
186
+ - bin/console
187
+ - bin/setup
188
+ - lib/bgpview.rb
189
+ - lib/bgpview/api.rb
190
+ - lib/bgpview/asn.rb
191
+ - lib/bgpview/error.rb
192
+ - lib/bgpview/ip.rb
193
+ - lib/bgpview/number.rb
194
+ - lib/bgpview/peers.rb
195
+ - lib/bgpview/prefixes.rb
196
+ - lib/bgpview/upstreams.rb
197
+ - lib/bgpview/version.rb
198
+ homepage: https://github.com/ryonkn/bgpview
199
+ licenses:
200
+ - MIT
201
+ metadata:
202
+ homepage_uri: https://github.com/ryonkn/bgpview
203
+ source_code_uri: https://github.com/ryonkn/bgpview
204
+ changelog_uri: https://github.com/ryonkn/bgpview
205
+ post_install_message:
206
+ rdoc_options: []
207
+ require_paths:
208
+ - lib
209
+ required_ruby_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ requirements: []
220
+ rubygems_version: 3.0.3
221
+ signing_key:
222
+ specification_version: 4
223
+ summary: A Ruby wrapper for BGPView API
224
+ test_files: []