mediawikiapi_client 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/mediawikiapi_client.rb +2 -1
- data/test/test_mediawikiapi_client.rb +0 -0
- metadata +40 -33
data/Rakefile
CHANGED
@@ -35,7 +35,7 @@ Rake::RDocTask.new("rdoc") { |rdoc|
|
|
35
35
|
require 'rake/gempackagetask'
|
36
36
|
gem_spec = Gem::Specification.new do |spec|
|
37
37
|
spec.name = 'mediawikiapi_client'
|
38
|
-
spec.version = '0.
|
38
|
+
spec.version = '0.2'
|
39
39
|
spec.files = FileList['LICENSE', 'GPL', 'Rakefile', 'README', 'lib/**/*.rb', 'test/**/*']
|
40
40
|
spec.summary = 'Ruby client for interfacing with the MediaWiki API'
|
41
41
|
spec.description = spec.summary
|
data/lib/mediawikiapi_client.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'net/https'
|
2
2
|
require 'uri'
|
3
|
+
require 'cgi'
|
3
4
|
require 'stringio'
|
4
5
|
require 'zlib'
|
5
6
|
|
@@ -27,7 +28,7 @@ private
|
|
27
28
|
params = []
|
28
29
|
params << "action=#{method_id.to_s}"
|
29
30
|
arg = args.first
|
30
|
-
arg.each_pair { |k,v| params << "#{
|
31
|
+
arg.each_pair { |k,v| params << "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}" } if arg.class == Hash
|
31
32
|
|
32
33
|
execute_api_call params.sort
|
33
34
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,33 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: mediawikiapi_client
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2007-11-11 00:00:00 -05:00
|
8
|
-
summary: Ruby client for interfacing with the MediaWiki API
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: nicholson.roy@gmail.com
|
12
|
-
homepage: http://mediawikiclient.rubyforge.org/
|
13
|
-
rubyforge_project: mediawikiclient
|
14
|
-
description: Ruby client for interfacing with the MediaWiki API
|
15
|
-
autorequire: mediawikiapi_client
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: false
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: "0.2"
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Roy Nicholson
|
8
|
+
autorequire: mediawikiapi_client
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-04-18 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Ruby client for interfacing with the MediaWiki API
|
17
|
+
email: nicholson.roy@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
31
24
|
files:
|
32
25
|
- LICENSE
|
33
26
|
- GPL
|
@@ -35,17 +28,31 @@ files:
|
|
35
28
|
- README
|
36
29
|
- lib/mediawikiapi_client.rb
|
37
30
|
- test/test_mediawikiapi_client.rb
|
38
|
-
|
39
|
-
|
31
|
+
has_rdoc: false
|
32
|
+
homepage: http://mediawikiclient.rubyforge.org/
|
33
|
+
post_install_message:
|
40
34
|
rdoc_options: []
|
41
35
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
36
|
+
require_paths:
|
37
|
+
- lib
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: "0"
|
43
|
+
version:
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: "0"
|
49
|
+
version:
|
48
50
|
requirements: []
|
49
51
|
|
50
|
-
|
52
|
+
rubyforge_project: mediawikiclient
|
53
|
+
rubygems_version: 1.1.0
|
54
|
+
signing_key:
|
55
|
+
specification_version: 2
|
56
|
+
summary: Ruby client for interfacing with the MediaWiki API
|
57
|
+
test_files: []
|
51
58
|
|