trupanion 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.rubocop.yml +62 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +94 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/trupanion.rb +3 -0
- data/lib/trupanion/api/breeds.rb +17 -0
- data/lib/trupanion/api/quotes.rb +17 -0
- data/lib/trupanion/authentication_headers.rb +58 -0
- data/lib/trupanion/client.rb +59 -0
- data/lib/trupanion/version.rb +3 -0
- data/trupanion.gemspec +34 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d44463dc23747e7686aa4f0b50f5bdb61e35915d
|
4
|
+
data.tar.gz: 78105b06da1479d6e659ebba01d61dd2da686cd0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 820800b526a1649ec3844e251085222708f9f2f696b026f92fe7cb73107ddf8407152132ccfdc1c117d1e2a209f9a7a8a29e1e6237bb4a98ff01a12a506a9899
|
7
|
+
data.tar.gz: ea35a826a1a491fdf3572dc53c05c2efa2a2c43a63e3a3f021c48c4f8f3ac142db739339f49114c3fd7470c2e1db7273f16cf556124400752fe8ea2fdfdbd6b2
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
AllCops:
|
2
|
+
Include:
|
3
|
+
- "**/Rakefile"
|
4
|
+
- "**/config.ru"
|
5
|
+
Exclude:
|
6
|
+
- "bin/**/*"
|
7
|
+
- "Gemfile"
|
8
|
+
TargetRubyVersion: 2.4
|
9
|
+
|
10
|
+
Metrics/LineLength:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Layout/AlignParameters:
|
14
|
+
EnforcedStyle: with_fixed_indentation
|
15
|
+
|
16
|
+
Style/ClassAndModuleChildren:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/Documentation:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Layout/DotPosition:
|
23
|
+
EnforcedStyle: trailing
|
24
|
+
|
25
|
+
Style/IfUnlessModifier:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/PredicateName:
|
29
|
+
NamePrefixBlacklist:
|
30
|
+
- is_
|
31
|
+
- have_
|
32
|
+
|
33
|
+
Style/StringLiterals:
|
34
|
+
EnforcedStyle: double_quotes
|
35
|
+
|
36
|
+
Style/NumericLiterals:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
Style/SingleLineBlockParams:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/SingleLineMethods:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Layout/MultilineOperationIndentation:
|
46
|
+
EnforcedStyle: indented
|
47
|
+
|
48
|
+
Layout/MultilineMethodCallIndentation:
|
49
|
+
EnforcedStyle: indented
|
50
|
+
|
51
|
+
Style/TrailingCommaInArguments:
|
52
|
+
EnforcedStyleForMultiline: comma
|
53
|
+
|
54
|
+
Style/TrailingCommaInLiteral:
|
55
|
+
EnforcedStyleForMultiline: comma
|
56
|
+
|
57
|
+
Style/FrozenStringLiteralComment:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Metrics/BlockLength:
|
61
|
+
Exclude:
|
62
|
+
- spec/**/*.rb
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 zamith@subvisual.co. 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
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Luis Ferreira and Zinc Platform, Inc.
|
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,94 @@
|
|
1
|
+
# Trupanion
|
2
|
+
|
3
|
+
This is the unofficial Ruby wrapper to the Trupanion API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'trupanion'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install trupanion
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Trupanion ruby follows a namespacing pattern, in which every layer of the
|
24
|
+
Trupanion's API creates a new namespace.
|
25
|
+
|
26
|
+
### Authentication
|
27
|
+
|
28
|
+
In order to authenticate with Trupanion's API you'll need and `API_KEY` and an
|
29
|
+
`API_SECRET`, with which you'll be able to create an API client:
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
Trupanion::Client.new(api_key: <API_KEY>, api_secret: <API_SECRET>)
|
33
|
+
```
|
34
|
+
|
35
|
+
### Breeds
|
36
|
+
|
37
|
+
#### Get all breeds
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
client.breeds.all
|
41
|
+
```
|
42
|
+
|
43
|
+
### Price Quotes
|
44
|
+
|
45
|
+
#### Generate a price quotes
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
client.quotes.generate(
|
49
|
+
email: "fake@example.com",
|
50
|
+
countryCode: "USA",
|
51
|
+
stateCode: "NY",
|
52
|
+
postalCode: "10001",
|
53
|
+
pets: [
|
54
|
+
{
|
55
|
+
dateOfBirth: Date.parse("2017/09/21").to_time.utc.iso8601(3),
|
56
|
+
breedId: 1,
|
57
|
+
deductible: "150.0",
|
58
|
+
gender: "M",
|
59
|
+
isSpayedOrNeutered: true,
|
60
|
+
name: "Pet Name",
|
61
|
+
},
|
62
|
+
],
|
63
|
+
)
|
64
|
+
```
|
65
|
+
|
66
|
+
## Development
|
67
|
+
|
68
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
69
|
+
`rake spec` to run the tests. You can also run `bin/console` for an interactive
|
70
|
+
prompt that will allow you to experiment.
|
71
|
+
|
72
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To
|
73
|
+
release a new version, update the version number in `version.rb`, and then run
|
74
|
+
`bundle exec rake release`, which will create a git tag for the version, push
|
75
|
+
git commits and tags, and push the `.gem` file to
|
76
|
+
[rubygems.org](https://rubygems.org).
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
Bug reports and pull requests are welcome on GitHub at
|
81
|
+
https://github.com/ZincPlatform/trupanion. This project is intended to be a safe,
|
82
|
+
welcoming space for collaboration, and contributors are expected to adhere to
|
83
|
+
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
84
|
+
|
85
|
+
## License
|
86
|
+
|
87
|
+
The gem is available as open source under the terms of the [MIT
|
88
|
+
License](http://opensource.org/licenses/MIT).
|
89
|
+
|
90
|
+
## Code of Conduct
|
91
|
+
|
92
|
+
Everyone interacting in the Trupanion project’s codebases, issue trackers, chat
|
93
|
+
rooms and mailing lists is expected to follow the [code of
|
94
|
+
conduct](https://github.com/[USERNAME]/trupanion/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "trupanion"
|
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
data/lib/trupanion.rb
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
module Trupanion
|
2
|
+
class AuthorizationHeaders
|
3
|
+
def initialize(client, request)
|
4
|
+
@client = client
|
5
|
+
@request = request
|
6
|
+
end
|
7
|
+
|
8
|
+
def call
|
9
|
+
return default_headers unless request.body
|
10
|
+
|
11
|
+
default_headers.merge(
|
12
|
+
"Content-Md5" => md5,
|
13
|
+
)
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :request, :client
|
19
|
+
|
20
|
+
def default_headers
|
21
|
+
@_default_headers ||= {
|
22
|
+
"TimeStamp" => timestamp,
|
23
|
+
"Content-Type" => "application/json",
|
24
|
+
"Content-Length" => "0",
|
25
|
+
"Authorization" => authorization_header,
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
def md5
|
30
|
+
return unless request.body
|
31
|
+
@_md5 ||= Digest::MD5.base64digest(request.body.to_json)
|
32
|
+
end
|
33
|
+
|
34
|
+
def timestamp
|
35
|
+
@_timestamp ||= Time.now.utc.strftime("%a, %d %b %Y %H:%M:%S GMT")
|
36
|
+
end
|
37
|
+
|
38
|
+
def http_verb
|
39
|
+
@_http_verb ||= request.method.to_s.upcase
|
40
|
+
end
|
41
|
+
|
42
|
+
def authorization_header
|
43
|
+
"TruID #{client.api_key}:#{authorization_hash}"
|
44
|
+
end
|
45
|
+
|
46
|
+
def authorization_hash
|
47
|
+
Base64.strict_encode64(
|
48
|
+
OpenSSL::HMAC.digest(
|
49
|
+
"sha256", client.api_secret, authorization_message
|
50
|
+
),
|
51
|
+
)
|
52
|
+
end
|
53
|
+
|
54
|
+
def authorization_message
|
55
|
+
"#{http_verb}\n#{md5}\napplication/json\n#{timestamp}\n#{request.path}"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require "trupanion/authentication_headers"
|
2
|
+
|
3
|
+
require "trupanion/api/breeds"
|
4
|
+
require "trupanion/api/quotes"
|
5
|
+
|
6
|
+
module Trupanion
|
7
|
+
class Client
|
8
|
+
API_BASE = "https://api.trupanion.com".freeze
|
9
|
+
SANDBOX_API_BASE = "https://sandbox.api.trupanion.com".freeze
|
10
|
+
|
11
|
+
attr_reader :api_key, :api_secret
|
12
|
+
|
13
|
+
def initialize(api_key:, api_secret:, sandbox: false)
|
14
|
+
@api_key = api_key
|
15
|
+
@api_secret = api_secret
|
16
|
+
@sandbox = sandbox
|
17
|
+
end
|
18
|
+
|
19
|
+
def get(url, params: {})
|
20
|
+
conn.get(url, params) do |req|
|
21
|
+
req.headers = AuthorizationHeaders.new(self, req).call
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def post(url, body: {})
|
26
|
+
conn.post(url, body) do |req|
|
27
|
+
req.headers = AuthorizationHeaders.new(self, req).call
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def delete(url)
|
32
|
+
conn.delete(url)
|
33
|
+
end
|
34
|
+
|
35
|
+
def put(url, body: {})
|
36
|
+
conn.put(url, body)
|
37
|
+
end
|
38
|
+
|
39
|
+
def breeds; API::Breeds.new(self); end
|
40
|
+
|
41
|
+
def quotes; API::Quotes.new(self); end
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
attr_reader :sandbox
|
46
|
+
|
47
|
+
def conn
|
48
|
+
@conn ||= Faraday.new(api_url) do |f|
|
49
|
+
f.request :json
|
50
|
+
f.response :json, content_type: /\bjson$/
|
51
|
+
f.adapter Faraday.default_adapter
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def api_url
|
56
|
+
@_api_url ||= sandbox ? SANDBOX_API_BASE : API_BASE
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/trupanion.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "trupanion/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "trupanion"
|
8
|
+
spec.version = Trupanion::VERSION
|
9
|
+
spec.authors = ["Zamith"]
|
10
|
+
spec.email = ["open-source@zamith.pt"]
|
11
|
+
|
12
|
+
spec.description = "This is the unofficial Ruby wrapper to the Trupanion API."
|
13
|
+
spec.summary = spec.description
|
14
|
+
spec.homepage = "https://github.com/ZincPlatform/trupanion"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "rubocop", "~> 0.50.0"
|
28
|
+
spec.add_development_dependency "vcr", "~> 3.0.3"
|
29
|
+
spec.add_development_dependency "webmock", "~> 3.0.1"
|
30
|
+
|
31
|
+
spec.add_runtime_dependency "faraday", "~> 0.12"
|
32
|
+
spec.add_runtime_dependency "faraday_middleware", "~> 0.11"
|
33
|
+
spec.add_runtime_dependency "dotenv", "~> 2.2.1"
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: trupanion
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zamith
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-26 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.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
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: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.50.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.50.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.0.3
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.0.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.0.1
|
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.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.12'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.12'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faraday_middleware
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.11'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.11'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: dotenv
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.2.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.2.1
|
139
|
+
description: This is the unofficial Ruby wrapper to the Trupanion API.
|
140
|
+
email:
|
141
|
+
- open-source@zamith.pt
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".rspec"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- ".travis.yml"
|
150
|
+
- CODE_OF_CONDUCT.md
|
151
|
+
- Gemfile
|
152
|
+
- LICENSE.txt
|
153
|
+
- README.md
|
154
|
+
- Rakefile
|
155
|
+
- bin/console
|
156
|
+
- bin/setup
|
157
|
+
- lib/trupanion.rb
|
158
|
+
- lib/trupanion/api/breeds.rb
|
159
|
+
- lib/trupanion/api/quotes.rb
|
160
|
+
- lib/trupanion/authentication_headers.rb
|
161
|
+
- lib/trupanion/client.rb
|
162
|
+
- lib/trupanion/version.rb
|
163
|
+
- trupanion.gemspec
|
164
|
+
homepage: https://github.com/ZincPlatform/trupanion
|
165
|
+
licenses:
|
166
|
+
- MIT
|
167
|
+
metadata: {}
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 2.6.11
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: This is the unofficial Ruby wrapper to the Trupanion API.
|
188
|
+
test_files: []
|