Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 9, 2015
  1. @spastorino

    Merge pull request #819 from eileencodes/expand-initalize-ivars

    spastorino authored
    Expand initialize ivars instead of using 1 line
Commits on Mar 6, 2015
  1. @eileencodes

    Expand initialize ivars instead of using 1 line

    eileencodes authored
    Flattening the ivars here causes them to be allocated as an array.
    This commit expands them to avoid these extra allocations.
    
    Total allocations before: 2913000
    Total allocations after:  2892000
Commits on Mar 5, 2015
  1. @tenderlove

    Merge pull request #798 from smcgivern/option_order

    tenderlove authored
    Prioritise CLI options over comment options
  2. @tenderlove

    Merge pull request #807 from davydovanton/update-readme

    tenderlove authored
    Added links to profile page for all rack core team and alumnis members
  3. @tenderlove

    Merge pull request #810 from DamirSvrtan/yield_instead_of_block_call

    tenderlove authored
    Use yield instead of block.call
  4. @tenderlove

    Merge pull request #815 from johnnaegle/remove_duplicate_test

    tenderlove authored
    Remove a duplicate test
  5. @tenderlove

    Merge pull request #816 from english/fix-multipart-noname

    tenderlove authored
    Handle mulipart requests with no part names
  6. @jeremy

    Revert "Merge pull request #813 from eileencodes/remove-check-for-nil"

    jeremy authored
    Add a test demonstrating that `nil` is treated as an empty query string
    
    This reverts commit 7788a1b, reversing
    changes made to e117591.
Commits on Mar 4, 2015
  1. @english

    Handle mulipart/... requests with no part names

    english authored
    Previously, Rack would assume there would be either a Content-Disposition or Content-ID
    header for multipart request parts. This is not required in [rfc1341][0].
    
    Now, Rack will use the Content-Type (falling back to text/plain) for the part name,
    storing parameters in an array, keyed off the content type.
    
    [0]: http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
Commits on Mar 3, 2015
  1. @johnnaegle

    test is an exact duplicate.

    johnnaegle authored
    Flay output:
    
    3) IDENTICAL code found in :iter (mass*2 = 152)
      spec_multipart.rb:256
      spec_multipart.rb:264
Commits on Mar 1, 2015
  1. @spastorino

    Merge pull request #809 from tgxworld/reduce_allocations

    spastorino authored
    Reduce allocations
  2. @spastorino

    Merge pull request #813 from eileencodes/remove-check-for-nil

    spastorino authored
    Remove check for `nil` on `qs`
  3. @DamirSvrtan
  4. @spastorino

    README: remove Rainbows! and Zbatery from server list

    Eric Wong authored spastorino committed
    While they remain supported as far as bug/compatibility fixes go,
    they're too much work to configure and probably too confusing for
    new users unfamiliar with Rack.
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  5. @eileencodes

    Remove check for `nil` on `qs`

    eileencodes authored
    Fixed by brynary/rack-test@4a4b2c1. rack-test was turning the query
    string to nil if there was no argument passed in the params. This extra
    `nil` check is no longer necessary after the changes made to the
    rack-test gem. Fixes issue brought up in #800.
Commits on Feb 27, 2015
  1. @DamirSvrtan
Commits on Feb 25, 2015
  1. @tgxworld

    Prefer String concatenation.

    tgxworld authored
    Before:
    ```
    [["rack/lib/rack/utils.rb", 280, :T_STRING], [12004, 0, 11304, 0, 1, 463840]]
    ```
    
    After:
    ```
    [["rack/lib/rack/utils.rb", 280, :T_STRING], [5996, 0, 5706, 0, 2, 232320]]
    ```
  2. @tgxworld

    Reduce String allocations by storing common seperators in a constant.

    tgxworld authored
    Before:
    ```
    [["rack/lib/rack/utils.rb", 87, :T_STRING], [111173, 57, 106670, 0, 27, 12654156]]
    [["rack/lib/rack/utils.rb", 115, :T_STRING], [30244, 58, 29580, 0, 27, 3275248]]
    ```
    
    After:
    ```
    [["rack/lib/rack/utils.rb", 88, :T_STRING], [20979, 136, 21178, 0, 27, 1677320]]
    [["rack/lib/rack/utils.rb", 116, :T_STRING], [8995, 137, 9943, 0, 27, 581392]]
    ```
  3. @tgxworld

    Reduce Array allocations.

    tgxworld authored
    Before
    ```
    [["rack/lib/rack/utils.rb", 116, :T_ARRAY], [11988, 0, 11663, 0, 2, 463840]]
    ```
    
    After
    ```
    [["rack/lib/rack/utils.rb", 116, :T_ARRAY], [6002, 0, 5624, 0, 2, 232640]]
    ```
  4. @tgxworld

    Reduce String allocations.

    tgxworld authored
    Before:
    ```
    [["rack/lib/rack/utils.rb", 89, :T_STRING], [41986, 0, 40154, 0, 2, 1627920]]
    [["rack/lib/rack/utils.rb", 116, :T_STRING], [17982, 0, 17490, 0, 2, 695760]]
    ```
    
    After:
    ```
    [["rack/lib/rack/utils.rb", 89, :T_STRING], [27000, 0, 25875, 0, 1, 1046880]]
    [["rack/lib/rack/utils.rb", 116, :T_STRING], [12000, 0, 11283, 0, 2, 465120]]
    ```
