digifi_api 2.0.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: 82f3b1ce01a6bb111593152809df5151bc91adc8d065e5dfad8d5caeae92ed1b
4
+ data.tar.gz: a1f6a73b451e71c2677392d196b9051fdfc7c7897e4ae62d967863c177e6b626
5
+ SHA512:
6
+ metadata.gz: b62b6f8b1539b29586e1198d16b84cd4f6688ec6a9258a2836141a5c4b3be68b44a1c34d41b38a8d7fa45c7fdd75329b1679f5e40f38d3b848478ddc92da2784
7
+ data.tar.gz: e213f96208f0d352bcbb4f844bf3bdc64f055105bd488f712c264255baf93e7267c5b69af1234a1a509308c4012e9ce8ba5f8eb15b2476c7ff4aefd4a2544372
data/.gitignore ADDED
@@ -0,0 +1,13 @@
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
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.1
7
+ before_install: gem install bundler -v 1.16.4
@@ -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 justinlyman@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 digifi_api.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ digifi_api (2.0.0)
5
+ json (~> 2.1.0)
6
+ rest-client (~> 2.0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ coderay (1.1.2)
14
+ crack (0.4.3)
15
+ safe_yaml (~> 1.0.0)
16
+ diff-lcs (1.3)
17
+ domain_name (0.5.20180417)
18
+ unf (>= 0.0.5, < 1.0.0)
19
+ hashdiff (0.3.7)
20
+ http-cookie (1.0.3)
21
+ domain_name (~> 0.5)
22
+ json (2.1.0)
23
+ method_source (0.9.0)
24
+ mime-types (3.2.2)
25
+ mime-types-data (~> 3.2015)
26
+ mime-types-data (3.2018.0812)
27
+ netrc (0.11.0)
28
+ pry (0.11.3)
29
+ coderay (~> 1.1.0)
30
+ method_source (~> 0.9.0)
31
+ public_suffix (3.0.3)
32
+ rake (10.5.0)
33
+ rest-client (2.0.2)
34
+ http-cookie (>= 1.0.2, < 2.0)
35
+ mime-types (>= 1.16, < 4.0)
36
+ netrc (~> 0.8)
37
+ rspec (3.8.0)
38
+ rspec-core (~> 3.8.0)
39
+ rspec-expectations (~> 3.8.0)
40
+ rspec-mocks (~> 3.8.0)
41
+ rspec-core (3.8.0)
42
+ rspec-support (~> 3.8.0)
43
+ rspec-expectations (3.8.1)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.8.0)
46
+ rspec-mocks (3.8.0)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.8.0)
49
+ rspec-support (3.8.0)
50
+ safe_yaml (1.0.4)
51
+ unf (0.1.4)
52
+ unf_ext
53
+ unf_ext (0.0.7.5)
54
+ webmock (3.4.2)
55
+ addressable (>= 2.3.6)
56
+ crack (>= 0.3.2)
57
+ hashdiff
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ bundler (~> 1.16)
64
+ digifi_api!
65
+ pry (~> 0.11.3)
66
+ rake (~> 10.0)
67
+ rspec (~> 3.0)
68
+ webmock (~> 3.4.2)
69
+
70
+ BUNDLED WITH
71
+ 1.16.4
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Justin Lyman
4
+
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # DigifiApi
2
+
3
+ Ruby wrapper for the DigiFi API V2.
4
+
5
+ API Docs: <https://docs.digifi.io/v2/reference#introduction>
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'digifi_api'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install digifi_api
22
+
23
+ ## Setup in Rails
24
+
25
+ 1. Add configuration for each environment in config/secrets.yml or whatever your strategy is for storing sensitive variables.
26
+
27
+ ```yaml
28
+ development:
29
+ digifi_api:
30
+ client_id: 'yourclientidhere'
31
+ client_app_key: 'yourclientappkeyhere'
32
+ secret: 'yoursecrethere'
33
+ base_uri: 'https://cloud.digifi.io/api/v2'
34
+ test:
35
+ digifi_api:
36
+ client_id: 'yourclientidhere'
37
+ client_app_key: 'yourclientappkeyhere'
38
+ secret: 'yoursecrethere'
39
+ base_uri: 'https://cloud.digifi.io/api/v2'
40
+ production:
41
+ digifi_api:
42
+ client_id: 'yourclientidhere'
43
+ client_app_key: 'yourclientappkeyhere'
44
+ secret: 'yoursecrethere'
45
+ base_uri: 'https://cloud.digifi.io/api/v2'
46
+ ```
47
+
48
+ 2. Create an initializer: /config/initializers/digifi_api.rb
49
+
50
+ 3. Add the configure block to your initializer
51
+
52
+ ```ruby
53
+ DigifiApi.configure do |config|
54
+ config.client_id = Rails.application.secrets.digifi_api.client_id
55
+ config.client_public_key = Rails.application.secrets.digifi_api.client_app_key
56
+ config.secret = Rails.application.secrets.digifi_api.secret
57
+ end
58
+ ```
59
+
60
+ ## Usage
61
+
62
+ ### ML Models
63
+
64
+ #### Submit Method:
65
+ ```ruby
66
+ DigifiApi::MLModel.submit('model_name', inputs_hash, options_hash)
67
+ ```
68
+
69
+ #### Options:
70
+ - client\_transaction\_id :string
71
+
72
+ ### ML Rules Engine
73
+
74
+ #### Submit Method:
75
+ ```ruby
76
+ DigifiApi::MLRulesEngine.submit('strategy_name', 'strategy_status', variables_hash, options_hash)
77
+ ```
78
+ ### Options:
79
+ - return\_input\_variables:bool
80
+ - return\_processing\_detail:bool
81
+ - return\_data\_sources:bool
82
+
83
+ ## Development
84
+
85
+ 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.
86
+
87
+ 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).
88
+
89
+ ## Contributing
90
+
91
+ Bug reports and pull requests are welcome on GitHub at https://github.com/justinlyman/digifi_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.
92
+
93
+ ## License
94
+
95
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
96
+
97
+ ## Code of Conduct
98
+
99
+ Everyone interacting in the DigifiApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/digifi_api/blob/master/CODE_OF_CONDUCT.md).
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 "digifi_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.start
12
+
13
+ require "irb"
14
+ 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,36 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "digifi_api/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "digifi_api"
8
+ spec.version = DigifiApi::VERSION
9
+ spec.authors = ["Justin Lyman\n"]
10
+ spec.email = ["justinlyman@gmail.com"]
11
+
12
+ spec.summary = "DigiFi API wrapper"
13
+ spec.description = "DigiFi API wrapper, easily configure and interact with the DigiFi API V2 endpoints"
14
+ spec.homepage = "https://github.com/justinlyman/digifi_api"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ # Development Dependencies
27
+ spec.add_development_dependency "bundler", "~> 1.16"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "rspec", "~> 3.0"
30
+ spec.add_development_dependency "pry", "~> 0.11.3"
31
+ spec.add_development_dependency "webmock", "~> 3.4.2"
32
+
33
+ # Runtime Dependencies
34
+ spec.add_runtime_dependency "rest-client", "~> 2.0.2"
35
+ spec.add_runtime_dependency "json", "~> 2.1.0"
36
+ end
@@ -0,0 +1,43 @@
1
+ require 'rest-client'
2
+ require 'json'
3
+
4
+ module DigifiApi
5
+ class Base
6
+
7
+ def self.headers
8
+ {content_type: :json, accept: :json}
9
+ end
10
+
11
+ def self.payload(elements)
12
+ body_hash = Hash.new
13
+ body_hash['client_id'] = DigifiApi.configuration.client_id
14
+ body_hash['client_public_key'] = DigifiApi.configuration.client_public_key
15
+ body_hash['client_secret'] = DigifiApi.configuration.secret
16
+ body_hash.merge!(elements)
17
+ end
18
+
19
+ def self.post(resource_uri, elements)
20
+ if DigifiApi.configuration.configured?
21
+ RestClient::Request.execute(:method => :post, url: (DigifiApi.configuration.base_uri + resource_uri), payload: payload(elements), headers: headers, use_ssl: true, verify_ssl: OpenSSL::SSL::VERIFY_NONE) do |response, request, result|
22
+ case response.code
23
+ when 200 # Success
24
+ return response
25
+ when 400 # Bad request
26
+ return { error: "#{response.code}: The request was incorrectly formed" }
27
+ when 401 # Unauthorized
28
+ return { error: "#{response.code}: The authentication credentials were incorrect" }
29
+ when 404 # Strategy not found
30
+ return { error: "#{response.code}: The requested strategy or model cannot be found" }
31
+ when 500 # Internal server error
32
+ return { error: "#{response.code}: There was an error on the server" }
33
+ else
34
+ return { error: "#{response.code}" }
35
+ end
36
+ end
37
+ else
38
+ return { error: "Configuration must be valid before making a request" }
39
+ end
40
+ end
41
+
42
+ end
43
+ end
@@ -0,0 +1,32 @@
1
+ module DigifiApi
2
+ class Configuration
3
+
4
+ attr_accessor :client_id, :client_public_key, :secret, :base_uri
5
+
6
+ DEFAULT_CLIENT_ID = nil
7
+ DEFAULT_CLIENT_PUBLIC_KEY = nil
8
+ DEFAULT_SECRET = nil
9
+ DEFAULT_BASE_URI = 'https://cloud.digifi.io/api/v2'
10
+
11
+ def initialize
12
+ @client_id = DEFAULT_CLIENT_ID
13
+ @client_public_key = DEFAULT_CLIENT_ID
14
+ @secret = DEFAULT_SECRET
15
+ @base_uri = DEFAULT_BASE_URI
16
+ end
17
+
18
+ def configured?
19
+ !client_id.nil? &&
20
+ !client_public_key.nil? &&
21
+ !secret.nil? &&
22
+ !base_uri.nil?
23
+ end
24
+
25
+ def reset
26
+ @client_id = DEFAULT_CLIENT_ID
27
+ @client_public_key = DEFAULT_CLIENT_ID
28
+ @secret = DEFAULT_SECRET
29
+ @base_uri = DEFAULT_BASE_URI
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,31 @@
1
+ require "digifi_api/base"
2
+
3
+ module DigifiApi
4
+ class MLModel < DigifiApi::Base
5
+
6
+ @resource_uri = '/ml_models'
7
+
8
+ # model_name:string required
9
+ # inputs:object required
10
+ # client_transaction_id opt
11
+
12
+ def self.submit(model_name, inputs_hash, options={})
13
+
14
+ return { error: "model_name is required" } if model_name.nil?
15
+ return { error: "inputs_hash is required" } if inputs_hash.nil?
16
+
17
+ elements = Hash.new
18
+ # Required Elements
19
+ elements['model_name'] = model_name
20
+ elements['inputs_hash'] = inputs_hash
21
+
22
+ # Optional Elements
23
+ if options['client_transaction_id']
24
+ elements['client_transaction_id'] = options['client_transaction_id']
25
+ end
26
+
27
+ response = self.post(@resource_uri, elements)
28
+ end
29
+
30
+ end
31
+ end
@@ -0,0 +1,54 @@
1
+ require "digifi_api/base"
2
+
3
+ module DigifiApi
4
+ class MLRulesEngine < DigifiApi::Base
5
+
6
+ @resource_uri = '/ml_rules_engine'
7
+
8
+ # strategy_name:string required
9
+ # strategy_status:string required
10
+ # variables:object required
11
+ # client_transaction_id opt
12
+ # return_input_variables:bool opt
13
+ # return_processing_detail:bool opt
14
+ # return_data_sources:bool opt
15
+
16
+ def self.submit(strategy_name, strategy_status, variables_hash, options={})
17
+
18
+ return { error: "strategy_name is required" } if strategy_name.nil?
19
+ return { error: "strategy_status is required" } if strategy_status.nil?
20
+
21
+ elements = Hash.new
22
+ # Required Elements
23
+ elements['strategy_name'] = strategy_name
24
+ elements['strategy_status'] = strategy_status
25
+ elements['variables'] = variables_hash
26
+
27
+ # Optional Elements
28
+ if options['client_transaction_id']
29
+ elements['client_transaction_id'] = options['client_transaction_id']
30
+ end
31
+
32
+ if options['return_input_variables']
33
+ if options['return_input_variables'] == true || options['return_input_variables'] == 'true'
34
+ elements['return_input_variables'] = true
35
+ end
36
+ end
37
+
38
+ if options['return_processing_detail']
39
+ if options['return_processing_detail'] == true || options['return_processing_detail'] == 'true'
40
+ elements['return_processing_detail'] = true
41
+ end
42
+ end
43
+
44
+ if options['return_data_sources']
45
+ if options['return_data_sources'] == true || options['return_data_sources'] == 'true'
46
+ elements['return_data_sources'] = true
47
+ end
48
+ end
49
+
50
+ response = self.post(@resource_uri, elements)
51
+ end
52
+
53
+ end
54
+ end
@@ -0,0 +1,3 @@
1
+ module DigifiApi
2
+ VERSION = "2.0.0"
3
+ end
data/lib/digifi_api.rb ADDED
@@ -0,0 +1,21 @@
1
+ require "digifi_api/version"
2
+ require "digifi_api/configuration"
3
+ require "digifi_api/base"
4
+ require "digifi_api/ml_model"
5
+ require 'digifi_api/ml_rules_engine'
6
+
7
+ module DigifiApi
8
+ class << self
9
+
10
+ attr_writer :configuration
11
+
12
+ def configure
13
+ yield configuration
14
+ end
15
+
16
+ def configuration
17
+ @configuration ||= Configuration.new
18
+ end
19
+
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: digifi_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - 'Justin Lyman
8
+
9
+ '
10
+ autorequire:
11
+ bindir: exe
12
+ cert_chain: []
13
+ date: 2018-09-19 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.16'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '1.16'
29
+ - !ruby/object:Gem::Dependency
30
+ name: rake
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '10.0'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '10.0'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rspec
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '3.0'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '3.0'
57
+ - !ruby/object:Gem::Dependency
58
+ name: pry
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: 0.11.3
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: 0.11.3
71
+ - !ruby/object:Gem::Dependency
72
+ name: webmock
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 3.4.2
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: 3.4.2
85
+ - !ruby/object:Gem::Dependency
86
+ name: rest-client
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: 2.0.2
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: 2.0.2
99
+ - !ruby/object:Gem::Dependency
100
+ name: json
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: 2.1.0
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: 2.1.0
113
+ description: DigiFi API wrapper, easily configure and interact with the DigiFi API
114
+ V2 endpoints
115
+ email:
116
+ - justinlyman@gmail.com
117
+ executables: []
118
+ extensions: []
119
+ extra_rdoc_files: []
120
+ files:
121
+ - ".gitignore"
122
+ - ".rspec"
123
+ - ".travis.yml"
124
+ - CODE_OF_CONDUCT.md
125
+ - Gemfile
126
+ - Gemfile.lock
127
+ - LICENSE.txt
128
+ - README.md
129
+ - Rakefile
130
+ - bin/console
131
+ - bin/setup
132
+ - digifi_api.gemspec
133
+ - lib/digifi_api.rb
134
+ - lib/digifi_api/base.rb
135
+ - lib/digifi_api/configuration.rb
136
+ - lib/digifi_api/ml_model.rb
137
+ - lib/digifi_api/ml_rules_engine.rb
138
+ - lib/digifi_api/version.rb
139
+ homepage: https://github.com/justinlyman/digifi_api
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.7.6
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: DigiFi API wrapper
163
+ test_files: []