wasabi 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/wasabi/resolver.rb +1 -1
- data/lib/wasabi/version.rb +1 -1
- data/spec/wasabi/resolver_spec.rb +6 -2
- data/wasabi.gemspec +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c358184f6005750e6da0da030f411e2cc0470bbf
|
4
|
+
data.tar.gz: 1e3ca2ceed20e54cf520855073559f3eee5ab60e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa3ef854250004ebeebc5ce88ac25c60e7af2634ad68001434d84f47d647776ae546c65cc8d85b42c8b66e5074e75f2cbc2dc28311e5eacd636b5a90445e3b6f
|
7
|
+
data.tar.gz: a131579113b4e33726d1985f66b58428cc0773a735b901a576cfee788988ded1bb29b1824b4a93db0f77c68569f2bfb79fa185f4f24486444e22ca579a274a28
|
data/CHANGELOG.md
CHANGED
data/lib/wasabi/resolver.rb
CHANGED
@@ -42,7 +42,7 @@ module Wasabi
|
|
42
42
|
request.url = document
|
43
43
|
response = HTTPI.get(request, adapter)
|
44
44
|
|
45
|
-
raise HTTPError.new("Error: #{response.code}", response) if response.error?
|
45
|
+
raise HTTPError.new("Error: #{response.code} for url #{request.url}", response) if response.error?
|
46
46
|
|
47
47
|
response.body
|
48
48
|
end
|
data/lib/wasabi/version.rb
CHANGED
@@ -37,12 +37,16 @@ describe Wasabi::Resolver do
|
|
37
37
|
}
|
38
38
|
body = "<html><head><title>404 Not Found</title></head><body>Oops!</body></html>"
|
39
39
|
failed_response = HTTPI::Response.new(code, headers, body)
|
40
|
+
|
40
41
|
HTTPI.stub(:get => failed_response)
|
42
|
+
|
43
|
+
url = "http://example.com?wsdl"
|
44
|
+
|
41
45
|
expect do
|
42
|
-
Wasabi::Resolver.new(
|
46
|
+
Wasabi::Resolver.new(url).resolve
|
43
47
|
end.to raise_error { |ex|
|
44
48
|
expect(ex).to be_a(Wasabi::Resolver::HTTPError)
|
45
|
-
expect(ex.message).to eq("Error: #{code}")
|
49
|
+
expect(ex.message).to eq("Error: #{code} for url #{url}")
|
46
50
|
expect(ex.response).to eq(failed_response)
|
47
51
|
}
|
48
52
|
end
|
data/wasabi.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wasabi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpi
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
requirements:
|
151
151
|
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
153
|
+
version: 1.9.2
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - ">="
|