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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/mediawiki/edit.rb +2 -2
  4. metadata +1 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8d1d049adaacdee763a3b3a741ae4d8c7641813
4
- data.tar.gz: 36994491428f1eb43fc994530267b16a3bcf58a2
3
+ metadata.gz: 39a298105810a6c06ffbc2ffe93a7f2583e47454
4
+ data.tar.gz: ac4291f2d83dfdf74bdfd7f2364057d558ea6400
5
5
  SHA512:
6
- metadata.gz: 167e862fd9eef9e7212e861c1bad91bca497eaf3c96a3fcd0f16684ea017dbe7bb6d858ac7b29e3760c3a3a2e69062c4dfa22342c54535e2e54197fba2545f20
7
- data.tar.gz: dc16fd0e84563e8ca0e2db74ac7604e38ff1dda67f94f242a2dedb511ed884ab940a3aad216ade4a931a9b1b8b82b2f9a50116f9b83a8901e87d2c2ad33d76d7
6
+ metadata.gz: b1afc8b4b77984f2b97fd0284f7e01cbc99d437debbd80f7f2fb1ee5dbd9a90e69e679151bac741318efb19a3afa10066b79a36ac86d0399d5ad2e9865adcf10
7
+ data.tar.gz: 80e4cd4d90dd99006ec742a7fa4cb0aa3c90590c16715893ab18dabd16b5f74f49ba908fece363190ee0416fd92b052541b40aaf59acdde926e5c6bfb54260dc
@@ -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.
@@ -25,7 +25,7 @@ module MediaWiki
25
25
 
26
26
  response = post(params)
27
27
 
28
- if response["error"]["code"].nil?
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["error"]["code"].nil?
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.0
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