wikidata-client 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/wikidata/config.rb +1 -1
- data/lib/wikidata/entity.rb +8 -0
- data/lib/wikidata/version.rb +1 -1
- data/spec/fixtures/vcr/Wikidata_Entity/properties/properties/keys_of_all_properties/can_get_a_list_of_all_property_keys.yml +114 -0
- data/spec/fixtures/vcr/Wikidata_Entity/properties/properties/name_of_a_property/can_get_the_name_of_a_property.yml +495 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/wikidata/entity_spec.rb +12 -0
- metadata +30 -33
- data/.gitignore +0 -3
- data/.irbrc +0 -1
- data/.rspec +0 -2
- data/.travis.yml +0 -11
- data/Gemfile +0 -7
- data/Rakefile +0 -5
- data/wikidata-client.gemspec +0 -28
data/spec/spec_helper.rb
CHANGED
@@ -148,6 +148,18 @@ describe Wikidata::Entity, :vcr do
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
end
|
151
|
+
|
152
|
+
context 'keys of all properties' do
|
153
|
+
it 'can get a list of all property keys' do
|
154
|
+
github.property_keys.size.should be > 0
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
context 'name of a property' do
|
159
|
+
it 'can get the name of a property' do
|
160
|
+
github.property_name("P31").should eq 'instance of'
|
161
|
+
end
|
162
|
+
end
|
151
163
|
end
|
152
164
|
end
|
153
165
|
end
|
metadata
CHANGED
@@ -1,156 +1,150 @@
|
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kévin Lacointe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '0.9'
|
20
|
-
|
19
|
+
name: faraday
|
21
20
|
prerelease: false
|
21
|
+
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday_middleware
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0.9'
|
34
|
-
|
33
|
+
name: faraday_middleware
|
35
34
|
prerelease: false
|
35
|
+
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.9'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: hashie
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '3.3'
|
48
|
-
|
47
|
+
name: hashie
|
49
48
|
prerelease: false
|
49
|
+
type: :runtime
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: excon
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0.40'
|
62
|
-
|
61
|
+
name: excon
|
63
62
|
prerelease: false
|
63
|
+
type: :runtime
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.40'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
72
|
- - "~>"
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
version: '3.1'
|
76
|
-
|
75
|
+
name: rspec
|
77
76
|
prerelease: false
|
77
|
+
type: :development
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: webmock
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
86
85
|
requirements:
|
87
86
|
- - "~>"
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: '1.18'
|
90
|
-
|
89
|
+
name: webmock
|
91
90
|
prerelease: false
|
91
|
+
type: :development
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.18'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: vcr
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
100
99
|
requirements:
|
101
100
|
- - "~>"
|
102
101
|
- !ruby/object:Gem::Version
|
103
102
|
version: '2.9'
|
104
|
-
|
103
|
+
name: vcr
|
105
104
|
prerelease: false
|
105
|
+
type: :development
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '2.9'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: pry
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
114
113
|
requirements:
|
115
114
|
- - "~>"
|
116
115
|
- !ruby/object:Gem::Version
|
117
116
|
version: '0.10'
|
118
|
-
|
117
|
+
name: pry
|
119
118
|
prerelease: false
|
119
|
+
type: :development
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.10'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: rake
|
127
126
|
requirement: !ruby/object:Gem::Requirement
|
128
127
|
requirements:
|
129
128
|
- - "~>"
|
130
129
|
- !ruby/object:Gem::Version
|
131
130
|
version: '10.3'
|
132
|
-
|
131
|
+
name: rake
|
133
132
|
prerelease: false
|
133
|
+
type: :development
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '10.3'
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: kevinlacointe@gmail.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
143
143
|
extra_rdoc_files: []
|
144
144
|
files:
|
145
|
-
- ".gitignore"
|
146
|
-
- ".irbrc"
|
147
|
-
- ".rspec"
|
148
|
-
- ".travis.yml"
|
149
145
|
- CHANGELOG.md
|
150
|
-
- Gemfile
|
151
146
|
- LICENCE
|
152
147
|
- README.md
|
153
|
-
- Rakefile
|
154
148
|
- config/mapping.yml
|
155
149
|
- config/settings.yml
|
156
150
|
- lib/wikidata.rb
|
@@ -173,6 +167,8 @@ files:
|
|
173
167
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_allow_to_return_only_entities_ids_from_an_id.yml
|
174
168
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_a_key_children_here_.yml
|
175
169
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_an_id_P40_for_children_here_.yml
|
170
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/keys_of_all_properties/can_get_a_list_of_all_property_keys.yml
|
171
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/name_of_a_property/can_get_the_name_of_a_property.yml
|
176
172
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_key_logo_image_here_.yml
|
177
173
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_property_id_P154_for_logo_image_here_.yml
|
178
174
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_a_key_date_of_birth_here_.yml
|
@@ -209,12 +205,11 @@ files:
|
|
209
205
|
- spec/wikidata/property/common_media_spec.rb
|
210
206
|
- spec/wikidata/property/time_spec.rb
|
211
207
|
- spec/wikidata_spec.rb
|
212
|
-
- wikidata-client.gemspec
|
213
208
|
homepage: https://github.com/klacointe/wikidata-client
|
214
209
|
licenses:
|
215
210
|
- MIT
|
216
211
|
metadata: {}
|
217
|
-
post_install_message:
|
212
|
+
post_install_message:
|
218
213
|
rdoc_options: []
|
219
214
|
require_paths:
|
220
215
|
- lib
|
@@ -229,9 +224,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
224
|
- !ruby/object:Gem::Version
|
230
225
|
version: '0'
|
231
226
|
requirements: []
|
232
|
-
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
234
|
-
signing_key:
|
227
|
+
rubyforge_project:
|
228
|
+
rubygems_version: 2.6.13
|
229
|
+
signing_key:
|
235
230
|
specification_version: 4
|
236
231
|
summary: Wikidata API client
|
237
232
|
test_files:
|
@@ -239,6 +234,8 @@ test_files:
|
|
239
234
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_allow_to_return_only_entities_ids_from_an_id.yml
|
240
235
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_a_key_children_here_.yml
|
241
236
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_an_id_P40_for_children_here_.yml
|
237
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/keys_of_all_properties/can_get_a_list_of_all_property_keys.yml
|
238
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/name_of_a_property/can_get_the_name_of_a_property.yml
|
242
239
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_key_logo_image_here_.yml
|
243
240
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_property_id_P154_for_logo_image_here_.yml
|
244
241
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_a_key_date_of_birth_here_.yml
|
data/.gitignore
DELETED
data/.irbrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
IRB.conf[:SAVE_HISTORY] = 100
|
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/wikidata-client.gemspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
require "wikidata/version"
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = "wikidata-client"
|
6
|
-
s.version = Wikidata::VERSION.dup
|
7
|
-
s.platform = Gem::Platform::RUBY
|
8
|
-
s.licenses = ["MIT"]
|
9
|
-
s.summary = "Wikidata API client"
|
10
|
-
s.email = "kevinlacointe@gmail.com"
|
11
|
-
s.homepage = "https://github.com/klacointe/wikidata-client"
|
12
|
-
s.authors = ['Kévin Lacointe']
|
13
|
-
|
14
|
-
s.files = `git ls-files`.split("\n")
|
15
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
|
18
|
-
s.add_dependency("faraday", "~> 0.9")
|
19
|
-
s.add_dependency("faraday_middleware", "~> 0.9")
|
20
|
-
s.add_dependency("hashie", "~> 3.3")
|
21
|
-
s.add_dependency("excon", "~> 0.40")
|
22
|
-
|
23
|
-
s.add_development_dependency("rspec", "~> 3.1")
|
24
|
-
s.add_development_dependency("webmock", "~> 1.18")
|
25
|
-
s.add_development_dependency("vcr", "~> 2.9")
|
26
|
-
s.add_development_dependency("pry", "~> 0.10")
|
27
|
-
s.add_development_dependency("rake", "~> 10.3")
|
28
|
-
end
|