Skip to content
Commits on Jun 27, 2016
  1. Better way to ensure em-http-requests don’t require compressed respon…

    …se by default in specs.
    committed Jun 27, 2016
  2. Disabled response decoding in em-http-request specs to make specs mor…

    …e reliable when testing against real requests to third party services.
    committed Jun 27, 2016
Commits on Jun 3, 2016
  1. Version 2.1.0

    committed Jun 3, 2016
  2. Merge pull request #627 from pavel-jurasek-bcgdv-com/jurasek_fix_curb…

    …_on_debug
    
    Fix curb on debug
    committed Jun 3, 2016
  3. Remove not needed line :)

    “Pavel committed Jun 3, 2016
Commits on Jun 1, 2016
  1. Merge pull request #625 from pavel-jurasek-bcgdv-com/jurasek_patch_in…

    …tegration
    
    Add support for patch
    committed Jun 1, 2016
  2. Trigger

    “Pavel committed Jun 1, 2016
  3. Remove byebug dependency

    “Pavel committed Jun 1, 2016
  4. Uncommented block

    “Pavel committed Jun 1, 2016
  5. Add support for PATCH

    “Pavel committed Jun 1, 2016
  6. Exclude curb from Jruby CI

    “Pavel committed Jun 1, 2016
  7. Add implementation and switch to proper branch

    “Pavel committed Jun 1, 2016
  8. Add support for patch

    “Pavel committed Jun 1, 2016
Commits on May 20, 2016
  1. Removed minitest warnings.

    committed May 20, 2016
  2. Version 2.0.3

    committed May 20, 2016
  3. Merge pull request #619 from cupakromer/fix-warnings

    Fix warnings
    committed May 20, 2016
Commits on May 18, 2016
  1. @cupakromer

    Fix method redefined warnings

    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: method redefined; discarding old call
    > /spec/acceptance/shared/returning_declared_responses.rb:132: warning: previous definition of call was here
    
    Each time the shared example is loaded the example group is re-run. Due
    to Ruby constant scoping the `Responder` class is defined at the
    top-level (`main`), not in any module that the example group may be
    nested in. Thus each time the example group is run the class gets
    re-opened causing `call` to be redefined.
    
    This simply declares the class once at the top of the file. I left it on
    the top-level as I wasn't sure if this project prefers it there or in a
    spec specific module. FWIW it doesn't look like it gets called from
    outside this class.
    cupakromer committed May 17, 2016
  2. @cupakromer

    Fix shadowing outer local variable warnings

    > /spec/acceptance/em_http_request/em_http_request_spec.rb:277: warning: shadowing outer local variable - resp
    > /spec/acceptance/em_http_request/em_http_request_spec.rb:281: warning: shadowing outer local variable - resp
    > /spec/acceptance/httpclient/httpclient_spec_helper.rb:23: warning: shadowing outer local variable - headers
    > /spec/acceptance/net_http/net_http_spec_helper.rb:13: warning: shadowing outer local variable - v
    > /spec/acceptance/net_http/net_http_spec_helper.rb:34: warning: shadowing outer local variable - http
    > /spec/acceptance/typhoeus/typhoeus_hydra_spec.rb:107: warning: shadowing outer local variable - body
    cupakromer committed May 17, 2016
  3. @cupakromer

    Fix assigned but unused variable warning

    > /spec/acceptance/httpclient/httpclient_spec.rb:191: warning: assigned but unused variable - result
    cupakromer committed May 17, 2016
  4. @cupakromer

    Fix ambiguous first argument warnings

    > /spec/acceptance/shared/stubbing_requests.rb:37: warning: ambiguous first argument; put parentheses or a space even after `/' operator
    > /spec/acceptance/shared/stubbing_requests.rb:38: warning: ambiguous first argument; put parentheses or a space even after `/' operator
    cupakromer committed May 17, 2016
  5. @cupakromer

    Fix instance variable not initialized warnings

    > /lib/util/version_checker.rb:83: warning: instance variable @max_major not initialized
    > /lib/util/version_checker.rb:86: warning: instance variable @max_minor not initialized
    > /lib/util/version_checker.rb:94: warning: instance variable @max_minor not initialized
    > /lib/webmock/http_lib_adapters/excon_adapter.rb:41: warning: instance variable @original_excon_mock_default not initialized
    > /lib/webmock/http_lib_adapters/excon_adapter.rb:43: warning: instance variable @stub not initialized
    
    Since these are class methods there isn't an `initialize` for us to hook
    into to set the variables. Instead we need to put ourselves in the class
    object context to get the variables set. We do this early, before the
    variables can be used, using `instance_exec`. We do not use the `eval`
    version as we are not passing strings. The `_exec` version is available
    in all supported Ruby versions.
    cupakromer committed May 17, 2016
  6. @cupakromer

    Fix private attribute warnings

    > /lib/webmock/request_body_diff.rb:20: warning: private attribute?
    > /lib/webmock/request_body_diff.rb:20: warning: private attribute?
    cupakromer committed May 17, 2016
Commits on May 14, 2016
  1. Version 2.0.2

    committed May 15, 2016
  2. Only converting Authorisation header to basic authentication encoded …

    …header, if it’s provided as an array in em-http-request adapter.
    committed May 15, 2016
  3. Merge pull request #618 from modosc/fix-long-basic-auth

    use Base64.strict_encode64 to avoid trying to match against a multiline Authorization: header
    committed May 15, 2016
Commits on May 11, 2016
  1. @modosc

    use Base64.strict_encode64 to avoid trying to match against a multili…

    …ne Authorization: header
    modosc committed May 11, 2016
Commits on May 6, 2016
  1. Merge pull request #615 from jlhonora/master

    Fix regex comparison
    committed May 6, 2016
Commits on May 3, 2016
  1. @jlhonora

    Fix regex comparison

    jlhonora committed May 3, 2016
Commits on May 2, 2016
  1. Version 2.0.1

    committed May 2, 2016
  2. Added code responsible for loading em-http-request if available, whic…

    …h has been removed by mistake.
    committed May 2, 2016
Commits on Apr 28, 2016
  1. Merge pull request #612 from taiki45/resolve-rspec-warning

    Resolve RSpec warning
    committed Apr 28, 2016
  2. Merge pull request #611 from taiki45/require-base64

    WebMock should load "base64"
    committed Apr 28, 2016
Something went wrong with that request. Please try again.