wikidata-client 0.0.4 → 0.0.5

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: 660f225f214426620269fe2e615054f60b102bb2
4
- data.tar.gz: ae8d04c5541614688a17e5892841f6ca3c99b216
3
+ metadata.gz: ff136458580c734d696f30094c0673e6bcc7ad0a
4
+ data.tar.gz: f9a0ce78ae419bb5a88023230da9875c4041f444
5
5
  SHA512:
6
- metadata.gz: f52b79de4b18cb152dde5ea06f55192912435ea3476e516c95aa1eb930e07419c67bcfc792b49bc66da645db0ef23f8b60a5517c31d779bfd2024f6cea97fce8
7
- data.tar.gz: bf5c352664f7290b14683cfd1e45448580dca4cb158708c08beebc99befb57553b9b199dab4ce675af95f5a5fb482d7294adfc5ffdabb292b9ee29fc21e875b0
6
+ metadata.gz: 2f8f9aa7791564db76eefb6702cb6f1680ce41b685e09bc576c1717ac44a8a4834394c2c6d09ffdb7c3f2f881a045964d3f6c8ae92a7828c36f566dc910cfb28
7
+ data.tar.gz: b44809746763851fe7c0efdf37ac5469c1ef82d986a66187c18e367d2e5ad7fb1d693bd57bff3ed27afe9d8a2ff83738179b71c43fe87bc89d24d366b99e2c03
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikidata-client (0.0.3)
4
+ wikidata-client (0.0.4)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
  hashie (~> 3.3)
@@ -14,7 +14,8 @@ module Wikidata
14
14
  end
15
15
 
16
16
  def empty?
17
- @_empty ||= @raw.body['entities'].nil?
17
+ @_empty ||= (@raw.body['entities'].nil? ||
18
+ @raw.body['entities'].is_a?(Array) && @raw.body['entities'].empty?)
18
19
  end
19
20
 
20
21
  def inspect
@@ -1,3 +1,3 @@
1
1
  module Wikidata
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikidata-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kévin Lacointe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.2.2
227
+ rubygems_version: 2.4.5
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Wikidata API client