phoebo 0.2.1 → 0.2.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: 00a988c7e4c1e420b31da3742f420f0dfd56b8dc
4
- data.tar.gz: ed4e53e0163428cb1c61b180dd3754fc90386510
3
+ metadata.gz: 9324823b791f13183b98bd553d97e5ca6ee02da6
4
+ data.tar.gz: 130b92aa770695ddf21015b684295d51c9c47623
5
5
  SHA512:
6
- metadata.gz: 4369f536b7141468093dd5bae67719f1db0a80a29d228392879c034936398eb71d68fc7486788d85abd09be057d3db0bdd0e992217fe61479966582089affc86
7
- data.tar.gz: 594b83232e6f172663201d3dd9e955717bfec2f562282e6358baa30c9b4f92b538fce37ee3e3db67ebc6c7a8ef122334d36266134bd6f018823505c857edf23a
6
+ metadata.gz: 82003771c0ad56f7d072ba17c43862a2c86d94ade6f1a6a6b3a3cbdaa2ef976b37b4f6bce41614b76ab1c8e8436fa9aff6b378ee89025a446a349437b17235fb
7
+ data.tar.gz: e16f0d84ebfe8d79bb8f9fc5f0dcc2516cc168cc050ef888ac3e945facadc2162c7cdf76a98d2919aa3864e58d220d0a8e3da7787816d8f197e982a91cfcac3f
@@ -81,7 +81,7 @@ module Phoebo
81
81
  end
82
82
 
83
83
  if options[:request_url]
84
- stdout.puts "Fetching request from URL: " + options[:request_url].cyan + "...".light_black
84
+ stdout.puts "Fetching request from URL: " + options[:request_url].cyan + " " + "...".light_black
85
85
  request.load_from_url!(options[:request_url])
86
86
  end
87
87
 
@@ -20,7 +20,7 @@ module Phoebo
20
20
  clone_path, credentials: cred
21
21
 
22
22
  rescue Rugged::SshError => e
23
- raise unless e.message.include?('authentication')
23
+ raise unless e.message.include?('auth')
24
24
  raise IOError, "Unable to clone remote repository. SSH authentication failed."
25
25
  end
26
26
  end
@@ -76,7 +76,7 @@ module Phoebo
76
76
  end
77
77
 
78
78
  # TODO: handle redirects
79
- raise IOError, "Unable to load URL #{url}" unless res.code == 200
79
+ raise IOError, "Unable to load URL #{url}" unless res.is_a?(Net::HTTPOK)
80
80
 
81
81
  load_from_json!(res.body)
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module Phoebo
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phoebo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Staněk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-12 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize