nordvpn-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ff39e4ee18ffe79003cade24582cb943c8d63e6ffa491d47fdd9bda4c3285264
4
+ data.tar.gz: 8cc4de57e0657b606b0b9d3d8e0862252ffd513fb3397ec3130bffbbb14b2fb6
5
+ SHA512:
6
+ metadata.gz: fdfc952ef37993fb500440626f7ff505cd0d6a1559e263f58892296c089e989bd332650de12a3c0e97a83f83767312b198ad5439de33fabeeb9a2a662533d128
7
+ data.tar.gz: a8c31945d9b116b6a0cad63d003c00862f40e3e125acf57bb9aed6ed01fe10dfaff2ee8e9ab65a46cfe8c2fefe3f5ffe76bc975fc278db0ca2febca616263c88
@@ -0,0 +1,20 @@
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
12
+
13
+ .DS_Store
14
+
15
+ .ruby-version
16
+ .ruby-gemset
17
+
18
+ /bin/.pry_history
19
+ .pry_history
20
+
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.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 sebastian.johnsson@gmail.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
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in nordvpn-api.gemspec
6
+ gemspec
@@ -0,0 +1,50 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nordvpn-api (0.1.0)
5
+ agents (>= 0.1.4)
6
+ faraday (>= 0.15.4)
7
+ faraday_middleware (>= 0.13.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ agents (0.1.4)
13
+ coderay (1.1.2)
14
+ diff-lcs (1.3)
15
+ faraday (0.15.4)
16
+ multipart-post (>= 1.2, < 3)
17
+ faraday_middleware (0.13.1)
18
+ faraday (>= 0.7.4, < 1.0)
19
+ method_source (0.9.2)
20
+ multipart-post (2.1.1)
21
+ pry (0.12.2)
22
+ coderay (~> 1.1.0)
23
+ method_source (~> 0.9.0)
24
+ rake (10.5.0)
25
+ rspec (3.8.0)
26
+ rspec-core (~> 3.8.0)
27
+ rspec-expectations (~> 3.8.0)
28
+ rspec-mocks (~> 3.8.0)
29
+ rspec-core (3.8.2)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-expectations (3.8.4)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-mocks (3.8.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.8.0)
37
+ rspec-support (3.8.2)
38
+
39
+ PLATFORMS
40
+ ruby
41
+
42
+ DEPENDENCIES
43
+ bundler (~> 1.17)
44
+ nordvpn-api!
45
+ pry (~> 0.12.2)
46
+ rake (~> 10.0)
47
+ rspec (~> 3.0)
48
+
49
+ BUNDLED WITH
50
+ 1.17.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Sebastian Johnsson
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.
@@ -0,0 +1,67 @@
1
+ # Nordvpn::Api
2
+
3
+ Nordvpn::Api is a simple Ruby client to interact with NordVPN's unofficial REST API.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'nordvpn-api'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install nordvpn-api
20
+
21
+ ## Usage
22
+
23
+ Retrieve all available servers:
24
+
25
+ ```ruby
26
+ client = Nordvpn::Api::Client.new
27
+ servers = client.retrieve_servers
28
+ ```
29
+
30
+ Retrieve all servers with HTTP/HTTPS proxy support:
31
+
32
+ ```ruby
33
+ client = Nordvpn::Api::Client.new
34
+ servers = client.proxy_servers
35
+ ```
36
+
37
+ Retrieve all servers in a specific country:
38
+
39
+ ```ruby
40
+ client = Nordvpn::Api::Client.new
41
+ servers = client.servers_by_country("US")
42
+ ```
43
+
44
+ Retrieve all proxy servers in a specific country:
45
+
46
+ ```ruby
47
+ client = Nordvpn::Api::Client.new
48
+ servers = client.servers_by_type_and_country(:proxy, "US")
49
+ ```
50
+
51
+ ## Development
52
+
53
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
54
+
55
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
56
+
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/SebastianJ/nordvpn-api. 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.
60
+
61
+ ## License
62
+
63
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
64
+
65
+ ## Code of Conduct
66
+
67
+ Everyone interacting in the Nordvpn::Api project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/SebastianJ/nordvpn-api/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "nordvpn/api"
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.config.history.file = File.join(__FILE__, "../.pry_history")
12
+ Pry.start
13
+
14
+ #require "irb"
15
+ #IRB.start(__FILE__)
@@ -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,33 @@
1
+ require "faraday"
2
+ require "faraday_middleware"
3
+ require "agents"
4
+ require "logger"
5
+
6
+ require "nordvpn/api/version"
7
+ require "nordvpn/api/configuration"
8
+
9
+ require "nordvpn/api/endpoints/servers"
10
+ require "nordvpn/api/client"
11
+
12
+ module Nordvpn
13
+ module Api
14
+
15
+ class << self
16
+ attr_writer :configuration
17
+
18
+ def configuration
19
+ @configuration ||= ::Nordvpn::Api::Configuration.new
20
+ end
21
+
22
+ def reset
23
+ @configuration = ::Nordvpn::Api::Configuration.new
24
+ end
25
+
26
+ def configure
27
+ yield(configuration)
28
+ end
29
+ end
30
+
31
+ class Error < StandardError; end
32
+ end
33
+ end
@@ -0,0 +1,99 @@
1
+ module Nordvpn
2
+ module Api
3
+ class Client
4
+ attr_accessor :proxy, :configuration, :cache
5
+
6
+ def initialize(proxy: nil, configuration: ::Nordvpn::Api.configuration)
7
+ self.proxy = proxy
8
+ self.configuration = configuration
9
+ self.cache = {}
10
+ end
11
+
12
+ def connect(host:, options: {})
13
+ request_options = options.fetch(:request, {})
14
+
15
+ connection = ::Faraday.new(host, request: request_options) do |builder|
16
+ builder.options[:timeout] = options.fetch(:timeout, nil) if options.fetch(:timeout, nil)
17
+ builder.options[:open_timeout] = options.fetch(:open_timeout, nil) if options.fetch(:open_timeout, nil)
18
+
19
+ builder.request :json
20
+
21
+ builder.response :logger, ::Logger.new(STDOUT), bodies: true if self.configuration.verbose
22
+ builder.response :json, content_type: /\bjson$/
23
+
24
+ builder.use ::FaradayMiddleware::FollowRedirects, limit: 10
25
+
26
+ if self.proxy
27
+ builder.proxy = generate_proxy(self.proxy)
28
+ puts "[NordVpn::Api::Client] - Will connect to NordVPN's API using proxy: #{self.proxy.inspect}" if self.configuration.verbose
29
+ end
30
+
31
+ builder.adapter self.configuration.faraday.fetch(:adapter, ::Faraday.default_adapter)
32
+ end
33
+ end
34
+
35
+ def get(path, parameters: {}, headers: {}, options: {})
36
+ request path, method: :get, parameters: parameters, headers: headers, options: options
37
+ end
38
+
39
+ def head(path, parameters: {}, headers: {}, options: {})
40
+ request path, method: :head, parameters: parameters, headers: headers, options: options
41
+ end
42
+
43
+ def post(path, parameters: {}, data: {}, headers: {}, options: {})
44
+ request path, method: :post, parameters: parameters, data: data, headers: headers, options: options
45
+ end
46
+
47
+ def put(path, parameters: {}, data: {}, headers: {}, options: {})
48
+ request path, method: :put, parameters: parameters, data: data, headers: headers, options: options
49
+ end
50
+
51
+ def patch(path, parameters: {}, data: {}, headers: {}, options: {})
52
+ request path, method: :patch, parameters: parameters, data: data, headers: headers, options: options
53
+ end
54
+
55
+ def delete(path, parameters: {}, data: {}, headers: {}, options: {})
56
+ request path, method: :delete, parameters: parameters, data: data, headers: headers, options: options
57
+ end
58
+
59
+ def request(path, method: :get, parameters: {}, data: {}, headers: {}, options: {})
60
+ connection = connect(host: self.configuration.host, options: options)
61
+
62
+ headers["User-Agent"] = headers.fetch("User-Agent", ::Agents.random_user_agent(:desktop))
63
+
64
+ response = case method
65
+ when :get
66
+ connection.get do |request|
67
+ request.url path unless path.to_s.empty?
68
+ request.headers = connection.headers.merge(headers)
69
+ request.params = parameters if parameters && !parameters.empty?
70
+ end
71
+ when :head
72
+ connection.head do |request|
73
+ request.url path unless path.to_s.empty?
74
+ request.headers = connection.headers.merge(headers)
75
+ request.params = parameters if parameters && !parameters.empty?
76
+ end
77
+ when :post, :put, :patch, :delete
78
+ connection.send(method) do |request|
79
+ request.url path unless path.to_s.empty?
80
+ request.headers = connection.headers.merge(headers)
81
+ request.body = data if data && !data.empty?
82
+ request.params = parameters if parameters && !parameters.empty?
83
+ end
84
+ end
85
+ end
86
+
87
+ def generate_proxy(host:, port:, username:, password:)
88
+ {
89
+ uri: "http://#{host}:#{port}",
90
+ user: username,
91
+ password: password
92
+ }
93
+ end
94
+
95
+ include ::Nordvpn::Api::Endpoints::Servers
96
+
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,16 @@
1
+ module Nordvpn
2
+ module Api
3
+ class Configuration
4
+ attr_accessor :host, :faraday, :verbose
5
+
6
+ def initialize
7
+ self.host = "https://api.nordvpn.com"
8
+
9
+ self.faraday = {adapter: :net_http}
10
+
11
+ self.verbose = false
12
+ end
13
+
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,81 @@
1
+ module Nordvpn
2
+ module Api
3
+ module Endpoints
4
+ module Servers
5
+
6
+ def retrieve_servers(memoize: true)
7
+ servers = memoize ? self.cache.fetch("servers", nil) : nil
8
+
9
+ if servers.nil?
10
+ servers = get("/server")&.body
11
+ self.cache["servers"] = servers if memoize
12
+ end
13
+
14
+ return servers
15
+ end
16
+
17
+ def country_servers
18
+ get("/v1/servers/countries")&.body
19
+ end
20
+
21
+ def ikev2_servers(servers: nil, memoize: true)
22
+ servers_by_features(features: ["ikev2"], servers: servers, memoize: memoize)
23
+ end
24
+
25
+ def openvpn_tcp_servers(servers: nil, memoize: true)
26
+ servers_by_features(features: ["openvpn_tcp"], servers: servers, memoize: memoize)
27
+ end
28
+
29
+ def openvpn_udp_servers(servers: nil, memoize: true)
30
+ servers_by_features(features: ["openvpn_udp"], servers: servers, memoize: memoize)
31
+ end
32
+
33
+ def socks_servers(servers: nil, memoize: true)
34
+ servers_by_features(features: ["socks"], servers: servers, memoize: memoize)
35
+ end
36
+
37
+ def proxy_servers(servers: nil, memoize: true)
38
+ servers_by_features(features: ["proxy", "proxy_ssl"], servers: servers, memoize: memoize)
39
+ end
40
+
41
+ def pptp_servers(servers: nil, memoize: true)
42
+ servers_by_features(features: ["pptp"], servers: servers, memoize: memoize)
43
+ end
44
+
45
+ def l2tp_servers(servers: nil, memoize: true)
46
+ servers_by_features(features: ["l2tp"], servers: servers, memoize: memoize)
47
+ end
48
+
49
+ def servers_by_features(features: [], servers: nil, memoize: true)
50
+ filtered = []
51
+
52
+ servers = servers.nil? ? retrieve_servers(memoize: memoize) : servers
53
+
54
+ servers&.each do |server|
55
+ matching_all = true
56
+
57
+ features.each do |feature|
58
+ matching_all = matching_all && server.dig("features", feature).eql?(true)
59
+ break if !matching_all
60
+ end
61
+
62
+ filtered << server if matching_all
63
+ end
64
+
65
+ return filtered
66
+ end
67
+
68
+ def servers_by_country(country, servers: nil, memoize: true)
69
+ servers = servers.nil? ? retrieve_servers(memoize: memoize) : servers
70
+ filtered = servers&.select { |server| server["flag"].downcase.eql?(country.downcase) }
71
+ end
72
+
73
+ def servers_by_type_and_country(type, country, servers: nil, memoize: true)
74
+ result = send("#{type}_servers", servers: servers, memoize: memoize)
75
+ result = servers_by_country(country, servers: result, memoize: memoize)
76
+ end
77
+
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,5 @@
1
+ module Nordvpn
2
+ module Api
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,46 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "nordvpn/api/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "nordvpn-api"
8
+ spec.version = Nordvpn::Api::VERSION
9
+ spec.authors = ["Sebastian Johnsson"]
10
+ spec.email = ["sebastian.johnsson@gmail.com"]
11
+
12
+ spec.summary = %q{NordVPN API Client in Ruby}
13
+ spec.description = %q{Ruby client to interact with }
14
+ spec.homepage = "https://github.com/SebastianJ/nordvpn-api"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/SebastianJ/nordvpn-api"
22
+ spec.metadata["changelog_uri"] = "https://github.com/SebastianJ/nordvpn-api/CHANGELOG.md"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_dependency "faraday", ">= 0.15.4"
38
+ spec.add_dependency "faraday_middleware", ">= 0.13.1"
39
+ spec.add_dependency "agents", ">= 0.1.4"
40
+
41
+ spec.add_development_dependency "bundler", "~> 1.17"
42
+ spec.add_development_dependency "rake", "~> 10.0"
43
+ spec.add_development_dependency "rspec", "~> 3.0"
44
+
45
+ spec.add_development_dependency "pry", "~> 0.12.2"
46
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nordvpn-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian Johnsson
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-07-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.15.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.15.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.13.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.13.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: agents
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.4
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.17'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.17'
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: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.12.2
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.12.2
111
+ description: 'Ruby client to interact with '
112
+ email:
113
+ - sebastian.johnsson@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - lib/nordvpn/api.rb
130
+ - lib/nordvpn/api/client.rb
131
+ - lib/nordvpn/api/configuration.rb
132
+ - lib/nordvpn/api/endpoints/servers.rb
133
+ - lib/nordvpn/api/version.rb
134
+ - nordvpn-api.gemspec
135
+ homepage: https://github.com/SebastianJ/nordvpn-api
136
+ licenses:
137
+ - MIT
138
+ metadata:
139
+ homepage_uri: https://github.com/SebastianJ/nordvpn-api
140
+ source_code_uri: https://github.com/SebastianJ/nordvpn-api
141
+ changelog_uri: https://github.com/SebastianJ/nordvpn-api/CHANGELOG.md
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
+ rubygems_version: 3.0.3
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: NordVPN API Client in Ruby
161
+ test_files: []