instant2fa 0.0.1

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
+ SHA1:
3
+ metadata.gz: 08dc3834cf91694551e139385cf3c8c931a063b9
4
+ data.tar.gz: 75b4749b3d8b4f1165bf71b52ebab688d9c43daf
5
+ SHA512:
6
+ metadata.gz: 2ef0b4c316c6321cdab9ce26c526c20f9a2405ce9ec0b5a6e9b35f1492cf11ac99c6d59a43d17e82202c3cbce935023deebd9cce7b82537e86bae1f9fa8c6e9f
7
+ data.tar.gz: e9b49e825e3a2f66cbd35d83a444991332c9e61b1cbfcc37b73aa342c42563456add4df9755a134bc0bb452fdef9b4b1af3306c6d4318c5b972c2fb77f98d7af
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ *.gem
2
+ /.bundle/
3
+ /.yardoc
4
+ /Gemfile.lock
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.0.0
5
+ before_install: gem install bundler -v 1.13.6
@@ -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 jesse@pollak.io. 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,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in instant2fa.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,42 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
+ require "guard/rspec/dsl"
29
+ dsl = Guard::RSpec::Dsl.new(self)
30
+
31
+ # Feel free to open issues for suggestions and improvements
32
+
33
+ # RSpec files
34
+ rspec = dsl.rspec
35
+ watch(rspec.spec_helper) { rspec.spec_dir }
36
+ watch(rspec.spec_support) { rspec.spec_dir }
37
+ watch(rspec.spec_files)
38
+
39
+ # Ruby files
40
+ ruby = dsl.ruby
41
+ dsl.watch_spec_files_for(ruby.lib_files)
42
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Jesse Pollak
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,54 @@
1
+ # Instant2FA
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/instant2fa`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'instant2fa'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install instant2fa
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ Instant2FA.configure do |config|
27
+ config.access_key = 'YOUR_ACCESS_KEY'
28
+ config.access_secret = 'YOUR_ACCESS_SECRET'
29
+ end
30
+
31
+ distinct_id = "A_UNIQUE_ID_FOR_A_USER"
32
+
33
+ hosted_page_url = Instant2FA.create_settings(distinct_id)
34
+ hosted_page_url = Instant2FA.create_verification(distinct_id)
35
+ verification_succeeded = Instant2FA.confirm_verification(distinct_id, token)
36
+ ```
37
+
38
+ TODO: Write usage instructions here
39
+
40
+ ## Development
41
+
42
+ 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.
43
+
44
+ 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).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/instant2fa. 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.
49
+
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
54
+
data/Rakefile ADDED
@@ -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
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "instant2fa"
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
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,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'instant2fa/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "instant2fa"
8
+ spec.version = Instant2FA::VERSION
9
+ spec.authors = ["Jesse Pollak"]
10
+ spec.email = ["jesse@instant2fa.com"]
11
+
12
+ spec.summary = %q{A library for using the Instant 2FA API.}
13
+ spec.homepage = "https://instant2fa.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.13"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency "guard-rspec", "~> 4", ">= 4.7.3"
27
+ spec.add_development_dependency "pry", "~> 0.10", ">= 0.10.4"
28
+
29
+ spec.add_dependency "json_api_client", ">= 1.3.0", "<2.0.0"
30
+ spec.add_dependency 'activesupport', ">= 4.0.0", "<5.0.0"
31
+ end
@@ -0,0 +1,72 @@
1
+ require 'base64'
2
+ require 'json'
3
+
4
+ require 'instant2fa/resources'
5
+ require 'instant2fa/errors'
6
+ require 'instant2fa/middleware/unprocessable_entity_status'
7
+
8
+ module Instant2FA
9
+ class Client
10
+
11
+ attr_accessor :config
12
+
13
+ def initialize(config=Instant2FA.config.dup, options={})
14
+ @config = config
15
+
16
+ Resources::Base.site = @config.api_base
17
+ Resources::Base.connection(true) do |connection|
18
+ # hack because it currently doesn't raise for 422
19
+ connection.use Middleware::UnprocessableEntityStatus
20
+ connection.use FaradayMiddleware::FollowRedirects
21
+ connection.use Faraday::Request::BasicAuthentication, @config.access_key, @config.access_secret
22
+ end
23
+ end
24
+
25
+ def create_settings(distinct_id, options = {})
26
+ user_access_token = Resources::UserAccessToken.create(distinct_id: distinct_id)
27
+ raise_if_errors(user_access_token)
28
+ return user_access_token.hosted_page_url
29
+ end
30
+
31
+ def create_verification(distinct_id, options = {})
32
+ begin
33
+ verification_request = Resources::VerificationRequest.create(distinct_id: distinct_id)
34
+ raise_if_errors(verification_request)
35
+ rescue JsonApiClient::Errors::UnprocessableEntity
36
+ raise Errors::MFANotEnabled.new, "User has not enabled an MFA device on their account."
37
+ end
38
+
39
+ return verification_request.hosted_page_url
40
+ end
41
+
42
+ def confirm_verification(distinct_id, token, options = {})
43
+ verification_response_result_set = Resources::VerificationResponseToken.find(token)
44
+ verification_response = verification_response_result_set[0]
45
+
46
+ if verification_response.distinct_id != distinct_id
47
+ raise Errors::VerificationMismatch, "The distinctID passed back from the request didn't match the one passed into this function. Are you passing in the right value for distinctID?"
48
+ end
49
+
50
+ if verification_response.status != 'succeeded'
51
+ raise Errors::VerificationFailed, "The verification did not pass. The status was: #{verification_response.status}."
52
+ end
53
+
54
+ true
55
+ end
56
+
57
+ protected
58
+
59
+ def raise_if_errors(resource)
60
+ unless resource.errors.empty?
61
+ raise Errors::ValidationError, "#{resource.class} could not be created due to a validation error."
62
+ end
63
+ end
64
+
65
+ def symoblize_keys(hash)
66
+ hash.inject({}) do |memo, (k, v)|
67
+ memo[k.to_sym] = v.is_a?(Hash) ? symoblize_keys(v) : v
68
+ memo
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,18 @@
1
+ require "instant2fa/resources"
2
+
3
+ module Instant2FA
4
+ class Configuration
5
+ attr_accessor :access_key
6
+ attr_accessor :access_secret
7
+ attr_accessor :api_base
8
+ attr_accessor :debug
9
+
10
+ def initialize
11
+ @api_base = 'https://api.instant2fa.com/'
12
+ end
13
+
14
+ def debug?
15
+ @debug
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Instant2FA
2
+ module Errors
3
+ class Instant2FAError < StandardError
4
+ end
5
+
6
+ class MFANotEnabled < Instant2FAError
7
+ end
8
+
9
+ class ValidationError < Instant2FAError
10
+ end
11
+
12
+ class VerificationMismatch < Instant2FAError
13
+ end
14
+
15
+ class VerificationFailed < Instant2FAError
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,37 @@
1
+ module JsonApiClient::Errors
2
+ unless defined? UnprocessableEntity
3
+ class UnprocessableEntity < ServerError
4
+ def message
5
+ "Unable to process request"
6
+ end
7
+ end
8
+ end
9
+ end
10
+
11
+ module Instant2FA
12
+ module Middleware
13
+ class UnprocessableEntityStatus < Faraday::Middleware
14
+ def call(environment)
15
+ @app.call(environment).on_complete do |env|
16
+ handle_status(env[:status], env)
17
+
18
+ # look for meta[:status]
19
+ if env[:body].is_a?(Hash)
20
+ code = env[:body].fetch("meta", {}).fetch("status", 200).to_i
21
+ handle_status(code, env)
22
+ end
23
+ end
24
+ rescue Faraday::ConnectionFailed, Faraday::TimeoutError
25
+ raise Errors::ConnectionError, environment
26
+ end
27
+
28
+ protected
29
+
30
+ def handle_status(code, env)
31
+ if code == 422
32
+ raise JsonApiClient::Errors::UnprocessableEntity, env
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,46 @@
1
+ require 'json_api_client'
2
+
3
+ module Instant2FA
4
+ class ConnectionConfiguration
5
+ end
6
+
7
+ module Resources
8
+ class UnprocessableEntity < JsonApiClient::Errors::ServerError
9
+ def message
10
+ "Unable to process request"
11
+ end
12
+ end
13
+
14
+ class Base < JsonApiClient::Resource
15
+ property :distinct_id, type: :string
16
+
17
+ def self.site=(url)
18
+ super(url)
19
+ self.connection(rebuild: true)
20
+ end
21
+
22
+ def self.path(params)
23
+ previous = super(params)
24
+ previous + "/"
25
+ end
26
+
27
+ self.site = 'https://api.instant2fa.com/'
28
+ self.route_format = :dasherized_key
29
+ end
30
+
31
+ class UserAccessToken < Base
32
+ property :hosted_page_url, type: :string
33
+ end
34
+
35
+ class VerificationRequest < Base
36
+ property :hosted_page_url, type: :string
37
+ end
38
+
39
+ class VerificationResponseToken < Base
40
+ end
41
+
42
+ class VerificationResponse < Base
43
+ property :status, type: :string
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,3 @@
1
+ module Instant2FA
2
+ VERSION = "0.0.1"
3
+ end
data/lib/instant2fa.rb ADDED
@@ -0,0 +1,29 @@
1
+ require "active_support"
2
+ require "active_support/core_ext"
3
+
4
+ require "instant2fa/version"
5
+ require "instant2fa/configuration"
6
+ require "instant2fa/client"
7
+
8
+ module Instant2FA
9
+ extend self
10
+
11
+ def configure
12
+ yield(config)
13
+ end
14
+
15
+ def config
16
+ @config ||= Configuration.new
17
+ end
18
+
19
+ def new(config=Instant2FA.config.dup, options={})
20
+ Client.new(config, options)
21
+ end
22
+
23
+ def client
24
+ @client ||= new(config)
25
+ end
26
+
27
+ delegate(*Configuration.public_instance_methods(false), to: :config)
28
+ delegate(*Client.public_instance_methods(false) - [:config], to: :client)
29
+ end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: instant2fa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jesse Pollak
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-11-06 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.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 4.7.3
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '4'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 4.7.3
75
+ - !ruby/object:Gem::Dependency
76
+ name: pry
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.10'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 0.10.4
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '0.10'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 0.10.4
95
+ - !ruby/object:Gem::Dependency
96
+ name: json_api_client
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 1.3.0
102
+ - - "<"
103
+ - !ruby/object:Gem::Version
104
+ version: 2.0.0
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: 1.3.0
112
+ - - "<"
113
+ - !ruby/object:Gem::Version
114
+ version: 2.0.0
115
+ - !ruby/object:Gem::Dependency
116
+ name: activesupport
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: 4.0.0
122
+ - - "<"
123
+ - !ruby/object:Gem::Version
124
+ version: 5.0.0
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 4.0.0
132
+ - - "<"
133
+ - !ruby/object:Gem::Version
134
+ version: 5.0.0
135
+ description:
136
+ email:
137
+ - jesse@instant2fa.com
138
+ executables: []
139
+ extensions: []
140
+ extra_rdoc_files: []
141
+ files:
142
+ - ".gitignore"
143
+ - ".rspec"
144
+ - ".travis.yml"
145
+ - CODE_OF_CONDUCT.md
146
+ - Gemfile
147
+ - Guardfile
148
+ - LICENSE.txt
149
+ - README.md
150
+ - Rakefile
151
+ - bin/console
152
+ - bin/setup
153
+ - instant2fa.gemspec
154
+ - lib/instant2fa.rb
155
+ - lib/instant2fa/client.rb
156
+ - lib/instant2fa/configuration.rb
157
+ - lib/instant2fa/errors.rb
158
+ - lib/instant2fa/middleware/unprocessable_entity_status.rb
159
+ - lib/instant2fa/resources.rb
160
+ - lib/instant2fa/version.rb
161
+ homepage: https://instant2fa.com
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.5.1
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: A library for using the Instant 2FA API.
185
+ test_files: []