1. 08 7月, 2020 5 次提交
  2. 07 7月, 2020 14 次提交
  3. 06 7月, 2020 7 次提交
  4. 05 7月, 2020 3 次提交
    • E
      Remove references to WARNINGS environment variable [ci skip] · 2f875896
      Eugene Kenny 提交于
      This has had no effect since 771a802c.
      2f875896
    • E
      Disable template digesting for Active Storage controllers · 6af56621
      Evgeniy Rashchepkin 提交于
      Error entries appear in the log when we request ActiveStorage
      controllers (`ActiveStorage::Representations::ProxyController#show`,
      `ActiveStorage::Blobs::ProxyController#show`).
      
      These entries look like: "Couldn't find template for digesting:
      active_storage/representations/proxy/show".
      
      These controllers use the method
      `ActionController::ConditionalGet#http_cache_forever`,
      and therefore `ActionController::ConditionalGet#combine_etags` method,
      and therefore `ActionController::EtagWithTemplateDigest` module via
      `etaggers` array.
      
      `ActionController::EtagWithTemplateDigest` module requires a template
      (view).
      
      We have no views in ActiveStorage, so `EtagWithTemplateDigest` is
      now turned off in ActiveStorage controllers by
      `etag_with_template_digest` class attribute.
      6af56621
    • S
      31148cd6
  5. 04 7月, 2020 1 次提交
    • R
      Remove broken responsive-tables JS · 7f77b1d5
      R. Miles McCain 提交于
      Add better responsive CSS for tables in guides
      
      Fix borders & breakpoints for responsive tables
      
      Add table fixes to RTL stylesheets
      
      Use 480px breakpoints, remove outdated CSS
      7f77b1d5
  6. 03 7月, 2020 4 次提交
  7. 02 7月, 2020 3 次提交
  8. 01 7月, 2020 3 次提交
    • R
      Merge pull request #39759 from kamipo/marshal_load_legacy_ar_object · 4fe14525
      Ryuta Kamizono 提交于
      Backward compatibility to work `Marshal.load(legacy_record.dump)` for MySQL
      4fe14525
    • J
      Refactor MemoryStore to use Hash ordering rather than key access times · b0cc7d98
      Jean Boussier 提交于
      This is mainly to simplify the code and use less memory, as large hash can use quite a lot:
      
      ```ruby
      >> ObjectSpace.memsize_of(1000.times.map { |i| [i, i]}.to_h)
      => 28768
      >> ObjectSpace.memsize_of(10_000.times.map { |i| [i, i]}.to_h)
      => 458848
      ```
      
      The performance is mostly not impacted, if not slightly better:
      
      ```ruby
      require 'benchmark/ips'
      require 'active_support/all'
      @store = ActiveSupport::Cache::MemoryStore.new
      @store.write("small", "small")
      Benchmark.ips do |x|
        x.report("read:miss") { @store.read("miss") }
        x.report("read:small") { @store.read("small") }
        x.report("write:small") { @store.write("small", "small") }
      end
      ```
      
      6.0.3.2:
      ```
      Warming up --------------------------------------
                 read:miss    42.466k i/100ms
                read:small    25.315k i/100ms
               write:small    17.826k i/100ms
      Calculating -------------------------------------
                 read:miss    426.923k (± 1.9%) i/s -      2.166M in   5.074890s
                read:small    248.518k (± 2.7%) i/s -      1.266M in   5.097049s
               write:small    180.388k (± 1.6%) i/s -    909.126k in   5.041238s
      ```
      
      This branch:
      ```
      Warming up --------------------------------------
                 read:miss    42.040k i/100ms
                read:small    28.364k i/100ms
               write:small    19.361k i/100ms
      Calculating -------------------------------------
                 read:miss    417.814k (± 2.1%) i/s -      2.102M in   5.033186s
                read:small    278.950k (± 2.8%) i/s -      1.418M in   5.088135s
               write:small    193.384k (± 1.8%) i/s -    968.050k in   5.007446s
      ```
      b0cc7d98
    • J
      Merge pull request #39762 from hahmed/active-support/better-docs-for-ordered-options · 0f4258f6
      Jonathan Hefner 提交于
      Improve the docs for ordered options [ci skip]
      0f4258f6