wikidata-client 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile.lock +3 -3
- data/README.md +1 -1
- data/lib/wikidata/response.rb +5 -2
- data/lib/wikidata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 481fea0ff50fb59f774077d355a116e013938acc
|
4
|
+
data.tar.gz: b6c966efa34763559016e69a3fc5a8827631da48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7790f67d9bc9ddea9ff9ccb211776e63c49ea70bb9a74a9eba839f56f17b31d291727c99f3277e00be008676a6bd5155b8a63a2dc312dd691a286539ab19dc2d
|
7
|
+
data.tar.gz: af37ed1e5cee7bc64fd7182826ef167d690f99858d01f9ed643942489a8b769846b93fc232663a8b73892f9a424a815882dfb416bcb567ef50146efa24e91869
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wikidata-client (0.0.
|
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.
|
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.
|
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.
|
17
|
+
In bunler: `gem 'wikidata-client', '~> 0.0.6', require: 'wikidata'`
|
18
18
|
|
19
19
|
Otherwise: `gem install wikidata-client`
|
20
20
|
|
data/lib/wikidata/response.rb
CHANGED
@@ -14,8 +14,11 @@ module Wikidata
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def empty?
|
17
|
-
@_empty ||= (
|
18
|
-
|
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
|
data/lib/wikidata/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|