trupanion 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9efaa4b26c8bcf97f4aa27715a853e3b661a0c62
4
- data.tar.gz: 6e847f1b82c2d2c63d9982657d164fc418b24f36
3
+ metadata.gz: '0580c7dc0cac203766ab28a56253ece3bbaa3605'
4
+ data.tar.gz: 9910f0a2401691b62fc8bcb85ff67eb31666803d
5
5
  SHA512:
6
- metadata.gz: 4ec46146e98911c6bba53718895e05e35d44feb95a06979bbb22e1b8182bfd866778f359acdce0b8ecd563dc5f8a023c6e9a2d958b559c2baf28f0d236ba7edf
7
- data.tar.gz: 85d936f8d359eb7d9c8044f10d4bcdf9ee0b55d36e108e1cbc77042c87bd0019484ee407c626330296b61a9c7f516b90a923f23a4fa3a31c22aa30740e8a21c5
6
+ metadata.gz: 2d4b3d75a2ad7e04442cf30d16fbef03e1b873155dd04c1c3764be1bc7dc5f3e9570f80c21d9ef70f88f52b1a1d511e2d761c2178117e02fb53953101031c5c6
7
+ data.tar.gz: 13d01ef1c6b8d302b8945b14cacc6eef86ada4e11a27c558a7d222678485c0d7bfe861b0959036e42a441ed3f1414e380c9130fa0eff09cf89e4564172adf795
@@ -0,0 +1,17 @@
1
+ module Trupanion
2
+ module API
3
+ class Policies
4
+ def initialize(client)
5
+ @client = client
6
+ end
7
+
8
+ def generate(payload)
9
+ client.post("/v1/policyoriginations", body: payload).body
10
+ end
11
+
12
+ private
13
+
14
+ attr_reader :client
15
+ end
16
+ end
17
+ end
@@ -2,6 +2,7 @@ require "trupanion/authentication_headers"
2
2
 
3
3
  require "trupanion/api/breeds"
4
4
  require "trupanion/api/quotes"
5
+ require "trupanion/api/policies"
5
6
 
6
7
  module Trupanion
7
8
  class Client
@@ -40,6 +41,8 @@ module Trupanion
40
41
 
41
42
  def quotes; API::Quotes.new(self); end
42
43
 
44
+ def policies; API::Policies.new(self); end
45
+
43
46
  private
44
47
 
45
48
  attr_reader :sandbox
@@ -1,3 +1,3 @@
1
1
  module Trupanion
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,8 +6,8 @@ require "trupanion/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "trupanion"
8
8
  spec.version = Trupanion::VERSION
9
- spec.authors = ["Zamith"]
10
- spec.email = ["open-source@zamith.pt"]
9
+ spec.authors = ["Zamith", "Kai"]
10
+ spec.email = ["open-source@zamith.pt", "kaimou1357@gmail.com"]
11
11
 
12
12
  spec.description = "This is the unofficial Ruby wrapper to the Trupanion API."
13
13
  spec.summary = spec.description
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trupanion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zamith
8
+ - Kai
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-09-26 00:00:00.000000000 Z
12
+ date: 2017-11-27 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -139,6 +140,7 @@ dependencies:
139
140
  description: This is the unofficial Ruby wrapper to the Trupanion API.
140
141
  email:
141
142
  - open-source@zamith.pt
143
+ - kaimou1357@gmail.com
142
144
  executables: []
143
145
  extensions: []
144
146
  extra_rdoc_files: []
@@ -156,6 +158,7 @@ files:
156
158
  - bin/setup
157
159
  - lib/trupanion.rb
158
160
  - lib/trupanion/api/breeds.rb
161
+ - lib/trupanion/api/policies.rb
159
162
  - lib/trupanion/api/quotes.rb
160
163
  - lib/trupanion/authentication_headers.rb
161
164
  - lib/trupanion/client.rb
@@ -181,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
184
  version: '0'
182
185
  requirements: []
183
186
  rubyforge_project:
184
- rubygems_version: 2.6.11
187
+ rubygems_version: 2.6.12
185
188
  signing_key:
186
189
  specification_version: 4
187
190
  summary: This is the unofficial Ruby wrapper to the Trupanion API.