eddieroger-rwikibot 2.0.4 → 2.0.5
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/CHANGELOG +3 -0
- data/lib/rwikibot.rb +1 -1
- data/lib/utilities.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/rwikibot.rb
CHANGED
@@ -140,7 +140,7 @@ class RWikiBot
|
|
140
140
|
# This is the only meta method. It will return site information. I chose not
|
141
141
|
# to allow it to specify, and it will only return all known properties.
|
142
142
|
def site_info(siprop='general')
|
143
|
-
raise VersionTooLowError unless meets_version_requirement(1,9)
|
143
|
+
#raise VersionTooLowError unless meets_version_requirement(1,9)
|
144
144
|
post_me = {"meta" => "siteinfo" , "siprop" => siprop}
|
145
145
|
siteinfo_result = make_request('query', post_me)
|
146
146
|
siprop == 'general' ?
|
data/lib/utilities.rb
CHANGED
@@ -3,7 +3,7 @@ module RWBUtilities
|
|
3
3
|
|
4
4
|
def meets_version_requirement(maj, min)
|
5
5
|
major, minor = @config['api_version'].to_s.split('.')
|
6
|
-
puts "#{major} > #{maj}"
|
6
|
+
# puts "#{major} > #{maj}"
|
7
7
|
if ( major.to_i > maj.to_i ) || ( (major.to_i == maj.to_i) && (minor.to_i > min.to_i) )
|
8
8
|
return true
|
9
9
|
else
|