wikipedia-client 1.16.0 → 1.17.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: 6bd75b9c5cb006f00a42ee85054e1cce3d61d942c6c2c8d55f01d46ce594ad0e
4
- data.tar.gz: 594bdcb73afa6d02d3a6761bad0180df3b19896f1474bdfbcfed04382318afb4
3
+ metadata.gz: 36017e939b6473fd18fa5f2fd9703518d65308da4c945a1fc5684a22c341dc27
4
+ data.tar.gz: 6d0b8ae5850085c7fdebb24a7e6f1906c4df5b2c03ca29566aa010cc0d5bec73
5
5
  SHA512:
6
- metadata.gz: a9dd0e851b81c6f59769eae01e7439c11efba75684c321eb26589b572ead963235b2b8a322169b7171908ef930a4fddcb61766e605acee5ae1d4fa3e08bea6d4
7
- data.tar.gz: b54cd43b57dafc5409a3e4524623bebbc3c275c26c97c6aeed7ccb821a075025d3dd93f41e557155e219e7346b4138c72c012f1bd175c34b49679c0d8334a4ee
6
+ metadata.gz: 478d443be7e1f2ed909ef247f6ea5dd20ae9b5b06ae2d0205094df8d6ea97849d7cb222aefcd8bfc77eb294106007f24c290217a3530a6629f4a4bbad84c6e6a
7
+ data.tar.gz: c88caabd2ee0b32936211e5c3cc1ce006cb4afa687b5671511df56430e5081b9717f34711e501e9c9e4732028de382f34d7091bda8ddac087c7fbe7cdcee555d
@@ -8,11 +8,11 @@ jobs:
8
8
  name: Ruby ${{ matrix.ruby }}
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
- matrix: { ruby: ['2.5', '2.6', '2.7', '3.0'] }
11
+ matrix: { ruby: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2'] }
12
12
 
13
13
  steps:
14
14
  - name: Checkout code
15
- uses: actions/checkout@v2
15
+ uses: actions/checkout@v3
16
16
 
17
17
  - name: Setup Ruby
18
18
  uses: ruby/setup-ruby@v1
data/.rubocop.yml CHANGED
@@ -1,3 +1,6 @@
1
+ AllCops:
2
+ NewCops: disable
3
+
1
4
  Metrics/LineLength:
2
5
  Max: 120
3
6
  AllowURI: true
@@ -5,13 +8,13 @@ Metrics/LineLength:
5
8
  Metrics/MethodLength:
6
9
  Max: 15
7
10
 
8
- Style/SpaceInsideParens:
11
+ Layout/SpaceInsideParens:
9
12
  Enabled: false
10
13
 
11
14
  Style/RescueModifier:
12
15
  Enabled: false
13
16
 
14
- Style/SpaceInsidePercentLiteralDelimiters:
17
+ Layout/SpaceInsidePercentLiteralDelimiters:
15
18
  Enabled: false
16
19
 
17
20
  Style/RegexpLiteral:
@@ -25,3 +28,55 @@ Style/SymbolArray:
25
28
 
26
29
  Metrics/ClassLength:
27
30
  Max: 130
31
+
32
+ # TODO: Remove each of the rules below once fixed.
33
+ Style/FrozenStringLiteralComment:
34
+ Enabled: false
35
+
36
+ Style/StringConcatenation:
37
+ Enabled: false
38
+
39
+ Metrics/BlockLength:
40
+ Enabled: false
41
+
42
+ Style/ExpandPathArguments:
43
+ Enabled: false
44
+
45
+ Lint/MissingCopEnableDirective:
46
+ Enabled: false
47
+
48
+ Style/FormatStringToken:
49
+ Enabled: false
50
+
51
+ Style/RedundantRegexpEscape:
52
+ Enabled: false
53
+
54
+ Naming/MethodParameterName:
55
+ Enabled: false
56
+
57
+ Style/RedundantAssignment:
58
+ Enabled: false
59
+
60
+ Style/SafeNavigation:
61
+ Enabled: false
62
+
63
+ Style/WhileUntilModifier:
64
+ Enabled: false
65
+
66
+ Layout/HashAlignment:
67
+ Enabled: false
68
+
69
+ Layout/EmptyLineAfterGuardClause:
70
+ Enabled: false
71
+
72
+ Layout/LeadingEmptyLines:
73
+ Enabled: false
74
+
75
+ Gemspec/RequiredRubyVersion:
76
+ Enabled: false
77
+
78
+ Style/Encoding:
79
+ Enabled: false
80
+
81
+ Lint/NonDeterministicRequireOrder:
82
+ Enabled: false
data/Gemfile CHANGED
@@ -1,12 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'jeweler'
4
3
  gem 'pry'
5
4
  gem 'rake'
6
5
  gem 'rdoc'
7
6
  gem 'rspec'
8
7
  # FIXME: Remove rubocop version restriction and fix or disable cops
9
- gem 'rubocop', '= 0.48.1'
8
+ gem 'rubocop', '~> 1.22', require: false
10
9
  gem 'thoughtbot-shoulda'
11
10
 
12
11
  gemspec
@@ -1,3 +1,3 @@
1
1
  module Wikipedia
2
- VERSION = '1.16.0'.freeze
2
+ VERSION = '1.17.0'.freeze
3
3
  end
@@ -1,2 +1,2 @@
1
- # rubocop:disable Style/FileName
1
+ # rubocop:disable Naming/FileName
2
2
  require 'wikipedia'
data/lib/wikipedia.rb CHANGED
@@ -27,7 +27,7 @@ module Wikipedia
27
27
  configuration.instance_eval(&block)
28
28
  end
29
29
 
30
- # rubocop:disable Style/MethodName
30
+ # rubocop:disable Naming/MethodName
31
31
  def self.Configure(&block)
32
32
  configure(&block)
33
33
  end
@@ -1,7 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
  require 'json'
3
3
 
4
- # rubocop:disable Metrics/BlockLength
5
4
  describe Wikipedia::Client, '.find page (mocked)' do
6
5
  before(:each) do
7
6
  @client = Wikipedia::Client.new
@@ -161,7 +160,6 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
161
160
  @client.follow_redirects = true
162
161
  @page = @client.find('Edsger Dijkstra')
163
162
  [
164
- '/commons/5/57/Dijkstra_Animation.gif',
165
163
  '/commons/c/c9/Edsger_Dijkstra_1994.jpg',
166
164
  '/commons/d/d9/Edsger_Wybe_Dijkstra.jpg'
167
165
  ].each do |image|
@@ -173,7 +171,6 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
173
171
  @client.follow_redirects = true
174
172
  @page = @client.find('Edsger Dijkstra')
175
173
  [
176
- '/commons/thumb/5/57/Dijkstra_Animation.gif/200px-Dijkstra_Animation.gif',
177
174
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/200px-Edsger_Dijkstra_1994.jpg',
178
175
  '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/200px-Edsger_Wybe_Dijkstra.jpg'
179
176
  ].each do |image|
@@ -185,7 +182,6 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
185
182
  @client.follow_redirects = true
186
183
  @page = @client.find('Edsger Dijkstra')
187
184
  [
188
- '/commons/thumb/5/57/Dijkstra_Animation.gif/100px-Dijkstra_Animation.gif',
189
185
  '/commons/thumb/c/c9/Edsger_Dijkstra_1994.jpg/100px-Edsger_Dijkstra_1994.jpg',
190
186
  '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/100px-Edsger_Wybe_Dijkstra.jpg'
191
187
  ].each do |image|
@@ -196,7 +192,7 @@ describe Wikipedia::Client, '.find page (Edsger_Dijkstra)' do
196
192
  it 'should collect the main image thumburl' do
197
193
  @client.follow_redirects = true
198
194
  @page = @client.find('Edsger Dijkstra')
199
- image = '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/150px-Edsger_Wybe_Dijkstra.jpg'
195
+ image = '/commons/thumb/d/d9/Edsger_Wybe_Dijkstra.jpg/200px-Edsger_Wybe_Dijkstra.jpg'
200
196
  expect(@page.main_image_thumburl).to include('https://upload.wikimedia.org/wikipedia' + image)
201
197
  end
202
198
  end
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.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-09-08 00:00:00.000000000 Z
16
+ date: 2023-02-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: addressable