git_commands 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 172e8dcb4ab65fc7f43efc68e42709b8730fb54b
4
- data.tar.gz: 8a9fa030b351e83b13e3dd4ea7a5c0684670a05d
3
+ metadata.gz: b826091a74fe0f10bc7329b80d7fae3507d73ecc
4
+ data.tar.gz: b002d5e9299b489bc13c08a5022b414ac6a29c70
5
5
  SHA512:
6
- metadata.gz: 0adf55993c9add401986a9d019e712998813b087bcbbb27bcb339daaddab77a9c2ba3ddb8af7191c884462b6f7c05e55591323b7cd30dd96c5f4679cf1d7d070
7
- data.tar.gz: 5222cf662d765a7fd08cbd31bb357abe849f2b5c42974c599a1b5e1462b4cb065720c58b5f6eb0a4d74298af3e770bf87efd97a7a7f35092be5b59084906fa3e
6
+ metadata.gz: 8a4e223ad42fc4db1c1ba1b0f1499b531868ce27f5885abe4f92162e16650944f61b297be7afddc1ef2c2da37766ee5c4b7d00c7fb974412f6b362336d4e503b
7
+ data.tar.gz: f68f19654089e596a6ef56a38508ec5ca296375729c94fda70da5a106d5b08c32c883fef5330c5a75d8b3fbe1ef2c0741c197e1d9198aacbb3499715fa07272b
@@ -20,17 +20,15 @@ module GitCommands
20
20
 
21
21
  def call
22
22
  parser.parse!(@args)
23
- computer = @computer_klass.new(repo: @repo, branches: @branches, origin: @origin, default: default)
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"
@@ -1,3 +1,3 @@
1
1
  module GitCommands
2
- VERSION = "3.5.1"
2
+ VERSION = "3.5.2"
3
3
  end
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler