- 25 2月, 2017 19 次提交
-
-
由 Andrew White 提交于
-
由 Ryuta Kamizono 提交于
-
由 Matthew Draper 提交于
-
由 Richard Schneeman 提交于
[close #24435] Send user_supplied_options to server
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Closes #27429
-
-
由 John Hawthorn 提交于
In Ruby 2.4, BigDecimal(), as used by the Decimal cast, was changed so that it will raise ArgumentError when passed an invalid string, in order to be more consistent with Integer(), Float(), etc. The other numeric types use ex. to_i and to_f. Unfortunately, we can't simply change BigDecimal() to to_d. String#to_d raises errors like BigDecimal(), unlike all the other to_* methods (this should probably be filed as a ruby bug). Instead, this simulates the existing behaviour and the behaviour of the other to_* methods by finding a numeric string at the start of the passed in value, and parsing that using BigDecimal(). See also https://bugs.ruby-lang.org/issues/10286 https://github.com/ruby/bigdecimal/commit/3081a627cebdc1fc119425c7a9f009dbb6bec8e8
-
由 Matthew Draper 提交于
Soft-deprecate the `HashWithIndifferentAccess` constant
-
由 Rafael Mendonça França 提交于
Allow ActiveSupport::MarshalWithAutoloading#load to take a Proc
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Add missing gzip footer check in ActiveSupport::Gzip.decompress
-
由 Robin Dupret 提交于
This ensures that if we try to hard-deprecate it again in the future, we won't break these behaviors.
-
由 Robin Dupret 提交于
Since using a `ActiveSupport::Deprecation::DeprecatedConstantProxy` would prevent people from inheriting this class and extending it from the `ActiveSupport::HashWithIndifferentAccess` one would break the ancestors chain, that's the best option we have here.
-
由 Dylan Thacker-Smith 提交于
A gzip file has a checksum and length for the decompressed data in its footer which isn't checked by just calling Zlib::GzipReader#read. Calling Zlib::GzipReader#close must be called after reading to the end of the file causes this check to be done, which is done by Zlib::GzipReader.wrap after its block is called.
-
由 Jeff Latz 提交于
-
由 Eileen M. Uchitelle 提交于
Change `SystemTestCase.driven_by` to use `setup`/`teardown` hooks
-
由 Lucas Mazza 提交于
Previously, `driven_by` would change the Capybara configuration when the test case is loaded, and having multiple test classes with different `driven_by` configs would fail as the last loaded would be effective.
-
由 schneems 提交于
Currently when Puma gets a `:Port` it doesn't know if it is Rails' default port or if it is one that is specified by a user. Because of this it assumes that the port passed in is always a user defined port and therefor 3000 always "wins" even if you specify `port` inside of the `config/puma.rb` file when booting your server with `rails s`. The fix is to record the options that are explicitly passed in from the user and pass those to the Puma server (or all servers really). Puma then has enough information to know when `:Port` is the default and when it is user defined. I went ahead and did this for all values rails server exposes as server side options for completeness. The hardest thing was converting the input say `-p` or `--port` into the appropriate "name", in this case `Port`. There may be a more straightforward way to do this with Thor, but I'm not an expert here. Move logic for parsing user options to method Better variable name for iteration Explicitly test `--port` user input
✂ ️ Update array if environment variables are used
-
- 24 2月, 2017 21 次提交
-
-
由 Rafael França 提交于
does not show hidden namespaces in generator's help
-
由 Rafael França 提交于
Merge pull request #28062 from y-yagi/make_adding_gemfile_entry_work_even_if_specify_only_the_plugin_name Make adding gemfile entry work even if specify only the plugin name
-
由 Rafael França 提交于
Improve docs for ActiveRecord::Result. [ci skip]
-
由 yuuji.yaginuma 提交于
-
由 Trevor Reiff 提交于
Remove styling from `true` and `false`.
-
由 yuuji.yaginuma 提交于
Whether the command was executed within the rails application is checked by whether or not the application's path matches `app_path`. https://github.com/rails/rails/blob/5-0-stable/railties/lib/rails/generators/rails/plugin/plugin_generator.rb#L439..L441 Therefore, if only plugin name is specified in `app_path`, addition to Gemfile is not done. However, in the rails guide an example of specifying only plugin name is given, and it is considered that there are many cases where only plugin name is specified. For that reason, made it work even if only plugin name was specified.
-
由 Rafael França 提交于
Make version and help short-cut alias to work
-
由 Rafael França 提交于
Enable Active Model testing for JRuby
-
由 Richard Schneeman 提交于
Make HWIA#compact not return nil when no nils
-
由 yuuji.yaginuma 提交于
-
由 yuuji.yaginuma 提交于
-
由 Jon Moss 提交于
[ci skip]
-
由 Rafael França 提交于
Merge pull request #25285 from kamipo/fix_remove_reference_to_multiple_foreign_keys_in_the_same_table Fix `remove_reference` to multiple foreign keys in the same table
-
由 Rafael França 提交于
Deprecate using `#quoted_id` in quoting / type casting
-
由 Pavel Pravosud 提交于
-
由 Jon Moss 提交于
-
由 Rafael França 提交于
Fix w3c_validator.rb validation script
-
由 Ryuta Kamizono 提交于
Originally `quoted_id` was used in legacy quoting mechanism. Now we use type casting mechanism for that. Let's deprecate `quoted_id`.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Rafael França 提交于
Fix `wait_timeout` to configurable for mysql2 adapter
-