ruboty-gitlab 0.0.4 → 0.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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/ruboty/gitlab.rb +1 -0
- data/lib/ruboty/gitlab/actions/base.rb +4 -0
- data/lib/ruboty/gitlab/actions/clear_cache.rb +18 -0
- data/lib/ruboty/gitlab/version.rb +1 -1
- data/lib/ruboty/handlers/gitlab.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e78275252093665c99534a9cb71427f0ef71e14
|
4
|
+
data.tar.gz: 04250a80997f2330c3ae33cbeedf8149597f68be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdbfa8296243ef4fb5a8eab2bfd009af5610cf66fbb778695f67319282c4c4e04100616f7cd1129103fa94ca3593619c608f17388b506e6678e3918dd78e58ff
|
7
|
+
data.tar.gz: 514429c0a9ca67ab3d3f9cef5f787b02b2f101e31a0f6346104ce74308026e2f8fc33df34337a8b9fccda28c5a89aaf4017a20bfa2e4f5801ea37ac064ba7bf1
|
data/README.md
CHANGED
@@ -14,6 +14,7 @@ gem "ruboty-gitlab"
|
|
14
14
|
```
|
15
15
|
@ruboty create gitlab issue "<title>" on <project>[\n<description>] - Create a new issue
|
16
16
|
@ruboty remember my gitlab token <token> - Remember sender's GitLab private token
|
17
|
+
@ruboty clear cache gitlab brain - Clear cache of GitLab's brain
|
17
18
|
```
|
18
19
|
|
19
20
|
## ENV
|
data/lib/ruboty/gitlab.rb
CHANGED
@@ -15,6 +15,12 @@ module Ruboty
|
|
15
15
|
description: "Remember sender's GitLab private token",
|
16
16
|
)
|
17
17
|
|
18
|
+
on(
|
19
|
+
/clear cache gitlab brain\z/,
|
20
|
+
name: "clear_cache",
|
21
|
+
description: "Clear cache of GitLab's brain",
|
22
|
+
)
|
23
|
+
|
18
24
|
def create_issue(message)
|
19
25
|
Ruboty::Gitlab::Actions::CreateIssue.new(message).call
|
20
26
|
end
|
@@ -22,6 +28,10 @@ module Ruboty
|
|
22
28
|
def remember(message)
|
23
29
|
Ruboty::Gitlab::Actions::Remember.new(message).call
|
24
30
|
end
|
31
|
+
|
32
|
+
def clear_cache(message)
|
33
|
+
Ruboty::Gitlab::Actions::ClearCache.new(message).call
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fakestarbaby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruboty
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- bin/setup
|
85
85
|
- lib/ruboty/gitlab.rb
|
86
86
|
- lib/ruboty/gitlab/actions/base.rb
|
87
|
+
- lib/ruboty/gitlab/actions/clear_cache.rb
|
87
88
|
- lib/ruboty/gitlab/actions/create_issue.rb
|
88
89
|
- lib/ruboty/gitlab/actions/remember.rb
|
89
90
|
- lib/ruboty/gitlab/version.rb
|