wikipedia-client 1.11.0 → 1.12.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: e46200632341e7d38bd759fd3d680c8c004c82e32335c39f63f6aacbb75f7101
4
- data.tar.gz: 7fd44fa8cbbfc78aee4657ea65c57fb809229be83c8e9df65a2546932a0cb0d2
3
+ metadata.gz: 07e7dbcd9e8fd92afb079f75a87a928740dbb2427ec6a26e115cb67473f6dba9
4
+ data.tar.gz: 64a2a3cd7bf9d74b1496af48d8a2aa73366ccf4339c79d3297813d6fdb282d45
5
5
  SHA512:
6
- metadata.gz: 56c10fc45302054c0cc839fb5a0b29d67739d7971f30d91925a7cd8451b5788e1460bc074fca872b6efc9202f42562d4618a7966bf46fccc5aa44e105f05e6be
7
- data.tar.gz: 6c3a829eb521be344e89a89081b3be7a5339dacafe16a1dca1ec19cd36db603daf9c29c6cdbaaa87abc27f471ec14766733d6deffb436f46070ae8782a3b33cc
6
+ metadata.gz: 8c98ab9206724951d38d97b56bc2ef9890179971c6abcf816ae7f1a89264681b3b73d76e4d2ff1bb9ce186eb9392a6a8220e63fe6a90bbb951e803020b68a064
7
+ data.tar.gz: 4f7dc758853e41b3ea56542fa66ec4e5fc4ad013a9a75f91a6292ca790e7bda64abc020537e599245433b3f57a91c28b98783515695e771e509337935f5a9320
data/.travis.yml CHANGED
@@ -1,8 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
6
- - 2.3
7
- - 2.4
8
3
  - 2.5
4
+ - 2.6
5
+ - 2.7
6
+ - 3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wikipedia-client (1.11.0)
4
+ wikipedia-client (1.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -97,7 +97,7 @@ PLATFORMS
97
97
 
98
98
  DEPENDENCIES
99
99
  jeweler (~> 2.0)
100
- pry
100
+ pry (~> 0.14)
101
101
  rake (~> 13.0)
102
102
  rdoc (~> 6.0)
103
103
  rspec (~> 3.0)
@@ -106,4 +106,4 @@ DEPENDENCIES
106
106
  wikipedia-client!
107
107
 
108
108
  BUNDLED WITH
109
- 1.17.2
109
+ 2.0.2
@@ -106,7 +106,7 @@ module Wikipedia
106
106
  def encode( val )
107
107
  case val
108
108
  when String
109
- CGI.escape(val)
109
+ URI.encode( val, /#{URI::UNSAFE}|[\+&]/ )
110
110
  else
111
111
  val
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module Wikipedia
2
- VERSION = '1.11.0'.freeze
2
+ VERSION = '1.12.0'.freeze
3
3
  end
@@ -163,7 +163,7 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
163
163
  [
164
164
  '/commons/5/57/Dijkstra_Animation.gif',
165
165
  '/commons/c/c9/Edsger_Dijkstra_1994.jpg',
166
- '/commons/d/d9/Edsger_Wybe_Dijkstra.jpg',
166
+ '/commons/d/d9/Edsger_Wybe_Dijkstra.jpg'
167
167
  ].each do |image|
168
168
  expect(@page.image_urls).to include('https://upload.wikimedia.org/wikipedia' + image)
169
169
  end
@@ -175,7 +175,7 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
175
175
  [
176
176
  '/commons/thumb/5/57/Dijkstra_Animation.gif/200px-Dijkstra_Animation.gif',
177
177
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/200px-Edsger_Dijkstra_1994.jpg',
178
- '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/200px-Edsger_Wybe_Dijkstra.jpg',
178
+ '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/200px-Edsger_Wybe_Dijkstra.jpg'
179
179
  ].each do |image|
180
180
  expect(@page.image_thumburls).to include('https://upload.wikimedia.org/wikipedia' + image)
181
181
  end
@@ -187,7 +187,7 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
187
187
  [
188
188
  '/commons/thumb/5/57/Dijkstra_Animation.gif/100px-Dijkstra_Animation.gif',
189
189
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/100px-Edsger_Dijkstra_1994.jpg',
190
- '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/100px-Edsger_Wybe_Dijkstra.jpg',
190
+ '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/100px-Edsger_Wybe_Dijkstra.jpg'
191
191
  ].each do |image|
192
192
  expect(@page.image_thumburls(100)).to include('https://upload.wikimedia.org/wikipedia' + image)
193
193
  end
@@ -19,7 +19,6 @@ 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.11.0'
23
22
  s.summary = 'Ruby client for the Wikipedia API'
24
23
  s.platform = Gem::Platform::RUBY
25
24
  s.files = `git ls-files`.split("\n")
@@ -32,7 +31,7 @@ Gem::Specification.new do |s|
32
31
  s.require_paths << 'lib'
33
32
  s.rdoc_options << '--title' << 'wikipedia-client' << '--main' << '-ri'
34
33
 
35
- s.add_development_dependency('pry')
34
+ s.add_development_dependency('pry', '~> 0.14')
36
35
  s.add_development_dependency('rake', '~> 13.0')
37
36
  s.add_development_dependency('rspec', '~> 3.0')
38
37
  s.add_development_dependency('rdoc', '~> 6.0')
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.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -19,16 +19,16 @@ dependencies:
19
19
  name: pry
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - ">="
22
+ - - "~>"
23
23
  - !ruby/object:Gem::Version
24
- version: '0'
24
+ version: '0.14'
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - ">="
29
+ - - "~>"
30
30
  - !ruby/object:Gem::Version
31
- version: '0'
31
+ version: '0.14'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: rake
34
34
  requirement: !ruby/object:Gem::Requirement