mediawiki-butt 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mediawiki/edit.rb +2 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a298105810a6c06ffbc2ffe93a7f2583e47454
|
4
|
+
data.tar.gz: ac4291f2d83dfdf74bdfd7f2364057d558ea6400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1afc8b4b77984f2b97fd0284f7e01cbc99d437debbd80f7f2fb1ee5dbd9a90e69e679151bac741318efb19a3afa10066b79a36ac86d0399d5ad2e9865adcf10
|
7
|
+
data.tar.gz: 80e4cd4d90dd99006ec742a7fa4cb0aa3c90590c16715893ab18dabd16b5f74f49ba908fece363190ee0416fd92b052541b40aaf59acdde926e5c6bfb54260dc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
## Version 0
|
3
|
+
### Version 0.3.1
|
4
|
+
* Fix edit and create_page NoMethodErrors.
|
5
|
+
* Remove dependency for JSON as the version we use is included in the Ruby standard library.
|
6
|
+
|
3
7
|
### Version 0.3.0
|
4
8
|
* New upload method to upload by URL.
|
5
9
|
* New create_page method.
|
data/lib/mediawiki/edit.rb
CHANGED
@@ -25,7 +25,7 @@ module MediaWiki
|
|
25
25
|
|
26
26
|
response = post(params)
|
27
27
|
|
28
|
-
if response["
|
28
|
+
if response["edit"]["result"] == "Success"
|
29
29
|
return response["edit"]["newrevid"]
|
30
30
|
else
|
31
31
|
return response["error"]["code"]
|
@@ -55,7 +55,7 @@ module MediaWiki
|
|
55
55
|
|
56
56
|
response = post(params)
|
57
57
|
|
58
|
-
if response["
|
58
|
+
if response["edit"]["result"] == "Success"
|
59
59
|
return response["edit"]["pageid"]
|
60
60
|
else
|
61
61
|
return response["error"]["code"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediawiki-butt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.0.1
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: json
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: httpclient
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|