Commits on Feb 19, 2015
  1. @davydovanton
  2. @tenderlove

    Merge branch 'master' into soulim-even-less-objects

    tenderlove authored
    * master: (53 commits)
      Update documentation of Rack::Response defaults
      Reduce string allocations.
      Clean up `@names` hash
      Don't pass arguments to `#each`
      Freeze 'X-Runtime' string
      Reduce object allocation.
      Fix bug when `qs` is `nil`
      Update license with up-to-date year
      Use default bundle install command.
      Reduce object allocations in Rack::Utils
      add office related Mime type
      fix typo
      Remove whitespaces
      Add woff2 mime type
      Update head.rb
      Fix spec versions in all handler files
      Run all the tests on ci, we have the pkgs
      Oh look, no one has run fulltest for so long
      did you know you could use turtles to shave yaks?
      Update travis.yml since we added bundler and stuff
      ...
    
    Conflicts:
    	lib/rack/file.rb
  3. @tenderlove

    Merge pull request #776 from dblock/history

    tenderlove authored
    Moved HISTORY into a separate document.
  4. @tenderlove

    Merge pull request #794 from jakimowicz/add_office_extensions

    tenderlove authored
    add office related Mime type
  5. @tenderlove
  6. @tenderlove

    Merge pull request #802 from eileencodes/freeze-x-runtime-strings-to-…

    tenderlove authored
    …reduce-allocations
    
    Freeze 'X-Runtime' string
  7. @tenderlove

    Merge pull request #803 from eileencodes/dont-pass-arguments-to-each

    tenderlove authored
    Don't pass arguments to `#each`
  8. @tenderlove
  9. @tenderlove

    Merge pull request #801 from tgxworld/reduce_object_allocation

    tenderlove authored
    Reduce object allocation.
  10. @tenderlove

    Merge pull request #805 from tgxworld/reduce_string_allocations

    tenderlove authored
    Reduce string allocations.
  11. @rkh

    Merge pull request #806 from tomstuart/patch-1

    rkh authored
    Update documentation of Rack::Response defaults
  12. @tomstuart

    Update documentation of Rack::Response defaults

    tomstuart authored
    The “containing HTML” remark stopped being true in 3623d04, as reflected by https://github.com/rack/rack/blob/master/test/spec_response.rb#L5-L21.
  13. @tgxworld

    Reduce string allocations.

    tgxworld authored
    Before total allocations = 69010
    ```
    [[rack/lib/rack/utils.rb", 314, :T_STRING], [39000, 22, 38009, 0, 27, 2536600]]
    [[rack/lib/rack/utils.rb", 312, :T_STRING], [12004, 0, 11518, 0, 2, 464800]]
    [[rack/lib/rack/utils.rb", 313, :T_STRING], [18006, 0, 17274, 0, 1, 2803325]]
    ```
    
    After total allocations = 45000
    ```
    [[rack/lib/rack/utils.rb", 315, :T_STRING], [45000, 41, 45338, 0, 28, 4160731]]
    ```
Commits on Feb 18, 2015
  1. @eileencodes

    Clean up `@names` hash

    eileencodes authored
    Tidies up the `@names` hash so we don't need to store as much in it.
  2. @eileencodes

    Don't pass arguments to `#each`

    eileencodes authored
    Nothing is actually passed to `#each` so we shouldn't be passing `*args`.
    This change eliminates proc and array allocations here.
    
    Before this change `#each` on rack/lib/rack/body_proxy.rb:34 was number
    3 in highest allocations for Rails integration tests. After this change it's
    no longer in the top 5.
Something went wrong with that request. Please try again.