git_commands 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git_commands/cli.rb +3 -5
- data/lib/git_commands/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b826091a74fe0f10bc7329b80d7fae3507d73ecc
|
4
|
+
data.tar.gz: b002d5e9299b489bc13c08a5022b414ac6a29c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a4e223ad42fc4db1c1ba1b0f1499b531868ce27f5885abe4f92162e16650944f61b297be7afddc1ef2c2da37766ee5c4b7d00c7fb974412f6b362336d4e503b
|
7
|
+
data.tar.gz: f68f19654089e596a6ef56a38508ec5ca296375729c94fda70da5a106d5b08c32c883fef5330c5a75d8b3fbe1ef2c0741c197e1d9198aacbb3499715fa07272b
|
data/lib/git_commands/cli.rb
CHANGED
@@ -20,17 +20,15 @@ module GitCommands
|
|
20
20
|
|
21
21
|
def call
|
22
22
|
parser.parse!(@args)
|
23
|
-
|
23
|
+
@origin ||= Branch::ORIGIN
|
24
|
+
@default ||= Branch::DEFAULT
|
25
|
+
computer = @computer_klass.new(repo: @repo, branches: @branches, origin: @origin, default: @default)
|
24
26
|
computer.send(@command_name)
|
25
27
|
rescue Repository::PathError, Computer::GitError, AbortError, Repository::InvalidError => e
|
26
28
|
error(e.message)
|
27
29
|
exit
|
28
30
|
end
|
29
31
|
|
30
|
-
private def default
|
31
|
-
@default || Branch::DEFAULT
|
32
|
-
end
|
33
|
-
|
34
32
|
private def check_command_name(name)
|
35
33
|
return name if VALID_COMMANDS.include?(name)
|
36
34
|
fail UnknownCommandError, "#{name} is not a supported command"
|
data/lib/git_commands/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- costajob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|