gitall 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitall.rb +1 -1
- data/lib/gitall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91122a54571e65b4532e3da61dcf876cb9e51caea8a36b28284e3ccc8f5dfa20
|
4
|
+
data.tar.gz: 0ba65901de331a235fa0769f58168a08e3b5d3e37597c52ad32a9d425c162674
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d36f3d72a176b72442c514aa077112e9355664647e067667d5ea175a7e2b8de91fdd6f9ec6bcb58891506f2e55f68db22934ffa0e45286a2e90d80049301bf6
|
7
|
+
data.tar.gz: 659063607c2672c774fa187ebacdaf51f83600b3e233c0a035179ee58cb8fe6657044ce37ba22e4cda30ea9e78bf168124e17af7845f49b7a1190cef0fd064f6
|
data/lib/gitall.rb
CHANGED
@@ -132,7 +132,7 @@ module GitAll
|
|
132
132
|
c.authentication.fetch_user = lambda { |nickname|
|
133
133
|
# If you were using an ORM, you'd probably do something like
|
134
134
|
# `User.first(:nickname => nickname)` here.
|
135
|
-
GitAll::Bot::Users.users.
|
135
|
+
GitAll::Bot::Users.users.find { |user| user.nickname == nickname } }
|
136
136
|
# The Authentication mixin will call these lambdas to check if a user is
|
137
137
|
# allowed to run a command.
|
138
138
|
c.authentication.users = lambda { |user| user.type == 'user' }
|
data/lib/gitall/version.rb
CHANGED