mediawiki_api 0.7.1 → 0.9.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
- SHA1:
3
- metadata.gz: 24c2b441979ef1590276ba7b44a9249bff5ba4cb
4
- data.tar.gz: ffd490cd3b960e2e9ae25b5bff202ffe81c7b23f
2
+ SHA256:
3
+ metadata.gz: b62379a3d8c9db42e6eef936b187f5e7ec8580d85470e06664aa77b61f84231a
4
+ data.tar.gz: 510e690f5ea8d2c9bd4ce6b494de54eb9b4ef055394b3cd28ff1808ee5887b74
5
5
  SHA512:
6
- metadata.gz: 9b55c5b713e3a46ea705e4b57b937c1e1e7e2f0bf9828dec4036a78c837c58ecc2753f47b38589b442224460802ed7c8e1236265e0fda2549d12b37ff5b15f7d
7
- data.tar.gz: 483b24f63f2c2ea9928a81d58762bed2783442e2883848f4170cefdd27d0c854125b7d9ea2128832b33239c1b21c1afe2499bd7383413443730fb037e039f4b3
6
+ metadata.gz: 2e9d1d43095b11d1741dacb0d277961f7880ac31ae2979a09acbe187969b69083ff8b99d929c0deff1e8f2eaf4ee1171ecd65b63438ee766cd77252584fa8f3f
7
+ data.tar.gz: 698a6310751aa185f48da78e4eb0c18453c1fef663186a9829a756497878e341f37cd9869bd9861260c5336d5a61f4f966830ff55c1dabb34c14db95023bb503
data/.gitignore CHANGED
@@ -6,3 +6,5 @@
6
6
  .gem
7
7
  Gemfile.lock
8
8
  *.gem
9
+ .idea/
10
+ .vscode/
data/.rubocop.yml CHANGED
@@ -1,7 +1,13 @@
1
+ # require: rubocop-rspec # make specs compliant one day
2
+ # until then:
3
+
1
4
  AllCops:
5
+ SuggestExtensions: false
6
+ TargetRubyVersion: 2.6
2
7
  StyleGuideCopsOnly: true
8
+ NewCops: enable
3
9
 
4
- Metrics/LineLength:
10
+ Layout/LineLength:
5
11
  Max: 100
6
12
 
7
13
  Metrics/MethodLength:
@@ -10,7 +16,7 @@ Metrics/MethodLength:
10
16
  Style/Alias:
11
17
  Enabled: false
12
18
 
13
- Style/DotPosition:
19
+ Layout/DotPosition:
14
20
  EnforcedStyle: trailing
15
21
 
16
22
  Style/SignalException:
@@ -21,3 +27,7 @@ Style/StringLiterals:
21
27
 
22
28
  Style/TrivialAccessors:
23
29
  ExactNameMatch: true
30
+
31
+ # See https://github.com/bbatsov/rubocop/issues/4637
32
+ Layout/SpaceAroundOperators:
33
+ Enabled: false
data/.yardopts CHANGED
@@ -1 +1,2 @@
1
1
  --title "MediaWiki Ruby API"
2
+ - '*.md'
data/CREDITS CHANGED
@@ -2,11 +2,11 @@ mediawiki_ruby_api_client is a collaborative project released under the
2
2
  GNU General Public License v2. We would like to recognize the
3
3
  following names for their contribution to the product.
4
4
 
5
- For further details on licensing, see the LICENSE file.
5
+ For further details on licensing, see the LICENSE.md file.
6
6
 
7
7
  == Developers ==
8
8
  * Amir Aharoni
9
- * Asaf Bartov
9
+ * [Asaf Bartov](https://github.com/abartov) (current maintainer)
10
10
  * Chris McMahon
11
11
  * Dan Duvall
12
12
  * Jeff Hall
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
- # ruby=ruby-2.1.2
2
- # ruby-gemset=mediawiki_api
3
-
4
1
  source 'https://rubygems.org'
5
2
 
6
3
  # Specify your gem's dependencies in mediawiki_api.gemspec
@@ -1,6 +1,6 @@
1
- == License and copyright information ==
1
+ # License and copyright information
2
2
 
3
- === License ===
3
+ ## License
4
4
 
5
5
  MediaWiki is licensed under the terms of the GNU General Public License,
6
6
  version 2 or later. Derivative works and later versions of the code must be
@@ -12,12 +12,12 @@ For the full text of version 2 of the license, see
12
12
  https://www.gnu.org/licenses/gpl-2.0.html or '''GNU General Public License'''
13
13
  below.
14
14
 
15
- === Copyright owners ===
15
+ ## Copyright owners
16
16
 
17
17
  MediaWiki contributors, including those listed in the CREDITS file, hold the
18
18
  copyright to this work.
19
19
 
20
- === Additional license information ===
20
+ ## Additional license information
21
21
 
22
22
  Some components of MediaWiki imported from other projects may be under other
23
23
  Free and Open Source, or Free Culture, licenses. Specific details of their
@@ -36,7 +36,7 @@ CC licenses:
36
36
  These icons are trademarked, and used subject to the CC trademark license,
37
37
  available at http://creativecommons.org/policies#trademark
38
38
 
39
- == GNU GENERAL PUBLIC LICENSE ==
39
+ # GNU GENERAL PUBLIC LICENSE
40
40
 
41
41
  Version 2, June 1991
42
42
 
@@ -45,7 +45,7 @@ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
45
45
  Everyone is permitted to copy and distribute verbatim copies
46
46
  of this license document, but changing it is not allowed.
47
47
 
48
- === Preamble ===
48
+ ## Preamble
49
49
 
50
50
  The licenses for most software are designed to take away your
51
51
  freedom to share and change it. By contrast, the GNU General Public
@@ -95,7 +95,7 @@ patent must be licensed for everyone's free use or not licensed at all.
95
95
  The precise terms and conditions for copying, distribution and
96
96
  modification follow.
97
97
 
98
- == TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION ==
98
+ # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
99
99
 
100
100
  '''0.''' This License applies to any program or other work which contains
101
101
  a notice placed by the copyright holder saying it may be distributed
@@ -293,7 +293,7 @@ make exceptions for this. Our decision will be guided by the two goals
293
293
  of preserving the free status of all derivatives of our free software and
294
294
  of promoting the sharing and reuse of software generally.
295
295
 
296
- === NO WARRANTY ===
296
+ ## NO WARRANTY
297
297
 
298
298
  '''11.''' BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
299
299
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -317,7 +317,7 @@ POSSIBILITY OF SUCH DAMAGES.
317
317
 
318
318
  '''END OF TERMS AND CONDITIONS'''
319
319
 
320
- == How to Apply These Terms to Your New Programs ==
320
+ # How to Apply These Terms to Your New Programs
321
321
 
322
322
  If you develop a new program, and you want it to be of the greatest
323
323
  possible use to the public, the best way to achieve this is to make it
data/README.md CHANGED
@@ -26,6 +26,7 @@ require "mediawiki_api"
26
26
 
27
27
  client = MediawikiApi::Client.new "http://127.0.0.1:8080/w/api.php"
28
28
  client.log_in "username", "password" # default Vagrant username and password are "Admin", "vagrant"
29
+ client.set_oauth_access_token("user_oauth_token") # INSTEAD of logging in, will make all actions as the user authenticated via OAuth
29
30
  client.create_account "username", "password" # will not work on wikis that require CAPTCHA, like Wikipedia
30
31
  client.create_page "title", "content"
31
32
  client.get_wikitext "title"
@@ -65,6 +66,14 @@ See https://www.mediawiki.org/wiki/Gerrit
65
66
 
66
67
  ## Release notes
67
68
 
69
+ ### 0.9.0 2024-05-06
70
+ - Upgraded underlying Faraday gem to 2.x (> 2.7.0)
71
+ - Updated required Ruby to 2.6.x
72
+
73
+ ### 0.8.0 2023-10-26
74
+ - Add `oauth_access_token`, allowing authenticated actions on behalf of users via [Wikimedia's OAuth service](https://www.mediawiki.org/wiki/OAuth/For_Developers). Obtaining the access token is up to this gem's user. In Ruby, one can use the `[oauth2](https://gitlab.com/oauth-xx/oauth2/)` gem. A working example can be seen in the source code of [the Luthor tool](https://gitlab.wikimedia.org/toolforge-repos/luthor/-/blob/master/app/controllers/usage_controller.rb).
75
+ - New maintainer: @abartov
76
+
68
77
  ### 0.7.1 2017-01-31
69
78
  - Add `text` param to `MediawikiApi::Client#upload_image`
70
79
 
@@ -137,3 +146,7 @@ See https://www.mediawiki.org/wiki/Gerrit
137
146
  ### 0.0.1 2014-02-07
138
147
 
139
148
  - Added MediawikiApi#create_article and #create_user.
149
+
150
+ ## {file:LICENSE.md}
151
+
152
+ © Copyright 2013-2023, Wikimedia Foundation & Contributors. Released under the terms of the GNU General Public License, version 2 or later.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ YARD::Rake::YardocTask.new(:yard)
13
13
  task default: [:test]
14
14
 
15
15
  desc 'Run all build/tests commands (CI entry point)'
16
- task test: [:build, :rubocop, :spec, :yard]
16
+ task test: %i[build rubocop spec yard]
17
17
 
18
18
  desc 'Generate all documentations'
19
19
  task doc: [:yard]
@@ -1,6 +1,7 @@
1
1
  require 'faraday'
2
- require 'faraday_middleware'
2
+ require 'faraday/multipart'
3
3
  require 'faraday-cookie_jar'
4
+ require 'faraday/follow_redirects'
4
5
  require 'json'
5
6
 
6
7
  require 'mediawiki_api/exceptions'
@@ -16,7 +17,7 @@ module MediawikiApi
16
17
 
17
18
  alias_method :logged_in?, :logged_in
18
19
 
19
- def initialize(url, log = false)
20
+ def initialize(url, log: false)
20
21
  @cookies = HTTP::CookieJar.new
21
22
 
22
23
  @conn = Faraday.new(url: url) do |faraday|
@@ -24,7 +25,7 @@ module MediawikiApi
24
25
  faraday.request :url_encoded
25
26
  faraday.response :logger if log
26
27
  faraday.use :cookie_jar, jar: @cookies
27
- faraday.use FaradayMiddleware::FollowRedirects
28
+ faraday.response :follow_redirects
28
29
  faraday.adapter Faraday.default_adapter
29
30
  end
30
31
 
@@ -35,21 +36,23 @@ module MediawikiApi
35
36
  def action(name, params = {})
36
37
  raw_action(name, params)
37
38
  rescue ApiError => e
38
- if e.code == 'badtoken'
39
- @tokens.clear # ensure fresh token on re-try
40
- raw_action(name, params) # no rescue this time; only re-try once.
41
- else
42
- raise # otherwise, propagate the exception
43
- end
39
+ # propagate the exception
40
+ raise unless e.code == 'badtoken'
41
+ @tokens.clear # ensure fresh token on re-try
42
+ raw_action(name, params) # no rescue this time; only re-try once.
43
+ end
44
+
45
+ # set the OAuth access token to be used for all subsequent actions
46
+ # (obtaining the token is up to you)
47
+ def oauth_access_token(access_token)
48
+ @conn.headers['Authorization'] = "Bearer #{access_token}"
44
49
  end
45
50
 
46
51
  def create_account(username, password)
47
52
  params = { modules: 'createaccount', token_type: false }
48
53
  d = action(:paraminfo, params).data
49
54
  params = d['modules'] && d['modules'][0] && d['modules'][0]['parameters']
50
- if !params || !params.map
51
- raise CreateAccountError, 'unexpected API response format'
52
- end
55
+ raise CreateAccountError, 'unexpected API response format' if !params || !params.map
53
56
  params = params.map{ |o| o['name'] }
54
57
 
55
58
  if params.include? 'requests'
@@ -63,9 +66,7 @@ module MediawikiApi
63
66
  # post-AuthManager
64
67
  data = action(:query, { meta: 'tokens', type: 'createaccount', token_type: false }).data
65
68
  token = data['tokens'] && data['tokens']['createaccounttoken']
66
- unless token
67
- raise CreateAccountError, 'failed to get createaccount API token'
68
- end
69
+ raise CreateAccountError, 'failed to get createaccount API token' unless token
69
70
 
70
71
  data = action(:createaccount, {
71
72
  username: username,
@@ -89,7 +89,7 @@ module MediawikiApi
89
89
  if !obj.is_a?(Hash) || env.nil? || env.empty? || !obj.include?(env.first)
90
90
  obj
91
91
  else
92
- open_envelope(obj[env.first], env[1..-1])
92
+ open_envelope(obj[env.first], env[1..])
93
93
  end
94
94
  end
95
95
 
@@ -1,4 +1,4 @@
1
1
  # MediaWiki Ruby API
2
2
  module MediawikiApi
3
- VERSION = '0.7.1'
3
+ VERSION = '0.9.0'
4
4
  end
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'mediawiki_api/version'
@@ -18,21 +17,30 @@ Gem::Specification.new do |spec|
18
17
  spec.summary = 'A library for interacting with MediaWiki API from Ruby.'
19
18
  spec.description = 'Uses adapter-agnostic Faraday gem to talk to MediaWiki API.'
20
19
  spec.homepage = 'https://github.com/wikimedia/mediawiki-ruby-api'
21
- spec.license = 'GPL-2'
20
+ spec.license = 'GPL-2.0'
22
21
 
23
22
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
24
23
  spec.test_files = spec.files.grep(/^(test|spec|features)/)
25
24
  spec.require_paths = ['lib']
26
25
 
27
- spec.add_runtime_dependency 'faraday', '~> 0.9', '>= 0.9.0'
28
- spec.add_runtime_dependency 'faraday-cookie_jar', '~> 0.0', '>= 0.0.6'
29
- spec.add_runtime_dependency 'faraday_middleware', '~> 0.10', '>= 0.10.0'
26
+ spec.required_ruby_version = '>= 2.6.0'
30
27
 
31
- spec.add_development_dependency 'bundler', '~> 1.3'
32
- spec.add_development_dependency 'rake', '~> 0'
33
- spec.add_development_dependency 'rspec', '~> 3.0', '>= 3.0.0'
34
- spec.add_development_dependency 'rubocop', '~> 0.29.1'
35
- spec.add_development_dependency 'webmock', '~> 1.17', '>= 1.17.2'
28
+ spec.add_runtime_dependency 'faraday', '>= 2.7.0'
29
+ spec.add_runtime_dependency 'faraday-multipart'
30
+ spec.add_runtime_dependency 'faraday-retry'
31
+ spec.add_runtime_dependency 'faraday-cookie_jar'
32
+ spec.add_runtime_dependency 'faraday-follow_redirects'
33
+
34
+ # Most developer dependencies can float to latest, but stick to RSpec 3
35
+ # since that would likely introduce breaking changes (bundler, rubocop
36
+ # and rake have excellent back-compat)
37
+ spec.add_development_dependency 'bundler'
38
+ spec.add_development_dependency 'rake'
39
+ spec.add_development_dependency 'rspec', '~> 3'
40
+ spec.add_development_dependency 'rubocop'
41
+ spec.add_development_dependency 'rubocop-rake'
42
+ spec.add_development_dependency 'rubocop-rspec'
43
+ spec.add_development_dependency 'webmock'
36
44
  spec.add_development_dependency 'redcarpet'
37
45
  spec.add_development_dependency 'yard'
38
46
  end
data/spec/client_spec.rb CHANGED
@@ -91,7 +91,7 @@ describe MediawikiApi::Client do
91
91
  end
92
92
 
93
93
  context 'array parameters' do
94
- let(:params) { { foo: %w(one two) } }
94
+ let(:params) { { foo: %w[one two] } }
95
95
 
96
96
  before do
97
97
  @request = stub_action_request(action, foo: 'one|two').to_return(response)
@@ -141,6 +141,21 @@ describe MediawikiApi::Client do
141
141
  end
142
142
  end
143
143
 
144
+ context 'when an OAuth access token was supplied' do
145
+ before do
146
+ client.oauth_access_token('my_token')
147
+ end
148
+
149
+ it 'includes the OAuth access token in an Authorization: Bearer header' do
150
+ stub_token_request('csrf')
151
+ request = stub_action_request('foo').with(headers: { 'Authorization' => 'Bearer my_token' })
152
+
153
+ client.action(:foo)
154
+
155
+ expect(request).to have_been_requested
156
+ end
157
+ end
158
+
144
159
  context 'when the token response includes only other types of warnings (see bug 70066)' do
145
160
  let(:token_warning) do
146
161
  'action=tokens has been deprecated. Please use action=query&meta=tokens instead.'
@@ -28,14 +28,14 @@ describe MediawikiApi::Response do
28
28
  end
29
29
 
30
30
  context 'and a multi-level envelope' do
31
- let(:envelope) { %w(query result) }
31
+ let(:envelope) { %w[query result] }
32
32
  let(:nested_object) { response_object['query']['result'] }
33
33
 
34
34
  it { is_expected.to eq(nested_object) }
35
35
  end
36
36
 
37
37
  context "and a multi-level envelope that doesn't completely match" do
38
- let(:envelope) { %w(query something) }
38
+ let(:envelope) { %w[query something] }
39
39
  let(:partially_nested_object) { response_object['query'] }
40
40
 
41
41
  it { is_expected.to eq(partially_nested_object) }
@@ -46,7 +46,7 @@ describe MediawikiApi::Response do
46
46
  let(:body) { '[ "something" ]' }
47
47
 
48
48
  context 'with any expected envelope' do
49
- let(:envelope) { %w(what ever) }
49
+ let(:envelope) { %w[what ever] }
50
50
 
51
51
  it { is_expected.to eq(response_object) }
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediawiki_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amir Aharoni
@@ -11,97 +11,107 @@ authors:
11
11
  - Jeff Hall
12
12
  - Juliusz Gonera
13
13
  - Zeljko Filipin
14
- autorequire:
14
+ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2017-01-31 00:00:00.000000000 Z
17
+ date: 2024-05-07 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: faraday
21
21
  requirement: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - "~>"
23
+ - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '0.9'
25
+ version: 2.7.0
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.7.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday-multipart
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
26
37
  - - ">="
27
38
  - !ruby/object:Gem::Version
28
- version: 0.9.0
39
+ version: '0'
29
40
  type: :runtime
30
41
  prerelease: false
31
42
  version_requirements: !ruby/object:Gem::Requirement
32
43
  requirements:
33
- - - "~>"
44
+ - - ">="
34
45
  - !ruby/object:Gem::Version
35
- version: '0.9'
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: faraday-retry
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
36
58
  - - ">="
37
59
  - !ruby/object:Gem::Version
38
- version: 0.9.0
60
+ version: '0'
39
61
  - !ruby/object:Gem::Dependency
40
62
  name: faraday-cookie_jar
41
63
  requirement: !ruby/object:Gem::Requirement
42
64
  requirements:
43
- - - "~>"
44
- - !ruby/object:Gem::Version
45
- version: '0.0'
46
65
  - - ">="
47
66
  - !ruby/object:Gem::Version
48
- version: 0.0.6
67
+ version: '0'
49
68
  type: :runtime
50
69
  prerelease: false
51
70
  version_requirements: !ruby/object:Gem::Requirement
52
71
  requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '0.0'
56
72
  - - ">="
57
73
  - !ruby/object:Gem::Version
58
- version: 0.0.6
74
+ version: '0'
59
75
  - !ruby/object:Gem::Dependency
60
- name: faraday_middleware
76
+ name: faraday-follow_redirects
61
77
  requirement: !ruby/object:Gem::Requirement
62
78
  requirements:
63
- - - "~>"
64
- - !ruby/object:Gem::Version
65
- version: '0.10'
66
79
  - - ">="
67
80
  - !ruby/object:Gem::Version
68
- version: 0.10.0
81
+ version: '0'
69
82
  type: :runtime
70
83
  prerelease: false
71
84
  version_requirements: !ruby/object:Gem::Requirement
72
85
  requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.10'
76
86
  - - ">="
77
87
  - !ruby/object:Gem::Version
78
- version: 0.10.0
88
+ version: '0'
79
89
  - !ruby/object:Gem::Dependency
80
90
  name: bundler
81
91
  requirement: !ruby/object:Gem::Requirement
82
92
  requirements:
83
- - - "~>"
93
+ - - ">="
84
94
  - !ruby/object:Gem::Version
85
- version: '1.3'
95
+ version: '0'
86
96
  type: :development
87
97
  prerelease: false
88
98
  version_requirements: !ruby/object:Gem::Requirement
89
99
  requirements:
90
- - - "~>"
100
+ - - ">="
91
101
  - !ruby/object:Gem::Version
92
- version: '1.3'
102
+ version: '0'
93
103
  - !ruby/object:Gem::Dependency
94
104
  name: rake
95
105
  requirement: !ruby/object:Gem::Requirement
96
106
  requirements:
97
- - - "~>"
107
+ - - ">="
98
108
  - !ruby/object:Gem::Version
99
109
  version: '0'
100
110
  type: :development
101
111
  prerelease: false
102
112
  version_requirements: !ruby/object:Gem::Requirement
103
113
  requirements:
104
- - - "~>"
114
+ - - ">="
105
115
  - !ruby/object:Gem::Version
106
116
  version: '0'
107
117
  - !ruby/object:Gem::Dependency
@@ -110,54 +120,70 @@ dependencies:
110
120
  requirements:
111
121
  - - "~>"
112
122
  - !ruby/object:Gem::Version
113
- version: '3.0'
123
+ version: '3'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '3'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
114
135
  - - ">="
115
136
  - !ruby/object:Gem::Version
116
- version: 3.0.0
137
+ version: '0'
117
138
  type: :development
118
139
  prerelease: false
119
140
  version_requirements: !ruby/object:Gem::Requirement
120
141
  requirements:
121
- - - "~>"
142
+ - - ">="
122
143
  - !ruby/object:Gem::Version
123
- version: '3.0'
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: rubocop-rake
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
124
149
  - - ">="
125
150
  - !ruby/object:Gem::Version
126
- version: 3.0.0
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
127
159
  - !ruby/object:Gem::Dependency
128
- name: rubocop
160
+ name: rubocop-rspec
129
161
  requirement: !ruby/object:Gem::Requirement
130
162
  requirements:
131
- - - "~>"
163
+ - - ">="
132
164
  - !ruby/object:Gem::Version
133
- version: 0.29.1
165
+ version: '0'
134
166
  type: :development
135
167
  prerelease: false
136
168
  version_requirements: !ruby/object:Gem::Requirement
137
169
  requirements:
138
- - - "~>"
170
+ - - ">="
139
171
  - !ruby/object:Gem::Version
140
- version: 0.29.1
172
+ version: '0'
141
173
  - !ruby/object:Gem::Dependency
142
174
  name: webmock
143
175
  requirement: !ruby/object:Gem::Requirement
144
176
  requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: '1.17'
148
177
  - - ">="
149
178
  - !ruby/object:Gem::Version
150
- version: 1.17.2
179
+ version: '0'
151
180
  type: :development
152
181
  prerelease: false
153
182
  version_requirements: !ruby/object:Gem::Requirement
154
183
  requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '1.17'
158
184
  - - ">="
159
185
  - !ruby/object:Gem::Version
160
- version: 1.17.2
186
+ version: '0'
161
187
  - !ruby/object:Gem::Dependency
162
188
  name: redcarpet
163
189
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +232,7 @@ files:
206
232
  - ".yardopts"
207
233
  - CREDITS
208
234
  - Gemfile
209
- - LICENSE.txt
235
+ - LICENSE.md
210
236
  - README.md
211
237
  - Rakefile
212
238
  - lib/mediawiki_api.rb
@@ -222,9 +248,9 @@ files:
222
248
  - spec/support/request_helpers.rb
223
249
  homepage: https://github.com/wikimedia/mediawiki-ruby-api
224
250
  licenses:
225
- - GPL-2
251
+ - GPL-2.0
226
252
  metadata: {}
227
- post_install_message:
253
+ post_install_message:
228
254
  rdoc_options: []
229
255
  require_paths:
230
256
  - lib
@@ -232,16 +258,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
258
  requirements:
233
259
  - - ">="
234
260
  - !ruby/object:Gem::Version
235
- version: '0'
261
+ version: 2.6.0
236
262
  required_rubygems_version: !ruby/object:Gem::Requirement
237
263
  requirements:
238
264
  - - ">="
239
265
  - !ruby/object:Gem::Version
240
266
  version: '0'
241
267
  requirements: []
242
- rubyforge_project:
243
- rubygems_version: 2.6.7
244
- signing_key:
268
+ rubygems_version: 3.5.7
269
+ signing_key:
245
270
  specification_version: 4
246
271
  summary: A library for interacting with MediaWiki API from Ruby.
247
272
  test_files:
@@ -250,4 +275,3 @@ test_files:
250
275
  - spec/response_spec.rb
251
276
  - spec/spec_helper.rb
252
277
  - spec/support/request_helpers.rb
253
- has_rdoc: