git-utils 0.5.4 → 0.5.5

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
  SHA1:
3
- metadata.gz: 9575438e8eef35c1866aa1b1b7b07827d0f85591
4
- data.tar.gz: efe2619d04db58e530f6bbaf8f4d1c094bb6d72a
3
+ metadata.gz: 79d7991110b57551348943b445ab9a8a2bf5c531
4
+ data.tar.gz: 8c621175bd31d777d93f9b2af0aaea9be4b95e6c
5
5
  SHA512:
6
- metadata.gz: cdee614a780bd62201745d293628e12d97116f814b9c6cebe1f16d0d062391bda611fd8da3d0e867aac1bb42ed41a5369eddce3d9ef6739e9d09522d6ea4b6d7
7
- data.tar.gz: 3cd2e8626690c17c41dfebe1d3d19725bfd0d7b5b9ca571852435a0eb7528282f7b4d850c1827cdff43c4e2ea92066254d8e9c4f6c03c4b2f01c2c2d011627fb
6
+ metadata.gz: a82a630945e9b15d5585c709dbcd5b0ee84e515dd2e584af0a853fddc5eb7038740b3864fa9e7c93a7bb00736330d7631257a0b4c361578beb686cb161c9ce10
7
+ data.tar.gz: aacd5270d7c75a0615080dcb4a9526cf3bc2fe1a07caee559fb9783b0f5ef13c2e9c59efc761301e11e0b74830aa37f06417af81e9bb918e74872ab92db7c9a7
@@ -22,9 +22,9 @@ class DeleteRemoteBranch < Command
22
22
  # Returns a command appropriate for executing at the command line
23
23
  def cmd
24
24
  if delete_safely? || options.override
25
- c = ["git push origin :#{target_branch}"]
25
+ c = ["git push origin :#{target_branch}"]
26
26
  c << argument_string(unknown_options) unless unknown_options.empty?
27
- c.join("\n")
27
+ c.join(" ")
28
28
  else
29
29
  $stderr.puts "Target branch contains unmerged commits."
30
30
  $stderr.puts "Please cherry-pick the commits or merge the branch again."
@@ -33,8 +33,6 @@ class Open < Command
33
33
 
34
34
  # Returns a command appropriate for executing at the command line
35
35
  def cmd
36
- c = ["open #{page_url}"]
37
- c << argument_string(unknown_options) unless unknown_options.empty?
38
- c.join("\n")
36
+ "open #{page_url}"
39
37
  end
40
38
  end
@@ -39,9 +39,10 @@ class PullRequest < Command
39
39
 
40
40
  # Returns a command appropriate for executing at the command line
41
41
  def cmd
42
- c = ["git push-branch"]
43
- c << ["open #{new_pr_url}"]
44
- c << argument_string(unknown_options) unless unknown_options.empty?
45
- c.join("\n")
42
+ push = ["git push-branch"]
43
+ push += argument_string(unknown_options) unless unknown_options.empty?
44
+ push = push.join(" ")
45
+ c = [push, "open #{new_pr_url}"]
46
+ c.join(" ")
46
47
  end
47
48
  end
@@ -13,8 +13,8 @@ class PushBranch < Command
13
13
 
14
14
  # Returns a command appropriate for executing at the command line
15
15
  def cmd
16
- c = ["git push origin #{current_branch}"]
17
- c << argument_string(unknown_options) unless unknown_options.empty?
18
- c.join("\n")
16
+ c = ["git push origin #{current_branch}"]
17
+ c += argument_string(unknown_options) unless unknown_options.empty?
18
+ c.join(" ")
19
19
  end
20
20
  end
@@ -18,9 +18,7 @@ class Switch < Command
18
18
 
19
19
  # Returns a command appropriate for executing at the command line
20
20
  def cmd
21
- c = ["git checkout #{other_branch}"]
22
- c << argument_string(unknown_options) unless unknown_options.empty?
23
- c.join("\n")
21
+ "git checkout #{other_branch}"
24
22
  end
25
23
 
26
24
  private
@@ -29,5 +27,4 @@ class Switch < Command
29
27
  def pattern
30
28
  self.known_options.first
31
29
  end
32
-
33
30
  end
@@ -16,7 +16,6 @@ class Sync < Command
16
16
  c = ["git checkout master"]
17
17
  c << "git pull"
18
18
  c << "git checkout #{current_branch}"
19
- c << argument_string(unknown_options) unless unknown_options.empty?
20
19
  c.join("\n")
21
20
  end
22
21
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-21 00:00:00.000000000 Z
11
+ date: 2013-06-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Add some Git utilities
14
14
  email: