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

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

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

    winmillwill committed Jul 26, 2012
  7. removing vendor per lsmith

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

    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
    mikealmond committed Jul 9, 2012
Commits on May 16, 2012
  1. basic testability additions

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

    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.
    winmillwill committed May 16, 2012
Commits on May 15, 2012
  1. Variants

    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
    cboden committed May 15, 2012
  2. [Negotiator][AcceptItem] Implemented getPreferred

    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.
    cboden committed May 15, 2012
  3. Removed unused code

    cboden committed May 15, 2012
  4. [Accept][Item] LSB on __set_state

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

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

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

    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
    cboden committed May 15, 2012
Commits on Apr 29, 2012
  1. updating readme with ideas

    winmillwill committed Apr 29, 2012
Commits on Apr 14, 2012
Commits on Apr 11, 2012
  1. Merge pull request #4 from ygerasimov/master

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

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

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