root_insurance 1.1.1 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ece43ed608f56cabd17c84d89b7c5257f1967026
4
- data.tar.gz: 8950e5c2fa3e06fc78e28df32cd3ed893bb9b16c
3
+ metadata.gz: b322e5145c26c5d14adf3a5d0d936cd4314fba44
4
+ data.tar.gz: d53928529132cbed524028590b4e81b79d69df9e
5
5
  SHA512:
6
- metadata.gz: 5e055d002cc24644191412373245c70c2b96d32ab09e505775eff9b2f5d49608918e54b3eafc073ebf1a51592a25474d52a82bb7a13aa045fd7590570039fa64
7
- data.tar.gz: 2a09007593a4136246771c9d615c7b234fcbe308ba4c8ae08831865cd989c11e1295ab5f08bcfb727e4fe277c2becb10fd624efc2312eab4c1678a08f4f32e7c
6
+ metadata.gz: 9cbc00d0168ef232b4e98b735b618ad5bf06b8a05a9cf0831601f8f38213aaf81b18dd815236a7945e16cd92b3682c76de2e1fc75ccdcfbe56553ffca739504a
7
+ data.tar.gz: ddc860a117b6696d960411b2fdf58bfe24b609ada1d0dbde3c71cb17f73623b63bc0ae3217df183790c07295e3c44def52246766f0ab680b638cb093b51b457d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ # 1.1.2 - Release date: 2018-14-05
4
+ * Make claim events api consistent
5
+
6
+
3
7
  # 1.1.1 - Release date: 2018-11-05
4
8
  * Fix gemspec to allow publishing to rubygems.org
5
9
 
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Root Insurance Ruby
2
2
 
3
3
  [![Build Status](https://travis-ci.org/root-community/root-insurance-ruby.svg?branch=master)](https://travis-ci.org/root-community/root-insurance-ruby)
4
+ [![Coverage Status](https://coveralls.io/repos/github/root-community/root-insurance-ruby/badge.svg?branch=master)](https://coveralls.io/github/root-community/root-insurance-ruby?branch=master)
5
+ [![Gem Version](https://badge.fury.io/rb/root_insurance.svg)](https://badge.fury.io/rb/root_insurance)
4
6
 
5
7
  Root is a company built by developers for developers. Open Source Software is part of our culture. We open-source as much of our codebase as we can.
6
8
 
@@ -36,8 +36,9 @@ module RootInsurance::Api
36
36
  post("claims/#{claim_id}/policyholder", data)
37
37
  end
38
38
 
39
- def list_claim_events(id:)
40
- get("claims/#{id}/events")
39
+ def list_claim_events(id: nil, claim_id: nil)
40
+ claim_id = claim_id || id
41
+ get("claims/#{claim_id}/events")
41
42
  end
42
43
 
43
44
  def create_claim_attachment(claim_id:, path: nil, file: nil, bytes: nil, base64: nil, file_name: nil, file_type: nil, description: '')
@@ -1,3 +1,3 @@
1
1
  module RootInsurance
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_dependency 'httparty'
25
25
  spec.add_dependency 'mimemagic'
26
+ spec.add_development_dependency 'coveralls'
26
27
  spec.add_development_dependency "semvergen", "~> 1.9"
27
28
  spec.add_development_dependency "bundler", "~> 1.15"
28
29
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: root_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Root Wealth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: semvergen
43
57
  requirement: !ruby/object:Gem::Requirement