mediawiki-butt 0.11.0 → 0.11.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 +5 -0
- data/LICENSE.md +25 -0
- data/lib/mediawiki/query/lists/users.rb +3 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6dbd003fbc5068efe0a5bc3492317db380f0ceb
|
4
|
+
data.tar.gz: 92d56a75e87f81f30e58368eb4e7406d1b9ed638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b096731fa931d81c5c6eef8cfd2eab9c0ffc71a1af89277b79894a0b5cb6f88a6264bc27d3d9b5a7a33a0fd30dc23a2a4f0fbdcc0ebd511ff553f2301b096fce
|
7
|
+
data.tar.gz: 3cee7c55b72f0296ec90d0f3198fdc69baabf66c8b7aea6042c6f54b1dd03f38ad49c9c4d28836f2ebf4894b57324055302d65f31becbea13b19a28283fc380e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
## Version 0
|
3
|
+
### Version 0.11.1
|
4
|
+
* Relicense under the MIT license.
|
5
|
+
* Bump HTTPClient dependency.
|
6
|
+
* Resolve get_registration_time TypeError (#26)
|
7
|
+
|
3
8
|
### Version 0.11.0
|
4
9
|
* Fix get_mostcategories_page typo (Mostca**c**tegories) (#24).
|
5
10
|
* Significant rewrite of the README, arguably the most important part of this version.
|
data/LICENSE.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright © 2016 Eli Foster, Eric Schneider
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person
|
6
|
+
obtaining a copy of this software and associated documentation
|
7
|
+
files (the “Software”), to deal in the Software without
|
8
|
+
restriction, including without limitation the rights to use,
|
9
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the
|
11
|
+
Software is furnished to do so, subject to the following
|
12
|
+
conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
19
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
21
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
22
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
24
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
|
@@ -117,6 +117,7 @@ module MediaWiki
|
|
117
117
|
# @see get_userlists
|
118
118
|
# @since 0.4.0
|
119
119
|
# @return [DateTime] The registration date and time as a DateTime object.
|
120
|
+
# @return [Boolean] False when no username is provided and not logged in, or the user doesn't exist.
|
120
121
|
def get_registration_time(username = nil)
|
121
122
|
time = nil
|
122
123
|
# Do note that in Userinfo, registration is called registrationdate.
|
@@ -132,6 +133,8 @@ module MediaWiki
|
|
132
133
|
info['query']['users'].each { |i| time = i['registration'] }
|
133
134
|
end
|
134
135
|
|
136
|
+
return false if time.nil?
|
137
|
+
|
135
138
|
DateTime.strptime(time, '%Y-%m-%dT%T')
|
136
139
|
end
|
137
140
|
|
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.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.
|
20
|
+
version: '2.8'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.
|
27
|
+
version: '2.8'
|
28
28
|
description: " MediaWiki::Butt provides a fully-featured interface to the MediaWiki
|
29
29
|
API. It includes methods for changing wiki content, authentication, and
|
30
30
|
queries.\n\n"
|
@@ -34,6 +34,7 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- CHANGELOG.md
|
37
|
+
- LICENSE.md
|
37
38
|
- lib/mediawiki-butt.rb
|
38
39
|
- lib/mediawiki/administration.rb
|
39
40
|
- lib/mediawiki/auth.rb
|
@@ -73,7 +74,7 @@ files:
|
|
73
74
|
- lib/mediawiki/utils.rb
|
74
75
|
homepage: https://github.com/ftb-gamepedia/mediawiki-butt-ruby
|
75
76
|
licenses:
|
76
|
-
-
|
77
|
+
- MIT
|
77
78
|
metadata:
|
78
79
|
issue_tracker: https://github.com/ftb-gamepedia/mediawiki-butt-ruby/issues
|
79
80
|
post_install_message: ONE OF US! ONE OF US!
|