wrest 2.2.0 → 3.0.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: 74d6752f1e1d310a56a31c8b5d412bc33f4c6405
4
- data.tar.gz: 82875275d48826a8154e481982f6e69ccfd60de2
3
+ metadata.gz: f91ae89613e80b46bbae1cab5167b0266c5e09c3
4
+ data.tar.gz: f0c445af93ea24acf525ef3daa33d172ee89321a
5
5
  SHA512:
6
- metadata.gz: c5c9cbc733ef503e952a52d45db4376fe1513584bccd3fce9c3692f51ebfd2c9dc067026d7c1e42e82cb9664e631f7f336e8b82f2622cc66d034619b1684e7a9
7
- data.tar.gz: 9a813bde3499e6fbc91e5782c26bf1b6f185ffdd6bcb384db857756b154d8d6757e063a579ba1a70f40bafaf5ede38e8dbaf18acb0ed8c5c5d9aaa9c4ede05c6
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.alias_method_chain :initialize, :typecasting
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
@@ -55,7 +55,8 @@ module Wrest::Native
55
55
  cache_proxy.get
56
56
  end
57
57
 
58
- alias_method_chain :invoke, :cache_check
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
@@ -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
@@ -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
@@ -8,5 +8,5 @@
8
8
  # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  module Wrest
11
- VERSION = "2.2.0"
11
+ VERSION = "3.0.0"
12
12
  end
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: 2.2.0
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: 2017-04-24 00:00:00.000000000 Z
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: '4'
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: '4'
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.6.8
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