Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove the Kernel#` override that turns ENOENT into nil | Akinori MUSHA | 2019-01-31 | 1 | -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 => require | Akira Matsuda | 2017-10-21 | 1 | -1/+1 |
| | | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 4 | -0/+4 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 4 | -0/+4 |
| | |||||
* | [Active Support] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -1/+1 |
| | |||||
* | Remove deprecated kernel debugger file | Andrew White | 2016-11-13 | 1 | -3/+0 |
| | |||||
* | Add missing `+` around a some literals. | bogdanvlviv | 2016-10-27 | 1 | -1/+1 |
| | | | | | | Mainly around `nil` [ci skip] | ||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 2 | -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ça | 2016-05-23 | 1 | -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 Zapparov | 2016-05-23 | 1 | -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 extensions | Genadi Samokovarov | 2016-02-04 | 2 | -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 require | Gaurav Sharma | 2015-08-25 | 1 | -2/+0 |
| | | | `:nail_care:` | ||||
* | No need of requiring `rbconfig`, it is by-default loaded | Kuldeep Aggarwal | 2015-01-10 | 1 | -1/+0 |
| | |||||
* | Remove debugger support | Rafael Mendonça França | 2015-01-04 | 1 | -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ça | 2015-01-04 | 1 | -80/+0 |
| | | | | `silence_stderr`, `silence_stream`, `capture` and `quietly`. | ||||
* | Do not check only for the Rails constant | Rafael Mendonça França | 2015-01-02 | 1 | -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.rb | mntj | 2014-12-30 | 1 | -1/+1 |
| | |||||
* | edit pass over all warnings | Xavier Noria | 2014-10-28 | 1 | -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 safe | Tom Meier | 2014-07-15 | 1 | -0/+10 |
| | |||||
* | Fix concerning module reference [ci skip] | Carlos Antonio da Silva | 2014-02-26 | 1 | -1/+1 |
| | |||||
* | Introduce Concern#class_methods and Kernel#concern | Jeremy Kemper | 2014-02-23 | 1 | -0/+10 |
| | |||||
* | Methods silence_stream/quietly are not thread-safe [skip ci] | Arthur Neves | 2014-02-19 | 1 | -0/+4 |
| | | | | | | State that on the doc. [fixes #11954] | ||||
* | Fix issue with Kernel#silence_stream leaking file descriptors | Mario Visic | 2013-12-06 | 1 | -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 variable | Guillermo Iguaran | 2013-11-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #12882 from charliesome/use-rescue-splat-in-suppress | Guillermo Iguaran | 2013-11-13 | 1 | -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 filtering | Charlie Somerville | 2013-11-13 | 1 | -2/+1 |
| | | |||||
* | | Fix jruby warning when capture calls unlink on an open tempfile | Alex Tambellini | 2013-08-02 | 1 | -0/+1 |
|/ | | | | Jruby cannot unlink a tempfile unless it is closed first. | ||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 1 | -4/+3 |
| | |||||
* | Kernel#capture replaced by version which can catch output from subprocesses | Dmitry Vorotilin | 2012-11-01 | 1 | -11/+26 |
| | |||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -5/+6 |
| | |||||
* | Merge pull request #5996 from gazay/remove_excess_selfs | Jeremy Kemper | 2012-04-28 | 1 | -3/+4 |
|\ | | | | | Active Support housekeeping and polish | ||||
| * | String quotes and trailing spaces | Alexey Gaziev | 2012-04-29 | 1 | -3/+3 |
| | | |||||
| * | AS core_ext refactoring pt.2 | Alexey Gaziev | 2012-04-29 | 1 | -0/+1 |
| | | |||||
* | | and one more time | Aditya Sanghi | 2012-04-24 | 1 | -2/+2 |
| | | |||||
* | | another attempt at the language | Aditya Sanghi | 2012-04-18 | 1 | -1/+1 |
| | | |||||
* | | review changes for #5875 | Aditya Sanghi | 2012-04-18 | 1 | -1/+1 |
| | | |||||
* | | stamp out ruby-debug19 with extreme prejudice :) | Aditya Sanghi | 2012-04-17 | 1 | -2/+2 |
|/ | |||||
* | rename ruby-debug to ruby-debug19 | Vishnu Atrai | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | remove Kernel#singleton_class from core_ext as it is present in ruby 1.9 | lest | 2011-12-21 | 1 | -7/+0 |
| | |||||
* | Remove trailing white-spaces | Guillermo Iguaran | 2011-06-05 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -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 Martinez | 2011-05-23 | 2 | -3/+3 |
| | | |||||
* | | Removed the AS core_ext/kernel/debugger breakpoint method as this method is ↵ | Josh Kalderimis | 2011-05-23 | 1 | -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 Kalderimis | 2011-05-23 | 1 | -26/+0 |
|/ | |||||
* | new reporting method Kernel#quietly | Xavier Noria | 2011-05-13 | 1 | -1/+13 |
| | |||||
* | Move capture to Kernel. [#5641 state:resolved] | Krekoten' Marjan | 2010-09-18 | 1 | -0/+19 |
| | |||||
* | Config is deprecated on 1.8.8 and 1.9.3 use RbConfig | Santiago Pastorino | 2010-08-23 | 1 | -1/+1 |
| | |||||
* | Removes unused vars | Santiago Pastorino | 2010-07-24 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | You need the ruby-debug available in your Gemfile for debugger to work | David Heinemeier Hansson | 2010-06-02 | 1 | -1/+1 |
| | |||||
* | Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved] | Anil Wadghule | 2010-04-26 | 1 | -1/+2 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |