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 +4 -4
- data/README.md +3 -0
- data/lib/mediawiki_api/client.rb +2 -2
- data/lib/mediawiki_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24c2b441979ef1590276ba7b44a9249bff5ba4cb
|
4
|
+
data.tar.gz: ffd490cd3b960e2e9ae25b5bff202ffe81c7b23f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b55c5b713e3a46ea705e4b57b937c1e1e7e2f0bf9828dec4036a78c837c58ecc2753f47b38589b442224460802ed7c8e1236265e0fda2549d12b37ff5b15f7d
|
7
|
+
data.tar.gz: 483b24f63f2c2ea9928a81d58762bed2783442e2883848f4170cefdd27d0c854125b7d9ea2128832b33239c1b21c1afe2499bd7383413443730fb037e039f4b3
|
data/README.md
CHANGED
data/lib/mediawiki_api/client.rb
CHANGED
@@ -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
|
|
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.
|
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:
|
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.
|
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.
|