ruboty-packman 0.1.2 → 0.1.3
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 +34 -2
- data/lib/ruboty/handlers/packman.rb +6 -6
- data/lib/ruboty/packman/actions/packman.rb +2 -2
- data/lib/ruboty/packman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6d5cec100708538b604dd915e7695add16cbf92a50feb5b33cdb0e1f8f5d5cf
|
4
|
+
data.tar.gz: 9c116d6f37489228fe53314dba786d5ec91dda1d0f942656c8f3b11b34030b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3227ad524b37554db8fa5b85ccac7e2e222416b4a942c6f16a3698e0809762a971a6b2ac6a2ecfa88ba6ca20832fd37cefdb82752eb244245542200ff9f5c8
|
7
|
+
data.tar.gz: 5778f8b53aeb6d9c1fd2ea22d58d144096d85ed7d60714ad6c7c338cf9fa6e6f50d278002d1617ce6c89a37fb012f4594326fb5709139cb040dfe1d7ac8b8904
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruboty::Packman
|
1
|
+
# Ruboty::Packman (<...
|
2
2
|
|
3
3
|
[](https://travis-ci.org/kimromi/ruboty-packman)
|
4
4
|
|
@@ -14,7 +14,39 @@ gem 'ruboty-packman'
|
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
|
-
|
17
|
+
```
|
18
|
+
# register repository (git clone)
|
19
|
+
@ruboty register repo <organization>/<repository>
|
20
|
+
|
21
|
+
# update library using package manager and create pull request
|
22
|
+
@ruboty update repo <organization>/<repository>
|
23
|
+
|
24
|
+
# remove repository (remove cloned directory)
|
25
|
+
@ruboty remove repo <organization>/<repository>
|
26
|
+
```
|
27
|
+
|
28
|
+
## Environments
|
29
|
+
|
30
|
+
#### `GITHUB_TOKEN` (required)
|
31
|
+
|
32
|
+
GitHub token.
|
33
|
+
You can make a token with [this URL](https://github.com/settings/tokens). needs check **repo** `Full control of private repositories`.
|
34
|
+
if use GitHub Enterprise, can make from https://[GitHub Enterprise Domain]/settings/tokens
|
35
|
+
|
36
|
+
#### `PACKMAN_REPOS_DIR` (optional)
|
37
|
+
|
38
|
+
When register repository, directory where git cloned repository.
|
39
|
+
(default: `repos/` directory of ruboty-packman root)
|
40
|
+
|
41
|
+
#### `GITHUB_DOMAIN` (optional)
|
42
|
+
|
43
|
+
if use GitHub Enterprise, set GitHub Enterprise domain.
|
44
|
+
(default: `github.com`)
|
45
|
+
|
46
|
+
#### `GITHUB_API_ENDPOINT` (optional)
|
47
|
+
|
48
|
+
if use GitHub Enterprise, set GitHub Enterprise api endpoint.
|
49
|
+
(default: `https://api.github.com`)
|
18
50
|
|
19
51
|
## Contributing
|
20
52
|
|
@@ -4,19 +4,19 @@ module Ruboty
|
|
4
4
|
module Handlers
|
5
5
|
class Packman < Base
|
6
6
|
on(
|
7
|
-
/
|
7
|
+
/register repo (?<organization>.+)\/(?<repository>.+)\z/,
|
8
8
|
name: 'register',
|
9
9
|
description: '[packman] register repository'
|
10
10
|
)
|
11
11
|
|
12
12
|
on(
|
13
|
-
/
|
14
|
-
name: '
|
13
|
+
/update repo (?<organization>.+)\/(?<repository>.+)\z/,
|
14
|
+
name: 'update',
|
15
15
|
description: '[packman] library update'
|
16
16
|
)
|
17
17
|
|
18
18
|
on(
|
19
|
-
/
|
19
|
+
/remove repo (?<organization>.+)\/(?<repository>.+)\z/,
|
20
20
|
name: 'remove',
|
21
21
|
description: '[packman] remove repository'
|
22
22
|
)
|
@@ -25,8 +25,8 @@ module Ruboty
|
|
25
25
|
action_handler(message).register
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
action_handler(message).
|
28
|
+
def update(message)
|
29
|
+
action_handler(message).update
|
30
30
|
end
|
31
31
|
|
32
32
|
def remove(message)
|
@@ -17,7 +17,7 @@ module Ruboty
|
|
17
17
|
message.reply("registered:tada: #{repo.full_name}")
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def update
|
21
21
|
unless repositories.include?(repo.full_name)
|
22
22
|
message.reply("not registered. please register #{repo.full_name}")
|
23
23
|
return
|
@@ -29,7 +29,7 @@ module Ruboty
|
|
29
29
|
repo.push!
|
30
30
|
url = repo.pull_request!
|
31
31
|
|
32
|
-
message.reply("pull
|
32
|
+
message.reply("pull requested:tada: #{url}")
|
33
33
|
end
|
34
34
|
|
35
35
|
def remove
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-packman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kimromi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruboty
|