lucid_http 0.4.0 → 0.6.0

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
  SHA1:
3
- metadata.gz: 5e2386e3100f49d2886427f819681bd053554a26
4
- data.tar.gz: 3b59805eb3c441d48987cf84de7b41f4de136217
3
+ metadata.gz: 135f19c630aa5461c1b46280775b9d914974b5ad
4
+ data.tar.gz: 44ed6d30236e59082d5b4b46535da7e9a015bfdf
5
5
  SHA512:
6
- metadata.gz: 79d21ac7923d93c5a8bc57dc8882112c87b5a02fdc937d40bae3682bedf138e6842b17f5ab2fb1aa01dbb51175b8d7d2995146996ebc14717ad88d236f3eb3ef
7
- data.tar.gz: 06dc752f2a8fba0f0cb091c381b051fe142b031d1183551bd94cf463c4fbb0b963eaf29f08e4aa70155c3270d35f5b7ff6543d9a9b7130e6e231bf0abf91f82e
6
+ metadata.gz: c331c1a90c2c58b650b779284ef65f44d4cad61d396f766dd9f125be283f5c9ff767fbbc32b6f072cc84b212315291300b62eea014094fad177a634afd596824
7
+ data.tar.gz: 8d1144e98984773ef96803439433a463905cc5ca71e9103ed697b4c0c60719c8cd82295ecd7747245075bcb5d28ec00e27064947c0d49cf6eaaa7d338520759d
@@ -1,3 +1,3 @@
1
1
  module LucidHttp
2
- VERSION = "0.4.0"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/lucid_http.rb CHANGED
@@ -54,6 +54,14 @@ def path
54
54
  @__lucid_http__path
55
55
  end
56
56
 
57
+ def error
58
+ if status.to_i == 500
59
+ body.split("\n").first
60
+ else
61
+ "No 500 error found."
62
+ end
63
+ end
64
+
57
65
  def GET(url, **opts)
58
66
  __lucid_http__setup(url, **opts)
59
67
  new_body = case status.to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-17 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.6.6
109
+ rubygems_version: 2.6.8
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Lucid Http wraps the http.rb gem in a simple DSL.