wikipedia-client 1.10.0 → 1.11.0

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
  SHA256:
3
- metadata.gz: e2f57b0e20199f44cbca10f8257db1b647eb9ea8023a41f3a97372f39ccef57b
4
- data.tar.gz: f25d2d71dbd6ee65a0010ad27f4b39c302043c3ec8bc62a0c0a420cb123dd618
3
+ metadata.gz: e46200632341e7d38bd759fd3d680c8c004c82e32335c39f63f6aacbb75f7101
4
+ data.tar.gz: 7fd44fa8cbbfc78aee4657ea65c57fb809229be83c8e9df65a2546932a0cb0d2
5
5
  SHA512:
6
- metadata.gz: 7f0ac0c87fab90725c3b2f4ce7ad850acd34e16e626f5038ce2026325d456d878f06020cd49b0582c33a041a5e74ae33a82a38e16b1392f15e6da790e2099ecf
7
- data.tar.gz: 8390e2053e615c4f599cd37fbaf1e6db33fa550a0ac78700390f47505bcd02015da87dcb0725f84481da7f18e58d9ef6e22cbe298eccdd244bd74759f33228a1
6
+ metadata.gz: 56c10fc45302054c0cc839fb5a0b29d67739d7971f30d91925a7cd8451b5788e1460bc074fca872b6efc9202f42562d4618a7966bf46fccc5aa44e105f05e6be
7
+ data.tar.gz: 6c3a829eb521be344e89a89081b3be7a5339dacafe16a1dca1ec19cd36db603daf9c29c6cdbaaa87abc27f471ec14766733d6deffb436f46070ae8782a3b33cc
data/Gemfile.lock CHANGED
@@ -1,72 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikipedia-client (1.10.0)
4
+ wikipedia-client (1.11.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- addressable (2.3.5)
9
+ addressable (2.4.0)
10
10
  ast (2.3.0)
11
- builder (3.2.2)
12
- diff-lcs (1.3)
13
- faraday (0.8.8)
14
- multipart-post (~> 1.2.0)
15
- git (1.2.6)
16
- github_api (0.10.1)
17
- addressable
18
- faraday (~> 0.8.1)
19
- hashie (>= 1.2)
20
- multi_json (~> 1.4)
21
- nokogiri (~> 1.5.2)
22
- oauth2
23
- hashie (2.0.5)
24
- highline (1.6.19)
25
- httpauth (0.2.0)
26
- jeweler (1.8.8)
11
+ builder (3.2.4)
12
+ coderay (1.1.3)
13
+ descendants_tracker (0.0.4)
14
+ thread_safe (~> 0.3, >= 0.3.1)
15
+ diff-lcs (1.4.4)
16
+ faraday (0.9.2)
17
+ multipart-post (>= 1.2, < 3)
18
+ git (1.8.1)
19
+ rchardet (~> 1.8)
20
+ github_api (0.16.0)
21
+ addressable (~> 2.4.0)
22
+ descendants_tracker (~> 0.0.4)
23
+ faraday (~> 0.8, < 0.10)
24
+ hashie (>= 3.4)
25
+ mime-types (>= 1.16, < 3.0)
26
+ oauth2 (~> 1.0)
27
+ hashie (4.1.0)
28
+ highline (2.0.3)
29
+ jeweler (2.3.9)
27
30
  builder
28
- bundler (~> 1.0)
31
+ bundler
29
32
  git (>= 1.2.5)
30
- github_api (= 0.10.1)
33
+ github_api (~> 0.16.0)
31
34
  highline (>= 1.6.15)
32
- nokogiri (= 1.5.10)
35
+ nokogiri (>= 1.5.10)
36
+ psych
33
37
  rake
34
38
  rdoc
35
- json (1.8.6)
36
- jwt (0.1.8)
37
- multi_json (>= 1.5)
38
- multi_json (1.8.1)
39
- multi_xml (0.5.5)
40
- multipart-post (1.2.0)
41
- nokogiri (1.5.10)
42
- oauth2 (0.9.2)
43
- faraday (~> 0.8)
44
- httpauth (~> 0.2)
45
- jwt (~> 0.1.4)
46
- multi_json (~> 1.0)
39
+ semver2
40
+ jwt (2.2.2)
41
+ method_source (1.0.0)
42
+ mime-types (2.99.3)
43
+ mini_portile2 (2.5.0)
44
+ multi_json (1.15.0)
45
+ multi_xml (0.6.0)
46
+ multipart-post (2.1.1)
47
+ nokogiri (1.11.2)
48
+ mini_portile2 (~> 2.5.0)
49
+ racc (~> 1.4)
50
+ oauth2 (1.4.7)
51
+ faraday (>= 0.8, < 2.0)
52
+ jwt (>= 1.0, < 3.0)
53
+ multi_json (~> 1.3)
47
54
  multi_xml (~> 0.5)
48
- rack (~> 1.2)
55
+ rack (>= 1.2, < 3)
49
56
  parser (2.4.0.0)
50
57
  ast (~> 2.2)
51
58
  powerpack (0.1.1)
52
- rack (1.5.2)
59
+ pry (0.14.0)
60
+ coderay (~> 1.1)
61
+ method_source (~> 1.0)
62
+ psych (3.3.1)
63
+ racc (1.5.2)
64
+ rack (2.2.3)
53
65
  rainbow (2.2.2)
54
66
  rake
55
- rake (10.1.0)
56
- rdoc (4.0.1)
57
- json (~> 1.4)
58
- rspec (3.0.0)
59
- rspec-core (~> 3.0.0)
60
- rspec-expectations (~> 3.0.0)
61
- rspec-mocks (~> 3.0.0)
62
- rspec-core (3.0.4)
63
- rspec-support (~> 3.0.0)
64
- rspec-expectations (3.0.4)
67
+ rake (13.0.3)
68
+ rchardet (1.8.0)
69
+ rdoc (6.3.0)
70
+ rspec (3.10.0)
71
+ rspec-core (~> 3.10.0)
72
+ rspec-expectations (~> 3.10.0)
73
+ rspec-mocks (~> 3.10.0)
74
+ rspec-core (3.10.1)
75
+ rspec-support (~> 3.10.0)
76
+ rspec-expectations (3.10.1)
65
77
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.0.0)
67
- rspec-mocks (3.0.4)
68
- rspec-support (~> 3.0.0)
69
- rspec-support (3.0.4)
78
+ rspec-support (~> 3.10.0)
79
+ rspec-mocks (3.10.2)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.10.0)
82
+ rspec-support (3.10.2)
70
83
  rubocop (0.48.1)
71
84
  parser (>= 2.3.3.1, < 3.0)
72
85
  powerpack (~> 0.1)
@@ -74,20 +87,23 @@ GEM
74
87
  ruby-progressbar (~> 1.7)
75
88
  unicode-display_width (~> 1.0, >= 1.0.1)
76
89
  ruby-progressbar (1.8.1)
90
+ semver2 (3.4.2)
77
91
  thoughtbot-shoulda (2.11.1)
92
+ thread_safe (0.3.6)
78
93
  unicode-display_width (1.2.1)
79
94
 
80
95
  PLATFORMS
81
96
  ruby
82
97
 
83
98
  DEPENDENCIES
84
- jeweler (~> 1.8)
85
- rake (~> 10.1)
86
- rdoc (~> 4.0)
99
+ jeweler (~> 2.0)
100
+ pry
101
+ rake (~> 13.0)
102
+ rdoc (~> 6.0)
87
103
  rspec (~> 3.0)
88
104
  rubocop (~> 0.48)
89
105
  thoughtbot-shoulda (~> 2.11, >= 2.11)
90
106
  wikipedia-client!
91
107
 
92
108
  BUNDLED WITH
93
- 1.15.1
109
+ 1.17.2
@@ -106,7 +106,7 @@ module Wikipedia
106
106
  def encode( val )
107
107
  case val
108
108
  when String
109
- URI.encode( val, /#{URI::UNSAFE}|[\+&]/ )
109
+ CGI.escape(val)
110
110
  else
111
111
  val
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module Wikipedia
2
- VERSION = '1.10.0'.freeze
2
+ VERSION = '1.11.0'.freeze
3
3
  end
@@ -161,14 +161,9 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
161
161
  @client.follow_redirects = true
162
162
  @page = @client.find('Edsger Dijkstra')
163
163
  [
164
- '/en/4/4a/Commons-logo.svg',
165
- '/en/4/48/Folder_Hexagonal_Icon.svg',
166
164
  '/commons/5/57/Dijkstra_Animation.gif',
167
165
  '/commons/c/c9/Edsger_Dijkstra_1994.jpg',
168
166
  '/commons/d/d9/Edsger_Wybe_Dijkstra.jpg',
169
- '/en/4/4d/Centrum-wiskunde-informatica-logo.png',
170
- '/commons/7/7b/An_illustration_of_the_dining_philosophers_problem.png',
171
- '/commons/3/37/Detail_of_a_1Kb_ferrite_core_RAM-module_of_an_1960s_Electrologica_X1_computer.jpg'
172
167
  ].each do |image|
173
168
  expect(@page.image_urls).to include('https://upload.wikimedia.org/wikipedia' + image)
174
169
  end
@@ -178,12 +173,9 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
178
173
  @client.follow_redirects = true
179
174
  @page = @client.find('Edsger Dijkstra')
180
175
  [
181
- '/en/thumb/4/4a/Commons-logo.svg/200px-Commons-logo.svg.png',
182
- '/en/thumb/4/48/Folder_Hexagonal_Icon.svg/200px-Folder_Hexagonal_Icon.svg.png',
183
176
  '/commons/thumb/5/57/Dijkstra_Animation.gif/200px-Dijkstra_Animation.gif',
184
177
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/200px-Edsger_Dijkstra_1994.jpg',
185
178
  '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/200px-Edsger_Wybe_Dijkstra.jpg',
186
- '/en/thumb/4/4d/Centrum-wiskunde-informatica-logo.png/200px-Centrum-wiskunde-informatica-logo.png'
187
179
  ].each do |image|
188
180
  expect(@page.image_thumburls).to include('https://upload.wikimedia.org/wikipedia' + image)
189
181
  end
@@ -193,12 +185,9 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
193
185
  @client.follow_redirects = true
194
186
  @page = @client.find('Edsger Dijkstra')
195
187
  [
196
- '/en/thumb/4/4a/Commons-logo.svg/100px-Commons-logo.svg.png',
197
- '/en/thumb/4/48/Folder_Hexagonal_Icon.svg/100px-Folder_Hexagonal_Icon.svg.png',
198
188
  '/commons/thumb/5/57/Dijkstra_Animation.gif/100px-Dijkstra_Animation.gif',
199
189
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/100px-Edsger_Dijkstra_1994.jpg',
200
190
  '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/100px-Edsger_Wybe_Dijkstra.jpg',
201
- '/en/thumb/4/4d/Centrum-wiskunde-informatica-logo.png/100px-Centrum-wiskunde-informatica-logo.png'
202
191
  ].each do |image|
203
192
  expect(@page.image_thumburls(100)).to include('https://upload.wikimedia.org/wikipedia' + image)
204
193
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.email = 'ken@kenpratt.net'
20
20
 
21
21
  s.homepage = 'http://github.com/kenpratt/wikipedia-client'
22
- s.rubygems_version = '1.8.23'
22
+ s.rubygems_version = '1.11.0'
23
23
  s.summary = 'Ruby client for the Wikipedia API'
24
24
  s.platform = Gem::Platform::RUBY
25
25
  s.files = `git ls-files`.split("\n")
@@ -32,10 +32,11 @@ Gem::Specification.new do |s|
32
32
  s.require_paths << 'lib'
33
33
  s.rdoc_options << '--title' << 'wikipedia-client' << '--main' << '-ri'
34
34
 
35
- s.add_development_dependency('rake', '~> 10.1')
35
+ s.add_development_dependency('pry')
36
+ s.add_development_dependency('rake', '~> 13.0')
36
37
  s.add_development_dependency('rspec', '~> 3.0')
37
- s.add_development_dependency('rdoc', '~> 4.0')
38
- s.add_development_dependency('jeweler', '~> 1.8')
38
+ s.add_development_dependency('rdoc', '~> 6.0')
39
+ s.add_development_dependency('jeweler', '~> 2.0')
39
40
  s.add_development_dependency('rubocop', '~> 0.48')
40
41
 
41
42
  if s.respond_to? :specification_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikipedia-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -10,25 +10,39 @@ authors:
10
10
  - Aishwarya Subramanian
11
11
  - Pietro Menna
12
12
  - Sophie Rapoport
13
- autorequire:
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-03-25 00:00:00.000000000 Z
16
+ date: 2021-04-03 00:00:00.000000000 Z
17
17
  dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: pry
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
25
+ type: :development
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
18
32
  - !ruby/object:Gem::Dependency
19
33
  name: rake
20
34
  requirement: !ruby/object:Gem::Requirement
21
35
  requirements:
22
36
  - - "~>"
23
37
  - !ruby/object:Gem::Version
24
- version: '10.1'
38
+ version: '13.0'
25
39
  type: :development
26
40
  prerelease: false
27
41
  version_requirements: !ruby/object:Gem::Requirement
28
42
  requirements:
29
43
  - - "~>"
30
44
  - !ruby/object:Gem::Version
31
- version: '10.1'
45
+ version: '13.0'
32
46
  - !ruby/object:Gem::Dependency
33
47
  name: rspec
34
48
  requirement: !ruby/object:Gem::Requirement
@@ -49,28 +63,28 @@ dependencies:
49
63
  requirements:
50
64
  - - "~>"
51
65
  - !ruby/object:Gem::Version
52
- version: '4.0'
66
+ version: '6.0'
53
67
  type: :development
54
68
  prerelease: false
55
69
  version_requirements: !ruby/object:Gem::Requirement
56
70
  requirements:
57
71
  - - "~>"
58
72
  - !ruby/object:Gem::Version
59
- version: '4.0'
73
+ version: '6.0'
60
74
  - !ruby/object:Gem::Dependency
61
75
  name: jeweler
62
76
  requirement: !ruby/object:Gem::Requirement
63
77
  requirements:
64
78
  - - "~>"
65
79
  - !ruby/object:Gem::Version
66
- version: '1.8'
80
+ version: '2.0'
67
81
  type: :development
68
82
  prerelease: false
69
83
  version_requirements: !ruby/object:Gem::Requirement
70
84
  requirements:
71
85
  - - "~>"
72
86
  - !ruby/object:Gem::Version
73
- version: '1.8'
87
+ version: '2.0'
74
88
  - !ruby/object:Gem::Dependency
75
89
  name: rubocop
76
90
  requirement: !ruby/object:Gem::Requirement
@@ -89,20 +103,20 @@ dependencies:
89
103
  name: thoughtbot-shoulda
90
104
  requirement: !ruby/object:Gem::Requirement
91
105
  requirements:
92
- - - "~>"
106
+ - - ">="
93
107
  - !ruby/object:Gem::Version
94
108
  version: '2.11'
95
- - - ">="
109
+ - - "~>"
96
110
  - !ruby/object:Gem::Version
97
111
  version: '2.11'
98
112
  type: :development
99
113
  prerelease: false
100
114
  version_requirements: !ruby/object:Gem::Requirement
101
115
  requirements:
102
- - - "~>"
116
+ - - ">="
103
117
  - !ruby/object:Gem::Version
104
118
  version: '2.11'
105
- - - ">="
119
+ - - "~>"
106
120
  - !ruby/object:Gem::Version
107
121
  version: '2.11'
108
122
  description: Ruby client for the Wikipedia API
@@ -175,7 +189,7 @@ homepage: http://github.com/kenpratt/wikipedia-client
175
189
  licenses:
176
190
  - MIT
177
191
  metadata: {}
178
- post_install_message:
192
+ post_install_message:
179
193
  rdoc_options:
180
194
  - "--title"
181
195
  - wikipedia-client
@@ -195,9 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
209
  - !ruby/object:Gem::Version
196
210
  version: '0'
197
211
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.7.3
200
- signing_key:
212
+ rubygems_version: 3.0.3
213
+ signing_key:
201
214
  specification_version: 3
202
215
  summary: Ruby client for the Wikipedia API
203
216
  test_files: