haile 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/haile/client.rb +2 -8
- data/lib/haile/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65fa52606172bb2090064408249ffb3b65db240b
|
4
|
+
data.tar.gz: bd72fc208d85733aab7d53e21006c48efb901ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42546ed77e8c7c5f9ede98ba8d16cfeea1df6bdbf6b8f1d879215d9e075085e047d86864e489ed6e1858901e5fe3888ee8d229da5fbc904fd63ccd204d24f45d
|
7
|
+
data.tar.gz: 67850647d89be5dfef201a5464b5b0f22ff3a50b1555e4a375a659f56ba7d4bf6e2922e38cfa89dfe61f0904c9a3bccf70f036d719fe12d6a8f6425b47f84d99
|
data/lib/haile/client.rb
CHANGED
@@ -115,14 +115,8 @@ module Haile
|
|
115
115
|
|
116
116
|
def wrap_request(method, url, options = {})
|
117
117
|
options = @default_options.merge(options)
|
118
|
-
|
119
|
-
|
120
|
-
http = self.class.send(method, @host + url, options)
|
121
|
-
return Haile::Response.new(http)
|
122
|
-
else
|
123
|
-
puts "#{method} #{@host + url} #{options}"
|
124
|
-
return
|
125
|
-
end
|
118
|
+
http = self.class.send(method, @host + url, options)
|
119
|
+
Haile::Response.new(http)
|
126
120
|
rescue => e
|
127
121
|
Haile::Response.error(e.message)
|
128
122
|
end
|
data/lib/haile/version.rb
CHANGED