mediawiki_api 0.7.0 → 0.7.1

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
  SHA1:
3
- metadata.gz: fd3948c075e169b6745f4d3f152669322db33106
4
- data.tar.gz: dea6665bb81defdef6dfeafaf7d3bc46e9107c65
3
+ metadata.gz: 24c2b441979ef1590276ba7b44a9249bff5ba4cb
4
+ data.tar.gz: ffd490cd3b960e2e9ae25b5bff202ffe81c7b23f
5
5
  SHA512:
6
- metadata.gz: b832407e700fb26256013bf5deac0d7a998d4101297a117500f7a86279e602a2da50fb4f5798e6ae4b895da6891d2b97c255135393b47c6fb967bbe4a42e914c
7
- data.tar.gz: e3a077b8a71868e46d28e0fea16f12111c138167456db377cb6066f086e772db9f22e4951f665544bff036480211a1ac9ac791fe8673610bbd2b209aebe596d5
6
+ metadata.gz: 9b55c5b713e3a46ea705e4b57b937c1e1e7e2f0bf9828dec4036a78c837c58ecc2753f47b38589b442224460802ed7c8e1236265e0fda2549d12b37ff5b15f7d
7
+ data.tar.gz: 483b24f63f2c2ea9928a81d58762bed2783442e2883848f4170cefdd27d0c854125b7d9ea2128832b33239c1b21c1afe2499bd7383413443730fb037e039f4b3
data/README.md CHANGED
@@ -65,6 +65,9 @@ See https://www.mediawiki.org/wiki/Gerrit
65
65
 
66
66
  ## Release notes
67
67
 
68
+ ### 0.7.1 2017-01-31
69
+ - Add `text` param to `MediawikiApi::Client#upload_image`
70
+
68
71
  ### 0.7.0 2016-08-03
69
72
  - Automatically follow redirects for all API requests.
70
73
 
@@ -161,10 +161,10 @@ module MediawikiApi
161
161
  action(:watch, token_type: 'watch', titles: title, unwatch: true)
162
162
  end
163
163
 
164
- def upload_image(filename, path, comment, ignorewarnings)
164
+ def upload_image(filename, path, comment, ignorewarnings, text = nil)
165
165
  file = Faraday::UploadIO.new(path, 'image/png')
166
166
  action(:upload,
167
- filename: filename, file: file, comment: comment,
167
+ filename: filename, file: file, comment: comment, text: text,
168
168
  ignorewarnings: ignorewarnings)
169
169
  end
170
170
 
@@ -1,4 +1,4 @@
1
1
  # MediaWiki Ruby API
2
2
  module MediawikiApi
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  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.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amir Aharoni
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-08-03 00:00:00.000000000 Z
17
+ date: 2017-01-31 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: faraday
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  requirements: []
242
242
  rubyforge_project:
243
- rubygems_version: 2.4.8
243
+ rubygems_version: 2.6.7
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: A library for interacting with MediaWiki API from Ruby.