kiva_api 0.1.10 → 0.1.11

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: 27b82a3dc418f560f9f03a21cdae4d49a6e9ab7c
4
- data.tar.gz: 4c9da55694859b9ffebe972312646c78e525112a
3
+ metadata.gz: aa3b4771ad2c71cad038b2da24334a53a773d3cc
4
+ data.tar.gz: 64823059053c71b96355ee9f8cfaba043201314d
5
5
  SHA512:
6
- metadata.gz: 780df67247f5877c37ba7bc1fd408aa9cabaab8ea21d34b41e15544153a7285f87d4bd21a0ab30b6d6eb05193511ce88401b6ea0ae9024013009cc7b6735bc65
7
- data.tar.gz: a4cf4e0fc3f07b7cf94ad72234049f0a41a9ed6306bcc928d09a3b8029890185e49396ce80558b9cf7be105cd6623b163f2726e407a7517ed4f804a894404154
6
+ metadata.gz: 1488b298b6268344f0d9e69929bd8d90db41a884c9b986c5ce08b47b7ea3c013a2afe2528f6d23544ad155640047b7cd6674aa4b983169cfb0e8bb9107951436
7
+ data.tar.gz: 2e23ae52c05088eed93ff92f373283e377ebbd47e7db5c5f3db97b03e3f1b76e73a420c9f3e0f0420fd080302bd66fcc5405129f3c2cb433ba2ae8e8c2c317e9
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.10'
10
+ gem 'kiva_api', '~> 0.1.11'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -6,7 +6,7 @@ class KivaApi::CommentsResponse
6
6
  end
7
7
 
8
8
  def comments
9
- if @response["entities"]
9
+ if @response.present? and @response["entities"]
10
10
  comments = []
11
11
  @response["entities"].each do |comment|
12
12
  comments << {
@@ -22,7 +22,7 @@ class KivaApi::CommentsResponse
22
22
  end
23
23
 
24
24
  def comment_count
25
- if @response["properties"].is_a?(Hash)
25
+ if @response.present? and @response["properties"].is_a?(Hash)
26
26
  @response["properties"]["count"]
27
27
  else
28
28
  0
@@ -1,3 +1,3 @@
1
1
  module KivaApi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiva_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Magelowitz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty