webspicy 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/restful/Gemfile.lock +1 -1
- data/lib/webspicy/client/http_client.rb +11 -0
- data/lib/webspicy/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: ce670706ba555bb3edf4ba23d469bde15dcd33ee
|
4
|
+
data.tar.gz: 12711a20555b10b0e20503da6a815c95d85bab6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7685c29ebfb2f25736bc110823550cfa3de86ebb903f107e45bd8a89cbe6687e15b2e88284cd7f857ed3735c072d0faae4515d0625a4b95a5bd5b9dcb150d2c
|
7
|
+
data.tar.gz: ee5981c3bf710146258d5d457bc108779fa00f86ba65c19f67f95090b9b7988213b5219122e88f26fd4ecb5be3274ee23d75eea742fe2d9620008343f0656a40
|
@@ -1,6 +1,17 @@
|
|
1
1
|
module Webspicy
|
2
2
|
class HttpClient < Client
|
3
3
|
|
4
|
+
class ::HTTP::Request
|
5
|
+
|
6
|
+
# We monkey patch the URI normalization on Http because
|
7
|
+
# we don't want it to interfere with URIs that are encoded
|
8
|
+
# in tests, especially security tests.
|
9
|
+
def normalize_uri(uri)
|
10
|
+
uri
|
11
|
+
end
|
12
|
+
|
13
|
+
end # class ::HTTP::Request
|
14
|
+
|
4
15
|
def initialize(scope)
|
5
16
|
super(scope)
|
6
17
|
@api = Api.new
|
data/lib/webspicy/version.rb
CHANGED