Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Commits on Jun 11, 2015
  1. Merge pull request #47 from biola/preserve_empty_params

    Don't remove parameters with empty values.
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
  2. @TomK32

    Fix pass_values_onto_requestable to use method rather than the instan…

    TomK32 authored
    …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.
    BaseClient < Weary::Client
      cattr_accessor :headers
      def headers
        return @@headers ||= {}
    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
      def pass_values_onto_requestable(requestable)
          requestable.headers self.headers unless @headers.nil?
          requestable.adapter self.adapter unless @connection.nil?
    A simplified example to prove my point further:
    class A
      attr_accessor :b
      def initialize
        @b = "instance variable"
      def b
        return "method"
    puts # => method
    puts'@b') # => "instance variable"
Commits on Jul 8, 2014
  1. @adamcrown

    Don't remove parameters with empty values.

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

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

    Resource nested hash support
  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
  2. @phulst
Commits on Apr 15, 2013
  1. Update to v1.1.3

  2. 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
    It's likely other spec changes to accomodate the most recent Rack should
  3. Merge pull request #32 from gabceb/weary-relax-dependencies

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

    Relax dependecies

    gabceb authored
    - Relax multi_json and webmock dependencies
    - Fix typhoueus to work with typhoeus > 0.5
    - Remove Gemfile.lock
Commits on Mar 27, 2013
Commits on Mar 25, 2013
  1. Merge pull request #31 from imkmf/30-update-multi_json

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

    Update multi_json in Weary

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

    Update gem yard, yard-tomdoc
  2. @sanemat

    Update gem yard, yard-tomdoc

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

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

    + 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.
  2. Deconstruct query to hash by unescaping with ASCII-8BIT

    Fixes #25, and we don't have to get rid of SimpleOAuth.
Commits on Oct 2, 2012
  1. True URI escaping.

Something went wrong with that request. Please try again.