wikidata-client 0.0.5 → 0.0.6

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: ff136458580c734d696f30094c0673e6bcc7ad0a
4
- data.tar.gz: f9a0ce78ae419bb5a88023230da9875c4041f444
3
+ metadata.gz: 481fea0ff50fb59f774077d355a116e013938acc
4
+ data.tar.gz: b6c966efa34763559016e69a3fc5a8827631da48
5
5
  SHA512:
6
- metadata.gz: 2f8f9aa7791564db76eefb6702cb6f1680ce41b685e09bc576c1717ac44a8a4834394c2c6d09ffdb7c3f2f881a045964d3f6c8ae92a7828c36f566dc910cfb28
7
- data.tar.gz: b44809746763851fe7c0efdf37ac5469c1ef82d986a66187c18e367d2e5ad7fb1d693bd57bff3ed27afe9d8a2ff83738179b71c43fe87bc89d24d366b99e2c03
6
+ metadata.gz: 7790f67d9bc9ddea9ff9ccb211776e63c49ea70bb9a74a9eba839f56f17b31d291727c99f3277e00be008676a6bd5155b8a63a2dc312dd691a286539ab19dc2d
7
+ data.tar.gz: af37ed1e5cee7bc64fd7182826ef167d690f99858d01f9ed643942489a8b769846b93fc232663a8b73892f9a424a815882dfb416bcb567ef50146efa24e91869
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 2.1.0
5
+ - 2.2.1
5
6
  - ruby-head
6
7
  - jruby-head
7
8
  addons:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikidata-client (0.0.4)
4
+ wikidata-client (0.0.6)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
  hashie (~> 3.3)
@@ -18,12 +18,12 @@ GEM
18
18
  diff-lcs (1.2.5)
19
19
  docile (1.1.5)
20
20
  excon (0.40.0)
21
- faraday (0.9.0)
21
+ faraday (0.9.1)
22
22
  multipart-post (>= 1.2, < 3)
23
23
  faraday_middleware (0.9.1)
24
24
  faraday (>= 0.7.4, < 0.10)
25
25
  ffi (1.9.5-java)
26
- hashie (3.3.1)
26
+ hashie (3.4.1)
27
27
  method_source (0.8.2)
28
28
  multi_json (1.10.1)
29
29
  multipart-post (2.0.0)
data/README.md CHANGED
@@ -14,7 +14,7 @@ It provide an easy way to search for wikidata pages and read their contents.
14
14
 
15
15
  ## Installation
16
16
 
17
- In bunler: `gem 'wikidata-client', '~> 0.0.4', require: 'wikidata'`
17
+ In bunler: `gem 'wikidata-client', '~> 0.0.6', require: 'wikidata'`
18
18
 
19
19
  Otherwise: `gem install wikidata-client`
20
20
 
@@ -14,8 +14,11 @@ module Wikidata
14
14
  end
15
15
 
16
16
  def empty?
17
- @_empty ||= (@raw.body['entities'].nil? ||
18
- @raw.body['entities'].is_a?(Array) && @raw.body['entities'].empty?)
17
+ @_empty ||= (
18
+ @raw.body['entities'].nil? ||
19
+ @raw.body['entities'].is_a?(Array) && @raw.body['entities'].empty? ||
20
+ @raw.body['entities'].is_a?(String)
21
+ )
19
22
  end
20
23
 
21
24
  def inspect
@@ -1,3 +1,3 @@
1
1
  module Wikidata
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.6".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.5
4
+ version: 0.0.6
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: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday