- 27 9月, 2017 7 次提交
-
-
由 Ryuta Kamizono 提交于
These are no longer used since 66736c8e.
-
由 Ryuta Kamizono 提交于
Change :github git source for bug report templates
-
由 Ryuta Kamizono 提交于
Because the reflection doesn't have `foreign_type` unless the association is a polymorphic association.
-
由 bogdanvlviv 提交于
:github source uses `git://` url by default, `https://` is recommended. See http://bundler.io/v1.15/guides/git.html#security We do the same in our `Gemfile` and templates.
-
由 Javan Makhmali 提交于
Add a space to RefineryCMS in Engine guide [ci skip]
-
由 Sean Griffin 提交于
I do not want to set the expectation that any enumerable object should behave this way, but this case in particular comes up frequently enough that I'm caving on this one. Fixes #30684.
-
由 Sean Griffin 提交于
PERF: Partially recover some performance when preloading.
-
- 26 9月, 2017 14 次提交
-
-
由 Matthew Draper 提交于
Fix typo in 'find_in_batches' example
-
由 hupfis 提交于
-
由 Matthew Draper 提交于
Fixed broken `bundle exec rake install`
-
由 yalab 提交于
-
由 Ryuta Kamizono 提交于
-
由 Guo Xiang Tan 提交于
Benchmark Script: ``` require 'active_record' require 'benchmark/ips' ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL')) ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table :users, force: true do |t| t.string :name, :email t.integer :topic_id t.timestamps null: false end create_table :topics, force: true do |t| t.string :title t.timestamps null: false end end attributes = { name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', email: 'foobar@email.com' } class Topic < ActiveRecord::Base has_many :users end class User < ActiveRecord::Base belongs_to :topic end 100.times do User.create!(attributes) end users = User.first(50) Topic.create!(title: 'This is a topic', users: users) Benchmark.ips do |x| x.config(time: 10, warmup: 5) x.report("preload") do User.includes(:topic).all.to_a end end ``` Before: ``` Calculating ------------------------------------- preload 40.000 i/100ms ------------------------------------------------- preload 407.962 (± 1.5%) i/s - 4.080k ``` After: ``` alculating ------------------------------------- preload 43.000 i/100ms ------------------------------------------------- preload 427.567 (± 1.6%) i/s - 4.300k ```
-
由 Ryuta Kamizono 提交于
Remove unused fixtures
-
由 yuuji.yaginuma 提交于
`about_yml_plugins` is no longer used since 82b9b151
-
由 Kasper Timm Hansen 提交于
-
由 Yoshiyuki Hirano 提交于
* According to the official website, it seems that "RefineryCMS" is "Refinery CMS". * See at: http://www.refinerycms.com/
-
由 Matthew Draper 提交于
Preload digest/sha2 to avoid thread safe error.
-
由 Kasper Timm Hansen 提交于
Respect quiet option in all process of `rails new` command
-
由 Kasper Timm Hansen 提交于
Fix minor CodeClimate issue
-
由 Kasper Timm Hansen 提交于
Based on, yet closes https://github.com/rails/rails/pull/30708 Fix the session test by properly truncating the legacy encryption key for cbc encryption. Borrowed straight from
👆 . Fix the cookies test a little differently than the PR. Basically keep every config within the config block. [ Michael Coyne & Kasper Timm Hansen ]
-
- 25 9月, 2017 19 次提交
-
-
由 Francesco Rodriguez 提交于
I got this error in production using Puma in multi-threaded mode: ``` RuntimeError: Digest::Base cannot be directly inherited in Ruby from active_support/security_utils.rb:23:in `variable_size_secure_compare' from active_support/security_utils.rb:23:in `hexdigest' from active_support/security_utils.rb:23:in `digest' ``` Looks like Digest uses const_missing to load Digest::SHA256 (https://github.com/ruby/ruby/blob/trunk/ext/digest/lib/digest.rb#L8) - https://bugs.ruby-lang.org/issues/9494 - https://github.com/ruby/ruby/commit/c02fa39463a0c6bf698b01bc610135604aca2ff4
-
由 Ryuta Kamizono 提交于
New missing backquotes [ci skip]
-
由 Ryuta Kamizono 提交于
PERF: Restore memoization when preloading associations.
-
由 Guo Xiang Tan 提交于
Benchmark Script ``` require 'active_record' require 'benchmark/ips' require 'ruby-prof' require 'memory_profiler' require 'byebug' ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL')) ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table :users, force: true do |t| t.string :name, :email t.integer :topic_id t.timestamps null: false end create_table :topics, force: true do |t| t.string :title t.timestamps null: false end end attributes = { name: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', email: 'foobar@email.com' } class Topic < ActiveRecord::Base has_many :users end class User < ActiveRecord::Base belongs_to :topic end 100.times do User.create!(attributes) end users = User.first(50) Topic.create!(title: 'This is a topic', users: users) Benchmark.ips do |x| x.config(time: 10, warmup: 5) x.report("preload") do User.includes(:topic).all.to_a end end ``` Before ``` Calculating ------------------------------------- preload 26.000 i/100ms ------------------------------------------------- preload 265.347 (± 3.0%) i/s - 2.652k ``` After ``` Calculating ------------------------------------- preload 39.000 i/100ms ------------------------------------------------- preload 406.053 (± 1.7%) i/s - 4.095k ```
-
由 Yauheni Dakuka 提交于
-
由 dixpac 提交于
-
由 yuuji.yaginuma 提交于
If specify the `quiet` option, expect that no status will be shown. However, some process show status. This suppresses all status output.
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
It's done inside each test via assert_called_with or Kernel.expects
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Update Form Helpers guide [ci skip]
-
由 Ryuta Kamizono 提交于
Remove unused variable `gem_version` from `tasks/release.rb`
-
由 Ryuta Kamizono 提交于
https://travis-ci.org/rails/rails/jobs/279300966#L2600 The result of `Loofah::HTML5::Scrub.scrub_css` was changed since v2.1.0.rc1. https://github.com/flavorjones/loofah/commit/ca56295ff9e802018ea18d23ed49be235a95ccad
-
由 Kasper Timm Hansen 提交于
-
由 Kasper Timm Hansen 提交于
-
由 Ryuta Kamizono 提交于
-
由 bogdanvlviv 提交于
-
由 Kasper Timm Hansen 提交于
Refactor Css::Generators::ScaffoldGenerator
-
由 Kasper Timm Hansen 提交于
It's become clear to me that the use case is still a bit muddy and the upgrade path is going to be tough for people to figure out. This attempts at understanding it better through documentation, but still needs follow up work. [ Michael Coyne & Kasper Timm Hansen ]
-