1. 22 8月, 2015 4 次提交
  2. 21 8月, 2015 13 次提交
  3. 20 8月, 2015 11 次提交
  4. 19 8月, 2015 11 次提交
    • G
      Merge pull request #21294 from maclover7/codeofconduct · f454ad37
      Guillermo Iguaran 提交于
      Add code of conduct info to README.md and to contributing guide
      f454ad37
    • D
      Merge pull request #21292 from CoralineAda/coc · dd86b3b5
      David Heinemeier Hansson 提交于
      Adds a code of conduct
      dd86b3b5
    • Y
      Merge pull request #21282 from sjain1107/added_docs · 0a17e8cb
      Yves Senn 提交于
      Added docs for TableDefinition #coloumns & #remove_column [ci skip]
      0a17e8cb
    • M
      8e35ab86
    • A
      make the routes reader private · 71873398
      Aaron Patterson 提交于
      nobody should be touching the routes hash without going through the
      NamedRouteCollection object.
      71873398
    • A
      don't touch internals · 62383dde
      Aaron Patterson 提交于
      We shouldn't be messing with the NamedRouteCollection internals.  Just
      ask the object if the named route is in there.
      62383dde
    • A
      drop array allocations when building paths · d993cb36
      Aaron Patterson 提交于
      ```ruby
      require 'action_pack'
      require 'action_dispatch'
      require 'benchmark/ips'
      
      route_set = ActionDispatch::Routing::RouteSet.new
      routes = ActionDispatch::Routing::Mapper.new route_set
      
      ObjectSpace::AllocationTracer.setup(%i{path line type})
      result = ObjectSpace::AllocationTracer.trace do
        500.times do
          routes.resources :foo
        end
      end
      
      sorted = ObjectSpace::AllocationTracer.allocated_count_table.sort_by(&:last)
      sorted.each do |k,v|
        next if v == 0
        p k => v
      end
      
      __END__
      
      Before:
      
      {:T_SYMBOL=>11}
      {:T_REGEXP=>17}
      {:T_STRUCT=>6500}
      {:T_MATCH=>12004}
      {:T_OBJECT=>99009}
      {:T_DATA=>100088}
      {:T_HASH=>122015}
      {:T_STRING=>159637}
      {:T_IMEMO=>363134}
      {:T_ARRAY=>433056}
      
      After:
      
      {:T_SYMBOL=>11}
      {:T_REGEXP=>17}
      {:T_STRUCT=>6500}
      {:T_MATCH=>12004}
      {:T_OBJECT=>91009}
      {:T_DATA=>100088}
      {:T_HASH=>114013}
      {:T_STRING=>159637}
      {:T_ARRAY=>321056}
      {:T_IMEMO=>351133}
      ```
      d993cb36
    • A
      4d9475be
    • A
      drop string allocations for each resource · 01d88953
      Aaron Patterson 提交于
      Eagerly calculate and cache the name of Symbol objects in the path AST.
      This drops about 26 string allocations per resource:
      
      ```ruby
      require 'action_pack'
      require 'action_dispatch'
      require 'benchmark/ips'
      
      route_set = ActionDispatch::Routing::RouteSet.new
      routes = ActionDispatch::Routing::Mapper.new route_set
      
      ObjectSpace::AllocationTracer.setup(%i{path line type})
      result = ObjectSpace::AllocationTracer.trace do
        500.times do
          routes.resources :foo
        end
      end
      
      sorted = ObjectSpace::AllocationTracer.allocated_count_table.sort_by(&:last)
      sorted.each do |k,v|
        next if v == 0
        p k => v
      end
      
      __END__
      
      Before:
      
      {:T_SYMBOL=>11}
      {:T_REGEXP=>17}
      {:T_STRUCT=>6500}
      {:T_MATCH=>12004}
      {:T_OBJECT=>99009}
      {:T_DATA=>116084}
      {:T_HASH=>122015}
      {:T_STRING=>172647}
      {:T_IMEMO=>371132}
      {:T_ARRAY=>433056}
      
      After:
      
      {:T_SYMBOL=>11}
      {:T_REGEXP=>17}
      {:T_STRUCT=>6500}
      {:T_MATCH=>12004}
      {:T_OBJECT=>99009}
      {:T_DATA=>100088}
      {:T_HASH=>122015}
      {:T_STRING=>159637}
      {:T_IMEMO=>363134}
      {:T_ARRAY=>433056}
      ```
      01d88953
    • R
      Merge pull request #21110 from kamipo/mysql_json_support · a3168602
      Rafael Mendonça França 提交于
      Add a native JSON data type support in MySQL
      a3168602
    • C
      Adds a code of conduct · 80da14b5
      CoralineAda 提交于
      An easy way to begin addressing the problem of inclusivity is to be overt in our
      openness, welcoming all people to contribute, and pledging in return to
      value them as human beings and to foster an atmosphere of kindness,
      cooperation, and understanding.
      
      A code of conduct is  one way to express these values. It lets us pledge
      our respect and appreciation for contributors and participants to the
      project.
      80da14b5
  5. 18 8月, 2015 1 次提交