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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac0fefcc43ff6294087ac1b36bab191de219ba1628bc68f02363e4cf3152a2a3
4
- data.tar.gz: 1208560ec57adc01fbb2c2f5a8e147e4e3298dddd5b7ad01b4ba11a203e3a75d
3
+ metadata.gz: bd2a78a937d235e5721e25358a1a5315d8dc850ec8056cde282edff5d1355fc5
4
+ data.tar.gz: 699f3357aa10f1027b8fbdea0bf685b7631035b9ffdce3492f97b467e5d244d8
5
5
  SHA512:
6
- metadata.gz: 107adf9c6130dd994ef559f07258398b65239dd5fd1f112287d1b3eca0124715afa4cc07e35407b5b3630d567084b6b726ec0c8796a8df0bc79bfc12304d9b70
7
- data.tar.gz: ad8365b9c7ca1a8f8ad0fa2e740b37c41adf05a1f234cf8749a0ecd7d1b312099a3d81a39a2f2802d2b7d42768c9e62ffa3be25918dda5ea3161fd51dbe35bee
6
+ metadata.gz: e345a8404c7d0572f4938a73d5a1ee698f428f49921a6aa21ad7f88a11f160fa82106eadf053f681562dbe8c5ff6dd154c5e78ff2645b807e0b8a0bb4685a290
7
+ data.tar.gz: 33aa810ef802d3f983834a0d365029b04322b77645285bbc142501743dd74e967786229c809aae475967d11d2a4146c459d901b9b66f73419affa69e46d4d6d6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gurney_client (0.1.2)
4
+ gurney_client (0.1.3)
5
5
  bundler (< 3)
6
6
  colorize (~> 0.8)
7
7
  git (~> 1.5)
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
- puts "#{e.full_message}"
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
@@ -1,3 +1,3 @@
1
1
  module Gurney
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gurney_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Schaflitzl