gurney_client 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gurney/cli.rb +2 -2
- data/lib/gurney/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd2a78a937d235e5721e25358a1a5315d8dc850ec8056cde282edff5d1355fc5
|
4
|
+
data.tar.gz: 699f3357aa10f1027b8fbdea0bf685b7631035b9ffdce3492f97b467e5d244d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e345a8404c7d0572f4938a73d5a1ee698f428f49921a6aa21ad7f88a11f160fa82106eadf053f681562dbe8c5ff6dd154c5e78ff2645b807e0b8a0bb4685a290
|
7
|
+
data.tar.gz: 33aa810ef802d3f983834a0d365029b04322b77645285bbc142501743dd74e967786229c809aae475967d11d2a4146c459d901b9b66f73419affa69e46d4d6d6
|
data/Gemfile.lock
CHANGED
data/lib/gurney/cli.rb
CHANGED
@@ -86,7 +86,7 @@ module Gurney
|
|
86
86
|
puts e.message.red
|
87
87
|
rescue Exception => e
|
88
88
|
puts "Gurney: an unexpected error occurred".red
|
89
|
-
|
89
|
+
raise
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
@@ -94,7 +94,7 @@ module Gurney
|
|
94
94
|
|
95
95
|
def self.read_file(git, from_git, branch, filename)
|
96
96
|
if from_git
|
97
|
-
if git.ls_tree(branch)['blob'].key?(filename)
|
97
|
+
if git.branches[branch] && git.ls_tree(branch)['blob'].key?(filename)
|
98
98
|
return git.show("#{branch}:#{filename}")
|
99
99
|
end
|
100
100
|
else
|
data/lib/gurney/version.rb
CHANGED