kiva_api 0.1.6 → 0.1.7

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: ba213b74a2fbb2aad3ed42542d18c400e13612ee
4
- data.tar.gz: 2ed3ab3c8ef84cc0074b8cd2a0d1689a0e309290
3
+ metadata.gz: f086686258a2deef9d34babcefc1fc575b65350f
4
+ data.tar.gz: 844cf648bbdb2907dffb9a9a96cc6c327615b86e
5
5
  SHA512:
6
- metadata.gz: e31670e5c8c39cee5815045bf4e4c675946d9368369d3bb9241bac74421e5926b0bbc8a9310b506b672936ce9472ba66289e64ccb66fb5b8efc7f0b23b867afc
7
- data.tar.gz: ac19db2214b6716af9a8dbfeb0e403f9bca4668b181025b8117178509f935faf27c22cca3b498c0076b5a18e21909095bc83bcde407311be72da474fba05f3a2
6
+ metadata.gz: a39da4b3356b1919cb5ddd7686e1a4af38e60cd04710590ef51c4acc91d058bb0d0e69835146dfdb0da4baf55dbb6815a77aa72a2bc3eeea474f46e69cb32887
7
+ data.tar.gz: c105c84cd2ef802f19427978d0427c7d3840d4588c445659953c52ed69921202ad95a7234e82738ad94f1103386b0c8104c9a45b2043e28e51710d3553fa7c80
data/README.md CHANGED
@@ -7,7 +7,7 @@ Get Loan data from Kiva's API
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'kiva_api', '~> 0.1.6'
10
+ gem 'kiva_api', '~> 0.1.7'
11
11
  ```
12
12
 
13
13
  And then execute:
data/lib/kiva_api/loan.rb CHANGED
@@ -10,14 +10,15 @@ class KivaApi::Loan
10
10
  if loan_number
11
11
  @loan_number = loan_number
12
12
  end
13
+ @loan_root = "#{@host}/loans"
13
14
  end
14
15
 
15
16
  def get_data(verify = true)
16
- loan_response = HTTParty.get("#{@host}/loan/#{@loan_number}/", verify: verify)
17
+ loan_response = HTTParty.get("#{@loan_root}/#{@loan_number}/", verify: verify)
17
18
  @loan = KivaApi::LoanResponse.new(loan_response)
18
- terms_response = HTTParty.get("#{@host}/loan/#{@loan_number}/terms", verify: verify)
19
+ terms_response = HTTParty.get("#{@loan_root}/#{@loan_number}/terms", verify: verify)
19
20
  @terms = KivaApi::TermsResponse.new(terms_response)
20
- comments_response = HTTParty.get("#{@host}/loan/#{@loan_number}/comments", verify: verify)
21
+ comments_response = HTTParty.get("#{@loan_root}/#{@loan_number}/comments", verify: verify)
21
22
  @comments = KivaApi::CommentsResponse.new(comments_response)
22
23
  end
23
24
 
@@ -1,3 +1,3 @@
1
1
  module KivaApi
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiva_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Magelowitz