glman 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +42 -9
- data/lib/glman/commands/base.rb +1 -1
- data/lib/glman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmVhYzZhOWVjODgyYjQ1OTdmYTdhNDY4OTkwOThmMmNlNTQ5YWVlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2EyNjY1NDc2OWU1M2U2NTg0MDNlOTIzMmJiYjkzM2I3YmE3NTIwZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTUyYzE1YWIwNDAwNzNlZDg2MzAxZDYyZTllZTIwZDAzNmJiNGVmNDRhYmUw
|
10
|
+
OWI2MjY4YmRhM2JiNWJjMThmNTczY2ZmNmFiN2EyYWFhNjNkY2E5ZjM0MzFk
|
11
|
+
NWYzNTQyMDBlY2M3MWRjNmYwNjE4ODZjNzFmMzM1NTQ3MTUyMTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODY4YjBmMTlkYTM2MThhY2E5N2Y5YWJjOWMxMDYzOTJkOTliMWYwZTkwN2Zj
|
14
|
+
YWQ4YjhiZTVlNzQ4NmJhOWI4ZDlkMjA4YWJhODgxNjQyMDM1NTE0NzliOWQ4
|
15
|
+
YjNlNzg5YTk0ZGQ4Mjg0OWQ5OTExOTQyMmY4NjU5ZWEwNjNkNzU=
|
data/README.md
CHANGED
@@ -1,24 +1,57 @@
|
|
1
1
|
# Glman
|
2
2
|
|
3
|
-
|
3
|
+
GitLab bash manager
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
$ gem install glman
|
8
8
|
|
9
|
-
|
9
|
+
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
### Configuration
|
12
12
|
|
13
|
-
|
13
|
+
setup
|
14
14
|
|
15
|
-
|
15
|
+
$ glman config <gitlab_url> <private_token> --init
|
16
16
|
|
17
|
-
|
17
|
+
show
|
18
18
|
|
19
|
-
|
19
|
+
$ glman config
|
20
|
+
|
21
|
+
### Aliases
|
22
|
+
|
23
|
+
create
|
24
|
+
|
25
|
+
$ glman alias <user_email> <alias>
|
26
|
+
|
27
|
+
clear all aliases
|
28
|
+
|
29
|
+
$ glman alias --clear
|
30
|
+
|
31
|
+
### User cache
|
32
|
+
|
33
|
+
build cache
|
34
|
+
|
35
|
+
$ glman cache
|
36
|
+
|
37
|
+
clear cache
|
38
|
+
|
39
|
+
$ glman cache --clear
|
40
|
+
|
41
|
+
### Merge requests
|
42
|
+
|
43
|
+
make default: (make merge request from current branch to master with last commit message)
|
44
|
+
|
45
|
+
$ glman mr <user_email_or_alias>
|
46
|
+
|
47
|
+
make full syntax
|
48
|
+
|
49
|
+
$ glman mr <user_email_or_alias> <message> <target_branch>
|
50
|
+
|
51
|
+
show merge requests
|
52
|
+
|
53
|
+
$ glman mr --show
|
20
54
|
|
21
|
-
TODO: Write usage instructions here
|
22
55
|
|
23
56
|
## Contributing
|
24
57
|
|
data/lib/glman/commands/base.rb
CHANGED
@@ -15,7 +15,7 @@ module Glman
|
|
15
15
|
p 'You realy want to create merge request master to master ?' if current_branch == 'master'
|
16
16
|
target_branch = params[2] || 'master'
|
17
17
|
user_id = get_user_id(user_name)
|
18
|
-
message = params[1] || git_repo.last_commit_message
|
18
|
+
message = params[1] || git_repo.last_commit_message || current_branch.split('_').join(' ')
|
19
19
|
repository_name = git_repo.repository_name
|
20
20
|
|
21
21
|
params = {assignee_id: user_id, title: message, source_branch: current_branch, target_branch: target_branch}
|
data/lib/glman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Niemczyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|