vericred 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
+ SHA1:
3
+ metadata.gz: ae610f28b156fd1c08054c0797f69b7aaec226af
4
+ data.tar.gz: baaaffe27dc229dcbc68706318871580231609e3
5
+ SHA512:
6
+ metadata.gz: 27d553dde5b5ddf8a364e694baf21bdbca69c4300df72f4746eed5e011340a4a7aecc72edd8cc222c78f18607dd9d35543bf3c878c721378847fb9d12b904da0
7
+ data.tar.gz: f103bc7e1b19bdf694f8b8b38795bfdd99d7906ffe379a6808039ef745921713bd40639c75373fed62d56c14dd4a7193750c7ff5f3ebf5bcf219a47090768d6c
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ before_install: gem install bundler -v 1.10.5
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in vericred.gemspec
4
+ gemspec
@@ -0,0 +1,70 @@
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
+
43
+ # Rails files
44
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
45
+ dsl.watch_spec_files_for(rails.app_files)
46
+ dsl.watch_spec_files_for(rails.views)
47
+
48
+ watch(rails.controllers) do |m|
49
+ [
50
+ rspec.spec.("routing/#{m[1]}_routing"),
51
+ rspec.spec.("controllers/#{m[1]}_controller"),
52
+ rspec.spec.("acceptance/#{m[1]}")
53
+ ]
54
+ end
55
+
56
+ # Rails config changes
57
+ watch(rails.spec_helper) { rspec.spec_dir }
58
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
59
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
60
+
61
+ # Capybara features specs
62
+ watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
63
+ watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
64
+
65
+ # Turnip features and steps
66
+ watch(%r{^spec/acceptance/(.+)\.feature$})
67
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
69
+ end
70
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Dan Langevin
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,142 @@
1
+ # Vericred
2
+
3
+ A client gem to interact with the Vericred API. It provides useful helpers for:
4
+
5
+ - Futures
6
+ - Sideloading data
7
+ - Pagination (TODO)
8
+
9
+ ## Additional Documentation
10
+ Full generated API docs here. Documentation of the REST API itself here.
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'vericred'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install vericred
27
+
28
+ ### With Rails
29
+
30
+ Add a configuration block in `config/initializers/vericred.rb`
31
+ ```ruby
32
+ Vericred.configure do |config|
33
+ config.api_key = ENV['VERICRED_API_KEY']
34
+ end
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ### Retrieving an Individual Record
40
+ ```ruby
41
+ Vericred::Provider.find(npi) # => Vericred::Provider
42
+ ```
43
+
44
+ ### Retrieving a List of Records
45
+ ```ruby
46
+ Vericred::Provider.search(search_term: 'foo', zip_code: '11215')
47
+ # => [Vericred::Provider, Vericred::Provider]
48
+ ```
49
+
50
+ ### Sideloaded data
51
+ Sideloaded data is automatically added to the object found. For example,
52
+ `Vericred::ZipCounty` includes `Vericred::ZipCode` and `Vericred::County`
53
+ with the following response (simplified)
54
+ ```json
55
+ {
56
+ "zip_counties": [{"id": 1, "zip_code_id": 2, "county_id": 3}],
57
+ "counties": [{"id": 3, "name": "County"}],
58
+ "zip_codes": [{"id": 2, "code": "12345"}]
59
+ }
60
+ ```
61
+
62
+ When we `.search` for `Vericred::ZipCounties` the records returned already
63
+ have access to their `Vericred::County` and `Vericred::ZipCode`
64
+
65
+ ```ruby
66
+ zip_counties = Vericred::ZipCounty.search(zip_prefix: '12345')
67
+ zip_counties.first.county.name # => County
68
+ zip_counties.first.zip_code.code # => 12345
69
+ ```
70
+
71
+ ### Using Futures
72
+ Any individual or list of records can be found using a Future. This
73
+ allows you to make a request early in the execution of your codepath
74
+ and allow the API to return a result without blocking execution. It also
75
+ allows you to make requests to the API in parallel.
76
+
77
+ ```ruby
78
+ futures = [npi1, npi2, npi3]
79
+ .map { |id| Vericred::Provider.future.find(npi) }
80
+ # do some other stuff in the meantime, then call #value to get the result
81
+ providers = futures.map(&:value)
82
+ ```
83
+
84
+ ### Error Handling
85
+
86
+ Generic error handling:
87
+ ```ruby
88
+ begin
89
+ Vericred::Provider.find(npi)
90
+ rescue Vericred::Error => e
91
+ # Retry or do something else
92
+ end
93
+ ```
94
+
95
+ Handling each possible error
96
+ ```ruby
97
+ begin
98
+ Vericred::Provider.find(npi)
99
+ rescue Vericred::UnauthenticatedError => e
100
+ # No credentials supplied
101
+ rescue Vericred::UnauthorizedError => e
102
+ # Invalid credentials
103
+ rescue Vericred::UnprocessableEntityError => e
104
+ # Invalid parameters have been specified
105
+ rescue Vericred::UnknownError => e
106
+ # Something else has gone wrong - see e.errors for details
107
+ end
108
+ ```
109
+ Every instance of `Vericred::Error` has an `#errors` method, which returns
110
+ the parsed error messages from the server. They are in the format.
111
+ ```json
112
+ {
113
+ "errors": {
114
+ "field_or_category": ["list", "of", "things", "wrong"]
115
+ }
116
+ }
117
+ ```
118
+
119
+ When parsed, they can be accessed like:
120
+ ```ruby
121
+ begin
122
+ Vericred::Provider.find(npi)
123
+ rescue Vericred::Error => e
124
+ e.errors.field_or_category.join(', ') # "list, of, things, wrong"
125
+ end
126
+ ```
127
+
128
+ ## Development
129
+
130
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
131
+
132
+ 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).
133
+
134
+ ## Contributing
135
+
136
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vericred. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
137
+
138
+
139
+ ## License
140
+
141
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
142
+
@@ -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,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "vericred"
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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+ require 'celluloid/current'
4
+ require 'httpclient'
5
+ require 'json'
6
+ require 'ostruct'
7
+
8
+ require 'vericred/version'
9
+ require 'vericred/api_resource'
10
+ require 'vericred/api_resource/relationships/base'
11
+ require 'vericred/api_resource/relationships/belongs_to'
12
+ require 'vericred/api_resource/relationships/has_many'
13
+ require 'vericred/errors'
14
+ require 'vericred/future_proxy'
15
+ require 'vericred/connection'
16
+ require 'vericred/resources'
17
+
18
+ module Vericred
19
+ def self.config
20
+ @config ||= OpenStruct.new
21
+ end
22
+
23
+ def self.configure(&block)
24
+ yield(self.config)
25
+ end
26
+ end
@@ -0,0 +1,99 @@
1
+ module Vericred
2
+ class ApiResource
3
+ class_attribute :connection
4
+ class_attribute :logger
5
+ class_attribute :relationships
6
+
7
+ BASE_URL = "https://api.vericred.com"
8
+
9
+ self.relationships = { has_many: {}, belongs_to: {} }
10
+ self.logger = Logger.new(STDOUT)
11
+
12
+ def self.belongs_to(type)
13
+ self.relationships[:belongs_to][type] =
14
+ Vericred::Relationships::BelongsTo.new(self, type)
15
+ end
16
+
17
+ def self.connection
18
+ @connection ||= Vericred::Connection.pool(size: 5)
19
+ end
20
+
21
+ def self.find(id)
22
+ data = make_request(:get, uri(id), {}, headers)
23
+ new(data[root_name] || {}, data)
24
+ end
25
+
26
+ def self.future
27
+ FutureProxy.new(self)
28
+ end
29
+
30
+ def self.has_many(type)
31
+ self.relationships[:has_many][type] =
32
+ Vericred::Relationships::HasMany.new(self, type)
33
+ end
34
+
35
+ def self.uri(id = nil)
36
+ "/#{root_name.pluralize}".tap do |ret|
37
+ ret << "/#{id}" if id.present?
38
+ end
39
+ end
40
+
41
+ def self.headers
42
+ {
43
+ 'Vericred-Api-Key' => Vericred.config.api_key
44
+ }
45
+ end
46
+
47
+ def self.root_name
48
+ self.to_s.split("::").last.gsub(/([^^])([A-Z])/,'\1_\2').downcase
49
+ end
50
+
51
+ def self.search(query = {})
52
+ data = make_request(:get, uri, query, headers)
53
+ (data[root_name.pluralize] || []).map { |row| new(row, data) }
54
+ end
55
+
56
+ def initialize(attributes, full_data = {})
57
+ parse_relationships(attributes, full_data)
58
+ @data = OpenStruct.new(attributes)
59
+ end
60
+
61
+ private
62
+
63
+ def self.make_request(verb, uri, *args)
64
+ logger.info { "#{verb.to_s.upcase} #{uri} with #{args}"}
65
+ response = connection.send(verb, "#{BASE_URL}#{uri}", *args)
66
+ case response.status
67
+ when 200..299 then JSON.parse(response.content)
68
+ when 401 then fail Vericred::UnauthenticatedError, response
69
+ when 403 then fail Vericred::UnauthorizedError, response
70
+ when 422 then fail Vericred::UnprocessableEntityError, response
71
+ else
72
+ fail Vericred::UnknownError, response
73
+ end
74
+ end
75
+
76
+ def method_missing(m, *args, &block)
77
+ return @data.send(m, *args, &block) if @data.respond_to?(m)
78
+ super
79
+ end
80
+
81
+ def parse_relationships(attributes, full_data)
82
+ relationships.values.map(&:values).flatten.each do |relationship|
83
+ next if full_data[relationship.root_name].blank?
84
+ if relationship.singular?
85
+ record = full_data[relationship.root_name].find do |row|
86
+ row['id'] == attributes[relationship.foreign_key]
87
+ end
88
+ attributes[relationship.root_name.singularize] =
89
+ record ? OpenStruct.new(record) : nil
90
+ else
91
+ attributes[relationship.root_name] =
92
+ full_data[relationship.root_name]
93
+ .select { |row| attributes[relationship.foreign_key].include?(row['id'])}
94
+ .map { |row| OpenStruct.new(row) }
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,30 @@
1
+ module Vericred
2
+ module Relationships
3
+ class Base
4
+ def initialize(owner_klass, type)
5
+ @owner_klass = owner_klass
6
+ @type = type
7
+ end
8
+
9
+ def owned_klass
10
+ @owned_klass ||= Vericred.const_get(type.to_s.classify)
11
+ end
12
+
13
+ def plural?
14
+ !singular?
15
+ end
16
+
17
+ def singular?
18
+ fail NotImplementedError, 'must implement #singular?'
19
+ end
20
+
21
+ def root_name
22
+ owned_klass.root_name.pluralize
23
+ end
24
+
25
+ private
26
+
27
+ attr_reader :type
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,13 @@
1
+ module Vericred
2
+ module Relationships
3
+ class BelongsTo < Relationships::Base
4
+ def foreign_key
5
+ "#{root_name.singularize}_id"
6
+ end
7
+
8
+ def singular?
9
+ true
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Vericred
2
+ module Relationships
3
+ class HasMany < Relationships::Base
4
+ def foreign_key
5
+ "#{root_name.singularize}_ids"
6
+ end
7
+
8
+ def singular?
9
+ false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ module Vericred
2
+ class Connection
3
+ include Celluloid
4
+
5
+ def initialize
6
+ @connection = HTTPClient.new
7
+ end
8
+
9
+ delegate :get, :post, :put, :delete, to: :connection
10
+
11
+ private
12
+
13
+ attr_reader :connection
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ require 'ostruct'
2
+
3
+ module Vericred
4
+ class Error < RuntimeError
5
+ def initialize(response)
6
+ @response = response
7
+ end
8
+
9
+ def errors
10
+ OpenStruct.new(JSON.parse(response.content).try(:[], 'errors') || {})
11
+ end
12
+
13
+ def status
14
+ response.status
15
+ end
16
+
17
+ private
18
+
19
+ attr_reader :response
20
+ end
21
+
22
+ UnauthenticatedError = Class.new(Error)
23
+ UnauthorizedError = Class.new(Error)
24
+ UnprocessableEntityError = Class.new(Error)
25
+ UnknownError = Class.new(Error)
26
+ end
@@ -0,0 +1,15 @@
1
+ module Vericred
2
+ class FutureProxy
3
+ def initialize(object)
4
+ @object = object
5
+ end
6
+
7
+ private
8
+
9
+ attr_reader :object
10
+
11
+ def method_missing(m, *args, &block)
12
+ Celluloid::Future.new { object.send(m, *args, &block) }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,22 @@
1
+ module Vericred
2
+ class County < Vericred::ApiResource
3
+ end
4
+
5
+ class Plan < Vericred::ApiResource
6
+ end
7
+
8
+ class Provider < Vericred::ApiResource
9
+ belongs_to :state
10
+ end
11
+
12
+ class State < Vericred::ApiResource
13
+ end
14
+
15
+ class ZipCode < Vericred::ApiResource
16
+ end
17
+
18
+ class ZipCounty < Vericred::ApiResource
19
+ belongs_to :county
20
+ belongs_to :zip_code
21
+ end
22
+ end
@@ -0,0 +1,3 @@
1
+ module Vericred
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'vericred/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "vericred"
8
+ spec.version = Vericred::VERSION
9
+ spec.authors = ["Dan Langevin"]
10
+ spec.email = ["dlangevin@vericred.com"]
11
+
12
+ spec.summary = %q{Vericred API Client}
13
+ spec.description = %q{Client to interact with the Vericred API}
14
+ spec.homepage = "https://github.com/vericred/vericred_ruby"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "activesupport"
23
+ spec.add_dependency "httpclient"
24
+ spec.add_dependency "celluloid"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.10"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "pry-debugger"
29
+ spec.add_development_dependency "guard-rspec"
30
+ end
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vericred
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dan Langevin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httpclient
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
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: celluloid
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
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.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
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: pry-debugger
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: guard-rspec
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
+ description: Client to interact with the Vericred API
112
+ email:
113
+ - dlangevin@vericred.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
+ - Guardfile
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - lib/vericred.rb
130
+ - lib/vericred/api_resource.rb
131
+ - lib/vericred/api_resource/relationships/base.rb
132
+ - lib/vericred/api_resource/relationships/belongs_to.rb
133
+ - lib/vericred/api_resource/relationships/has_many.rb
134
+ - lib/vericred/connection.rb
135
+ - lib/vericred/errors.rb
136
+ - lib/vericred/future_proxy.rb
137
+ - lib/vericred/resources.rb
138
+ - lib/vericred/version.rb
139
+ - vericred.gemspec
140
+ homepage: https://github.com/vericred/vericred_ruby
141
+ licenses:
142
+ - MIT
143
+ metadata: {}
144
+ post_install_message:
145
+ rdoc_options: []
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ requirements: []
159
+ rubyforge_project:
160
+ rubygems_version: 2.0.3
161
+ signing_key:
162
+ specification_version: 4
163
+ summary: Vericred API Client
164
+ test_files: []
165
+ has_rdoc: