aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/kernel
Commit message (Collapse)AuthorAgeFilesLines
* Remove the Kernel#` override that turns ENOENT into nilAkinori MUSHA2019-01-311-13/+0
| | | | | | | | | | | | ActiveSupport overrides `` Kernel#` `` so that it would not raise `Errno::ENOENT` but return `nil` instead (due to the last statement `STDERR.puts` returning nil) if a given command were not found. Because of this, you cannot safely say somthing like `` `command`.chomp `` when ActiveSupport is loaded. It turns out that this is an outdated monkey patch for Windows platforms to emulate Unix behavior on an ancient version of Ruby, and it should be removed by now.
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-1/+1
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-114-0/+4
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-094-0/+4
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-1/+1
|
* Remove deprecated kernel debugger fileAndrew White2016-11-131-3/+0
|
* Add missing `+` around a some literals.bogdanvlviv2016-10-271-1/+1
| | | | | | Mainly around `nil` [ci skip]
* applies new string literal convention in activesupport/libXavier Noria2016-08-062-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Revert "Add default exceptions affected by suppress (#25099)"Rafael Mendonça França2016-05-231-1/+0
| | | | | | | This reverts commit 28492204ee59a5aca2f3bc7b161d45724552686d. Reason: `suppress` without an argument doesn't actually tell what is supressing. Also, it can be confused with ActiveRecord::Base#suppress.
* Add default exceptions affected by suppress (#25099)Alexey Zapparov2016-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | * Add default exceptions affected by suppress suppress { do_something_that_might_fail } # instead of begin do_something_that_might_fail rescue end # or do_something_that_might_fail rescue nil * Do not add default exceptions list constant [Rafael Mendonça França + Alexey Zapparov]
* Don't publicize Kernel core extensionsGenadi Samokovarov2016-02-042-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a reaction to a [bug] we hit in web-console. The cause of it was a `Kernel` extension called `#console` that was public and was fighting over Railties with console block to be run on `rails console`. We solved it by making the method private. We did that through `module_function` so `::Kernel.console` can be invoked even in `BasicObject`. I'm proposing to make most of the core Active Support `Kernel` extensions `module_function` as well. Those are currently public and we are polluting every `Object` public interface with them. ```ruby >> Object.new.respond_to? :silence_warnings => true >> Object.new.respond_to? :with_warnings => true >> Object.new.respond_to? :enable_warnings => true >> Object.new.respond_to? :suppress => true `` Some extensions like `Kernel#class_eval` should be public, but most of them don't really need to be. [bug]: https://github.com/rails/web-console/issues/184
* temp files are no more requireGaurav Sharma2015-08-251-2/+0
| | | `:nail_care:`
* No need of requiring `rbconfig`, it is by-default loadedKuldeep Aggarwal2015-01-101-1/+0
|
* Remove debugger supportRafael Mendonça França2015-01-041-10/+3
| | | | | bebugger doesn't work with Ruby 2.2 so we don't need to support it anymore
* Remove deprecated methods at `Kernel`.Rafael Mendonça França2015-01-041-80/+0
| | | | `silence_stderr`, `silence_stream`, `capture` and `quietly`.
* Do not check only for the Rails constantRafael Mendonça França2015-01-021-1/+1
| | | | | This constant may be define for auxiliar gems like rails-html-sanitizer and these methods call will fail.
* Fix comment typo in debugger.rbmntj2014-12-301-1/+1
|
* edit pass over all warningsXavier Noria2014-10-281-3/+3
| | | | | | | | | | | | | | | This patch uniformizes warning messages. I used the most common style already present in the code base: * Capitalize the first word. * End the message with a full stop. * "Rails 5" instead of "Rails 5.0". * Backticks for method names and inline code. Also, converted a few long strings into the new heredoc convention.
* Deprecate reporting methods for silencing output as they aren't thread safeTom Meier2014-07-151-0/+10
|
* Fix concerning module reference [ci skip]Carlos Antonio da Silva2014-02-261-1/+1
|
* Introduce Concern#class_methods and Kernel#concernJeremy Kemper2014-02-231-0/+10
|
* Methods silence_stream/quietly are not thread-safe [skip ci]Arthur Neves2014-02-191-0/+4
| | | | | | State that on the doc. [fixes #11954]
* Fix issue with Kernel#silence_stream leaking file descriptorsMario Visic2013-12-061-0/+1
| | | | | | | Calling Kernel#silence_stream creates a new file descriptor which isn't closed after it is used. As a result calling silence_stream multiple times leads to a build up of loose file descriptors and can cause issues in environments where garbage collection isn't run often.
* Get rid of unused variableGuillermo Iguaran2013-11-141-1/+1
|
* Merge pull request #12882 from charliesome/use-rescue-splat-in-suppressGuillermo Iguaran2013-11-131-2/+1
|\ | | | | Use rescue with a splat rather and catching all exceptions and manually filtering in Kernel#suppress
| * Use rescue with a splat rather and catching all and filteringCharlie Somerville2013-11-131-2/+1
| |
* | Fix jruby warning when capture calls unlink on an open tempfileAlex Tambellini2013-08-021-0/+1
|/ | | | Jruby cannot unlink a tempfile unless it is closed first.
* Remove unnecessary begin..rescue..end, use only rescueAkira Matsuda2013-01-061-4/+3
|
* Kernel#capture replaced by version which can catch output from subprocessesDmitry Vorotilin2012-11-011-11/+26
|
* update AS/core_ext docs [ci skip]Francesco Rodriguez2012-09-121-5/+6
|
* Merge pull request #5996 from gazay/remove_excess_selfsJeremy Kemper2012-04-281-3/+4
|\ | | | | Active Support housekeeping and polish
| * String quotes and trailing spacesAlexey Gaziev2012-04-291-3/+3
| |
| * AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-0/+1
| |
* | and one more timeAditya Sanghi2012-04-241-2/+2
| |
* | another attempt at the languageAditya Sanghi2012-04-181-1/+1
| |
* | review changes for #5875Aditya Sanghi2012-04-181-1/+1
| |
* | stamp out ruby-debug19 with extreme prejudice :)Aditya Sanghi2012-04-171-2/+2
|/
* rename ruby-debug to ruby-debug19Vishnu Atrai2012-01-011-1/+1
|
* remove Kernel#singleton_class from core_ext as it is present in ruby 1.9lest2011-12-211-7/+0
|
* Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+1
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-2/+2
|\ | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Remove extra white spaces on ActiveSupport docs.Sebastian Martinez2011-05-232-3/+3
| |
* | Removed the AS core_ext/kernel/debugger breakpoint method as this method is ↵Josh Kalderimis2011-05-231-7/+1
| | | | | | | | added by ruby-debug and should be left as is. Missing tests added.
* | Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-231-26/+0
|/
* new reporting method Kernel#quietlyXavier Noria2011-05-131-1/+13
|
* Move capture to Kernel. [#5641 state:resolved]Krekoten' Marjan2010-09-181-0/+19
|
* Config is deprecated on 1.8.8 and 1.9.3 use RbConfigSantiago Pastorino2010-08-231-1/+1
|
* Removes unused varsSantiago Pastorino2010-07-241-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* You need the ruby-debug available in your Gemfile for debugger to workDavid Heinemeier Hansson2010-06-021-1/+1
|
* Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]Anil Wadghule2010-04-261-1/+2
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>