glman 0.0.4 → 0.0.5

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
- M2RjODA5ZmU0ZjlkMDE5YmRkYmY4YWFiZjdjYWVkZGQyN2RmNmRkMg==
4
+ OWQ5NWUzMzk5MTk5N2QyOWIwZGNkNGFjNDU1ZGMzYmFlMzk0YTVkYg==
5
5
  data.tar.gz: !binary |-
6
- MTZjOTk0OTMwYmU0Y2E1ZjVkODhmOWM4ODI2Nzg2OGVhYTM3MGQyMg==
6
+ NTg0NDJlNzkwODBmMTM1ODM2ZDFmN2MyZWU1Njg3ZWQ5ZjBkYmEzNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjNlZjc3ZWE1OWRkMWZmZGY5MDNlMzQ4YWM1OGE5ZWY0M2Q5MjVhNTE5NDlm
10
- MThmZDExZmU5YTNlMjQ5OWI3M2UxZjkxYzNlZjRkMzY4N2NkYWFkN2M4NzI0
11
- MTA0YjBlMDc0NTU5ZGYwZTYwNDM1NDg2MDQxMWJkNmUyM2I2OGU=
9
+ YWVmZWU5NTUzNzdhODEyMWE0MmUyMmUzOTY3ODE5NGNjM2U4NjFmOWY1Mzdl
10
+ YjhjM2JmMzBjYTRlMjU3NGRiY2ZmZjJjYTEzZmE4MTM2ZjAzMjUxNTRmYTVh
11
+ ZGMwM2NlNjVkOTAyMjkyNTM2ZjgxODc2Y2NkZmRjYjI3NjM3MTg=
12
12
  data.tar.gz: !binary |-
13
- MjNhMTg4NjY4ZGY3MzY4ODA2ZDAzY2VkMjk0MGI1YmZjNDMyNWQ4NDQwZmNk
14
- ZDA0ZTVhM2RhNzIzYTE2NjRkYmNmZDE1ZWQ4NGNhMjY4ZWNlMWM2OTY5Njc1
15
- NzI1MDBjMzVmZGRiZDE4ZjE5MDUzMmRiM2Q5OTE1NjY4YzJmMjM=
13
+ YzZkMDY2YzQ5MmVkMDgzM2Y3MDFkZmUwNzlmZWMzMTBkOTQxNzg3MTFiZWM3
14
+ ZmE5Zjg5NjA1YmQ1YmE5MGI2ODlhYzkzOGE3MzE1YWI3ZjY0MmYwNGZhZjE4
15
+ MDFkMDJjZTAwZjhkZmU1NWE2ZDUxNTE5NDkxOGVlMzY2Y2FkNzk=
data/README.md CHANGED
@@ -44,9 +44,9 @@ make default: (make merge request from current branch to master with last commit
44
44
 
45
45
  $ glman mr <user_email_or_alias>
46
46
 
47
- make with git push <origin> current_branch
47
+ make with git push origin current_branch
48
48
 
49
- $ glman mr <user_email_or_alias> --push <origin(default 'origin')>
49
+ $ glman mr <user_email_or_alias> --push
50
50
 
51
51
  make full syntax
52
52
 
@@ -20,18 +20,18 @@ module Glman
20
20
 
21
21
  params = {assignee_id: user_id, title: message, source_branch: current_branch, target_branch: target_branch}
22
22
 
23
- push_branch_first(push, current_branch) if push?
23
+ push_branch_first(current_branch) if push?
24
24
 
25
25
  projects_repo.create_merge_request(repository_name, params)
26
26
  ap params.merge({user_name: user_name, repository_name: repository_name})
27
27
  end
28
28
 
29
- def push=(origin=nil)
30
- @origin = origin || 'origin'
29
+ def push=(push)
30
+ @push = push
31
31
  end
32
32
 
33
33
  def push?
34
- @origin
34
+ @push
35
35
  end
36
36
 
37
37
  def show=(bool)
@@ -118,11 +118,9 @@ module Glman
118
118
  end
119
119
  private
120
120
 
121
- attr_reader :origin
122
-
123
- def push_branch_first(origin, branch)
124
- p "push branch: #{branch} to origin: #{origin}"
125
- git_repo.push(origin, branch)
121
+ def push_branch_first(branch)
122
+ p "push branch: #{branch} to origin: origin"
123
+ git_repo.push('origin', branch)
126
124
  end
127
125
 
128
126
  def show_all_mrs
@@ -1,3 +1,3 @@
1
1
  module Glman
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Niemczyk