Skip to content
Commits on Jun 11, 2015
  1. Merge pull request #47 from biola/preserve_empty_params

    Don't remove parameters with empty values.
    committed Jun 11, 2015
Commits on Apr 14, 2015
  1. Merge pull request #48 from TomK32/patch-1

    Fix pass_values_onto_requestable to use method rather than the instance variable
    committed Apr 14, 2015
  2. @TomK32

    Fix pass_values_onto_requestable to use method rather than the instan…

    …ce variable
    
    Possible that I should have used something else in weary but in the end I did monkey patch `pass_values_onto_requestable`. What I wanted was the same headers over a small number of clients. So in my BaseClient I did add a method headers, hoping this to be passed on to all requests. I have to run some authentication first and the header is thus dynamic.
    
    ```ruby
    BaseClient < Weary::Client
      cattr_accessor :headers
      def headers
        return @@headers ||= {}
      end
    end
    ```
    It didn't pass the values because in `pass_values_onto_requestable` it is first looking at the instance variable `@headers` and only after that it calls the headers method. Despite the shared name they can be very different things
    
    ```ruby
      def pass_values_onto_requestable(requestable)
          requestable.headers self.headers unless @headers.nil?
          requestable.adapter self.adapter unless @connection.nil?
      end
    ```
    
    A simplified example to prove my point further:
    ```ruby
    class A
      attr_accessor :b
      def initialize
        @b = "instance variable"
      end
      def b
        return "method"
      end
    end
    
    puts A.new.b # => method
    puts A.new.instance_variable_get('@b') # => "instance variable"
    ```
    TomK32 committed Apr 14, 2015
Commits on Jul 8, 2014
  1. @adamcrown

    Don't remove parameters with empty values.

    Sometimes things need to be set to nil or an empty string.
    adamcrown committed Jul 8, 2014
Commits on Jan 15, 2014
  1. Ensure POST/PUT body inputs are always encoded properly

    Fixes #44 and LintErrors. Remove deprecated rspec matchers.
    committed Jan 15, 2014
Commits on Nov 19, 2013
  1. Merge pull request #42 from artempartos/feature/nested_hash_params

    Resource nested hash support
    committed Nov 19, 2013
  2. @artempartos
  3. @artempartos
Commits on May 3, 2013
  1. Merge pull request #37 from phulst/rack_ver

    loosened rack version requirement to 1.4.5 or higher
    committed May 3, 2013
  2. @phulst
Commits on Apr 15, 2013
  1. Update copyright year in LICENSE

    committed Apr 15, 2013
  2. Update copyright year in README

    committed Apr 15, 2013
  3. Update to v1.1.3

    committed Apr 15, 2013
  4. Loosen/update dependencies for Rack, Addressable, etc.

    The update to Rack ~> 1.5 removed a spec, since the Rack spec itself has
    changed. Rack no longer requires a Response to have the Content-Type
    header.
    
    It's likely other spec changes to accomodate the most recent Rack should
    occur.
    committed Apr 15, 2013
  5. Merge pull request #32 from gabceb/weary-relax-dependencies

    Relax dependencies
    committed Apr 15, 2013
Commits on Mar 28, 2013
  1. @gabceb
  2. @gabceb

    Relax dependecies

    - Relax multi_json and webmock dependencies
    - Fix typhoueus to work with typhoeus > 0.5
    - Remove Gemfile.lock
    gabceb committed Mar 28, 2013
Commits on Mar 27, 2013
  1. New Code Climate badge in README

    committed Mar 27, 2013
Commits on Mar 25, 2013
  1. Merge pull request #31 from imkmf/30-update-multi_json

    Fixes #30, updates multi_json
    committed Mar 25, 2013
Commits on Mar 23, 2013
  1. @imkmf

    Update multi_json in Weary

    imkmf committed Mar 22, 2013
Commits on Feb 13, 2013
  1. Merge pull request #29 from sanemat/feature/bundle-update

    Update gem yard, yard-tomdoc
    committed Feb 13, 2013
  2. @sanemat

    Update gem yard, yard-tomdoc

    loaded gem is no longer exist, so I can not complete bundle install.
    ```
    $ bundle
    Fetching gem metadata from http://rubygems.org/..
    Could not find loaded-0.0.1 in any of the sources
    ```
    
    Use command below:
    $ bundle update yard yard-tomdoc
    sanemat committed Feb 13, 2013
Commits on Oct 31, 2012
  1. Bump to v1.1.2

    CHANGES
    + Fix issue with Mutex being undefined in 1.8.7
    committed Oct 31, 2012
Commits on Oct 3, 2012
  1. Bump to v1.1.1

    CHANGES:
    + Better handling of transformations btwn Hashes and Param query strings
    + Requestable is now included on the Client instance, allowing you to
    set adapters/headers/etc at that level.
    committed Oct 2, 2012
  2. Deconstruct query to hash by unescaping with ASCII-8BIT

    Fixes #25, and we don't have to get rid of SimpleOAuth.
    committed Oct 2, 2012
Commits on Oct 2, 2012
  1. Rip query builder from faraday

    committed Oct 2, 2012
  2. True URI escaping.

    committed Oct 2, 2012
Something went wrong with that request. Please try again.