Permalink
Switch branches/tags
Nothing to show
Commits on Jul 27, 2012
  1. nicer autoloading

    winmillwill committed Jul 27, 2012
  2. Variant Lists

    winmillwill committed Jul 27, 2012
  3. clean up

    winmillwill committed Jul 27, 2012
Commits on Jul 26, 2012
  1. proper variant notions

    winmillwill committed Jul 26, 2012
  2. More array inits

    winmillwill committed Jul 26, 2012
  3. no var_dumps please

    winmillwill committed Jul 26, 2012
  4. Merge branch 'master' of github.com:winmillwill/BadFaith

    winmillwill committed Jul 26, 2012
    * 'master' of github.com:winmillwill/BadFaith:
      Fix small bug with http_accept not passing a default value
      Add default values for language and charset
  5. Merge pull request #10 from mikealmond/master

    winmillwill committed Jul 26, 2012
    Add default values for language and charset
  6. ignoring vendor

    winmillwill committed Jul 26, 2012
Commits on Jul 9, 2012
  1. Add default values for language and charset

    mikealmond committed Jul 9, 2012
    Some browsers don't send charset and language in certain circumstances. It should handle these gracefully
    
    >[error] [client 66.249.71.182] PHP Notice:  Undefined index: HTTP_ACCEPT_CHARSET in /var/www/html/vendor/BadFaith/BadFaith/lib/BadFaith/Negotiator.php on line 74
    >[error] [client 66.249.71.182] PHP Notice:  Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/html/vendor/BadFaith/BadFaith/lib/BadFaith/Negotiator.php on line 74
    >[error] [client 66.249.71.182] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/vendor/BadFaith/BadFaith/lib/BadFaith/Negotiator.php on line 158
Commits on May 16, 2012
  1. basic testability additions

    winmillwill committed May 16, 2012
    Modified phpunit.xml.dist to reflect less poor understanding
    of the tool. Added basic composer stuff so that Travis will
    work.
  2. Merge pull request #8 from cboden/api

    winmillwill committed May 16, 2012
    API addition, internal changes
    
    modernizing and streamlining the code. The internals are less ugly now that they use late static bindings, which I now know about. Fuck yeah, open source.
Commits on May 15, 2012
  1. Variants

    cboden committed May 15, 2012
    Started work on variants:
    Added `getBestVariant` to `Negotiator`
    Changed `ItemCollection` from a `SplHeap` to own creation
    Fixed a unit test that gave a false positive
  2. [Negotiator][AcceptItem] Implemented getPreferred

    cboden committed May 15, 2012
    Created `AcceptItemInterface` to apply to lowest level nodes
    Created `ItemContainer` to use instead of arrays to store Items
    This allows them to be weighed by their Quality during iteration
    Updated bootstrap to use composer autoloader if present
    Added the `getPreferred` method to `Negotiator` working as
     per the "Ideal API" in the README file
    Removed two currently un-coded, un-used methods from `Negotiator`
    
    While the internal storage changed, as well as the unit test code
     to correspond to it, the external API of `Negotiator` did not.
  3. Removed unused code

    cboden committed May 15, 2012
  4. [Negotiator] API

    cboden committed May 15, 2012
    Added three methods for negotiation
  5. CS

    cboden committed May 15, 2012
  6. [Negotiator] Cleanup and bug fix

    cboden committed May 15, 2012
    In some cases browsers do not send all 4 Accept headers
    I created a unit test to simulate this then code to fix the issue
    
    I also refactored the list code as per #5
Commits on Apr 29, 2012
Commits on Apr 14, 2012
Commits on Apr 11, 2012
  1. Merge pull request #4 from ygerasimov/master

    winmillwill committed Apr 11, 2012
    Use $arg in Negotiator::headers_from_arg()
Commits on Apr 10, 2012
  1. Merge pull request #3 from webchickenator/patch-1

    winmillwill committed Apr 10, 2012
    Update README.md
  2. Update README.md

    webchick committed Apr 10, 2012
Commits on Apr 3, 2012