ruboty-packman 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e65275ac511a8659ae910a35f878a3570fce30e162c0e35013840e569a7610cf
4
- data.tar.gz: d61e0701bc7d9415629e3ba0a56cdc5a9fc10a9e84febe8ac04da6f1f6d31263
3
+ metadata.gz: a6d5cec100708538b604dd915e7695add16cbf92a50feb5b33cdb0e1f8f5d5cf
4
+ data.tar.gz: 9c116d6f37489228fe53314dba786d5ec91dda1d0f942656c8f3b11b34030b54
5
5
  SHA512:
6
- metadata.gz: 9ad7e711232e071744c940b94ff5f36398b149ed613709169792f1c6302b1d085d378f082697037c3d45efa439c2dc8e24e0cde7641615a38e78cb96af5d314c
7
- data.tar.gz: f244d44b681d34872288deeac255a2727b87bd7dfdf765dfb6a472ed6ff47b9372ae3c52bf7c93cedaa37e7ef663d27cbb58345b328aa584d5cdf770658ad9f2
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
  [![Build Status](https://travis-ci.org/kimromi/ruboty-packman.svg?branch=master)](https://travis-ci.org/kimromi/ruboty-packman)
4
4
 
@@ -14,7 +14,39 @@ gem 'ruboty-packman'
14
14
 
15
15
  ## Usage
16
16
 
17
- TODO: Write usage instructions here
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
- /packman register (?<organization>.+)\/(?<repository>.+)\z/,
7
+ /register repo (?<organization>.+)\/(?<repository>.+)\z/,
8
8
  name: 'register',
9
9
  description: '[packman] register repository'
10
10
  )
11
11
 
12
12
  on(
13
- /packman pull-request (?<organization>.+)\/(?<repository>.+)\z/,
14
- name: 'pull_request',
13
+ /update repo (?<organization>.+)\/(?<repository>.+)\z/,
14
+ name: 'update',
15
15
  description: '[packman] library update'
16
16
  )
17
17
 
18
18
  on(
19
- /packman remove (?<organization>.+)\/(?<repository>.+)\z/,
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 pull_request(message)
29
- action_handler(message).pull_request
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 pull_request
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-requested:tada: #{url}")
32
+ message.reply("pull requested:tada: #{url}")
33
33
  end
34
34
 
35
35
  def remove
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Packman
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty