gurney_client 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: bd2a78a937d235e5721e25358a1a5315d8dc850ec8056cde282edff5d1355fc5
4
- data.tar.gz: 699f3357aa10f1027b8fbdea0bf685b7631035b9ffdce3492f97b467e5d244d8
3
+ metadata.gz: 36eae2a4c3cfad248b1a8541cbbfabc678a0dd917bfefe3c9cec9b9a2e675a3e
4
+ data.tar.gz: e04bf7bcfebe2d7b3848a2251eca9a04988652fcad221229db0a85c38be61b93
5
5
  SHA512:
6
- metadata.gz: e345a8404c7d0572f4938a73d5a1ee698f428f49921a6aa21ad7f88a11f160fa82106eadf053f681562dbe8c5ff6dd154c5e78ff2645b807e0b8a0bb4685a290
7
- data.tar.gz: 33aa810ef802d3f983834a0d365029b04322b77645285bbc142501743dd74e967786229c809aae475967d11d2a4146c459d901b9b66f73419affa69e46d4d6d6
6
+ metadata.gz: 1ef643ee4b1036b6295b2d515a2948a3feff7784f11c756a4a48224e2e9e1ccb19676fda1f2475bfc9ef3c04078af27224123010e2c5a63491a8787872b925cc
7
+ data.tar.gz: 24ee4c866c9d9fae214629d70aa4106573fec1eb88a08e25aea8cc1e57e705c6e8c9f3bb376d51bdd9bb60acb133ac6a679603331a57221539683cacbd162c71
data/lib/gurney/cli.rb CHANGED
@@ -94,8 +94,10 @@ module Gurney
94
94
 
95
95
  def self.read_file(git, from_git, branch, filename)
96
96
  if from_git
97
- if git.branches[branch] && git.ls_tree(branch)['blob'].key?(filename)
98
- return git.show("#{branch}:#{filename}")
97
+ begin
98
+ git.show("#{branch}:#{filename}")
99
+ rescue Git::GitExecuteError
100
+ # happens if branch does not exist
99
101
  end
100
102
  else
101
103
  if File.exists? filename
@@ -1,3 +1,3 @@
1
1
  module Gurney
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gurney_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Schaflitzl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-19 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize