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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2Y1MmEwOTA1NDllMGM3YWUxMmUyM2FjNmM0Nzk4YzU1YzE1MDliMw==
4
+ ZmVhYzZhOWVjODgyYjQ1OTdmYTdhNDY4OTkwOThmMmNlNTQ5YWVlOA==
5
5
  data.tar.gz: !binary |-
6
- ZDE5YjRlZjdhZTgxZjUxZWZlYTM1MDUxYjQ5NTcwZjViZDllODkxOA==
6
+ Y2EyNjY1NDc2OWU1M2U2NTg0MDNlOTIzMmJiYjkzM2I3YmE3NTIwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjM2OWFlN2JkNzU3NjA4MjRiZGQxZDgwNzY3ODBhN2ZhNmRkMTMwNjgyODgx
10
- ZGY4M2JkOGYwZDllMTYxYjYwMDE2MzMzZTA0N2VhYmQyNjZiNzU4OTMxMmQ3
11
- ZjNiZDQ5ZmMyN2I2MDNlYTU1MzA2NmI1ODU3YjNjZTE5NmVkZDk=
9
+ ZTUyYzE1YWIwNDAwNzNlZDg2MzAxZDYyZTllZTIwZDAzNmJiNGVmNDRhYmUw
10
+ OWI2MjY4YmRhM2JiNWJjMThmNTczY2ZmNmFiN2EyYWFhNjNkY2E5ZjM0MzFk
11
+ NWYzNTQyMDBlY2M3MWRjNmYwNjE4ODZjNzFmMzM1NTQ3MTUyMTE=
12
12
  data.tar.gz: !binary |-
13
- ZjcyYTU2NTlmOWQzZGIyZTdhNWY4ZWJlMDc0ZjE1ODU4YWUwNGFkZjYyM2Ez
14
- Zjg5Y2IyNDQ1Nzc5MWEzNjdlMjdkNjZjNDk5ZmNjYTI3ZjUyNWI2MjFkYmEw
15
- NzZjYTlhOTk1M2JjNGZhZTRiNTliY2VjNWYwNDUzMTNmMmJmYmM=
13
+ ODY4YjBmMTlkYTM2MThhY2E5N2Y5YWJjOWMxMDYzOTJkOTliMWYwZTkwN2Zj
14
+ YWQ4YjhiZTVlNzQ4NmJhOWI4ZDlkMjA4YWJhODgxNjQyMDM1NTE0NzliOWQ4
15
+ YjNlNzg5YTk0ZGQ4Mjg0OWQ5OTExOTQyMmY4NjU5ZWEwNjNkNzU=
data/README.md CHANGED
@@ -1,24 +1,57 @@
1
1
  # Glman
2
2
 
3
- TODO: Write a gem description
3
+ GitLab bash manager
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
7
+ $ gem install glman
8
8
 
9
- gem 'glman'
9
+ ## Usage
10
10
 
11
- And then execute:
11
+ ### Configuration
12
12
 
13
- $ bundle
13
+ setup
14
14
 
15
- Or install it yourself as:
15
+ $ glman config <gitlab_url> <private_token> --init
16
16
 
17
- $ gem install glman
17
+ show
18
18
 
19
- ## Usage
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Glman
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-14 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler