git-utils 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-utils/push_branch.rb +1 -1
- data/lib/git-utils/version.rb +1 -1
- data/spec/commands/push_branch_spec.rb +4 -2
- data/spec/commands/switch_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865ddb9facc2194894dd11204c25524e97699025
|
4
|
+
data.tar.gz: 556b36d014cea2bb18826c921cb3667b2853f5d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d5b3eb4c2947b6f5afcb507c0434f4d16b54c141cb7c975315bfcc52ec538fdca27ce3645bfeb070604a106315b4ec06fde0a81332b43d1428f4e244cd3ea5b
|
7
|
+
data.tar.gz: fd1e6cfb43bcf5b825bd97c2adfc6a95bcbe831728f75b56c394fce259ac634e7dc823a153aa69332df989aa1f963e3008c6aa3a5380e85c405f72c19a99eb86
|
@@ -13,7 +13,7 @@ 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}"]
|
16
|
+
c = ["git push --set-upstream origin #{current_branch}"]
|
17
17
|
c << argument_string(unknown_options) unless unknown_options.empty?
|
18
18
|
c.join(" ")
|
19
19
|
end
|
data/lib/git-utils/version.rb
CHANGED
@@ -8,10 +8,12 @@ describe PushBranch do
|
|
8
8
|
end
|
9
9
|
subject { command }
|
10
10
|
|
11
|
-
its(:cmd)
|
11
|
+
its(:cmd) do
|
12
|
+
should match /git push --set-upstream origin #{command.current_branch}/
|
13
|
+
end
|
12
14
|
|
13
15
|
describe "command-line command" do
|
14
16
|
subject { `bin/git-push-branch --debug` }
|
15
|
-
it { should match /git push origin/ }
|
17
|
+
it { should match /git push --set-upstream origin/ }
|
16
18
|
end
|
17
19
|
end
|
@@ -12,7 +12,7 @@ describe Switch do
|
|
12
12
|
its(:cmd) { should match /git checkout #{command.other_branch}/ }
|
13
13
|
|
14
14
|
describe "command-line command" do
|
15
|
-
subject { `bin/git-
|
16
|
-
it { should match /git
|
15
|
+
subject { `bin/git-switch example --debug` }
|
16
|
+
it { should match /git checkout/ }
|
17
17
|
end
|
18
18
|
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
|
+
version: 0.5.8
|
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-
|
11
|
+
date: 2013-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Add some Git utilities
|
14
14
|
email:
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.0.
|
99
|
+
rubygems_version: 2.0.6
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: See the README for full documentation
|