wrest 2.2.0 → 3.0.0
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 +4 -4
- data/lib/wrest/components/container/typecaster.rb +2 -1
- data/lib/wrest/native/get.rb +2 -1
- data/lib/wrest/native/request.rb +2 -0
- data/lib/wrest/uri.rb +1 -0
- data/lib/wrest/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f91ae89613e80b46bbae1cab5167b0266c5e09c3
|
4
|
+
data.tar.gz: f0c445af93ea24acf525ef3daa33d172ee89321a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08a26da3142c49d6e2441aba1facad17ccf0f1a35d3ba35e67d24489b0542f1fe21930e58f4afae8b9a36e683bfd53fbc88514b04bce390aa280191c438d57f0
|
7
|
+
data.tar.gz: 2efeacaca5351a696185e93e21c8647dd4374e2b8e98984fb20000a1f9deaef6f6baf61098f433824dac10248c0f00958accdf0742d0c96219d46cf4d4c4e881
|
@@ -24,7 +24,8 @@ module Wrest
|
|
24
24
|
def self.included(klass) #:nodoc:
|
25
25
|
klass.extend Typecaster::ClassMethods
|
26
26
|
klass.class_eval{ include Typecaster::InstanceMethods }
|
27
|
-
klass.
|
27
|
+
klass.send(:alias_method, :initialize_without_typecasting, :initialize)
|
28
|
+
klass.send(:alias_method, :initialize, :initialize_with_typecasting)
|
28
29
|
end
|
29
30
|
|
30
31
|
module Helpers
|
data/lib/wrest/native/get.rb
CHANGED
@@ -55,7 +55,8 @@ module Wrest::Native
|
|
55
55
|
cache_proxy.get
|
56
56
|
end
|
57
57
|
|
58
|
-
|
58
|
+
alias_method :invoke_without_cache_check, :invoke
|
59
|
+
alias_method :invoke, :invoke_with_cache_check
|
59
60
|
|
60
61
|
def build_request_without_cache_store(cache_validation_headers)
|
61
62
|
new_headers = headers.clone.merge cache_validation_headers
|
data/lib/wrest/native/request.rb
CHANGED
@@ -80,6 +80,8 @@ module Wrest::Native
|
|
80
80
|
# The request hash is followed by a connection hash; requests using the
|
81
81
|
# same connection (effectively a keep-alive connection) will have the
|
82
82
|
# same connection hash.
|
83
|
+
#
|
84
|
+
# Passing nil for either username or password will skip HTTP authentication
|
83
85
|
#
|
84
86
|
# This is followed by the response code, the payload size and the time taken.
|
85
87
|
def invoke
|
data/lib/wrest/uri.rb
CHANGED
@@ -36,6 +36,7 @@ module Wrest #:nodoc:
|
|
36
36
|
# defaults if there are any clashes. Use this to set cookies or use OAuth2 Authorize
|
37
37
|
# headers. When extending or cloning a Uri, passing in a new set of default_headers
|
38
38
|
# will result in the old set being overridden.
|
39
|
+
# :username, :password => HTTP authentication. Passing nil for either username or password will skip it.
|
39
40
|
# See Wrest::Native::Request for other available options and their default values.
|
40
41
|
def initialize(uri_string, options = {})
|
41
42
|
@options = options.clone
|
data/lib/wrest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sidu Ponnappa
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '5'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '5'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: builder
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,7 +215,7 @@ requirements:
|
|
215
215
|
- To use multipart post, install the 'multipart-post' gem.
|
216
216
|
- To use eventmachine as a parallel backend, install the 'eventmachine' gem.
|
217
217
|
rubyforge_project: wrest
|
218
|
-
rubygems_version: 2.
|
218
|
+
rubygems_version: 2.5.1
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: Wrest is a fluent, object oriented HTTP client library for 2.x.x, JRuby 9.x
|