Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename event variable | Alberto Almagro | 2018-10-21 | 1 | -4/+4 |
| | | | | | | | | | Improve variable naming by renaming from `e` to `event`. The arguments to rename this are: * The naming `e` is usually a convention used for exceptions. * No other method in this class uses the naming `e`. All other methods are using `event`. | ||||
* | Add `Style/RedundantFreeze` to remove redudant `.freeze` | Yasuo Honda | 2018-09-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | Since Rails 6.0 will support Ruby 2.4.1 or higher `# frozen_string_literal: true` magic comment is enough to make string object frozen. This magic comment is enabled by `Style/FrozenStringLiteralComment` cop. * Exclude these files not to auto correct false positive `Regexp#freeze` - 'actionpack/lib/action_dispatch/journey/router/utils.rb' - 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb' It has been fixed by https://github.com/rubocop-hq/rubocop/pull/6333 Once the newer version of RuboCop released and available at Code Climate these exclude entries should be removed. * Replace `String#freeze` with `String#-@` manually if explicit frozen string objects are required - 'actionpack/test/controller/test_case_test.rb' - 'activemodel/test/cases/type/string_test.rb' - 'activesupport/lib/active_support/core_ext/string/strip.rb' - 'activesupport/test/core_ext/string_ext_test.rb' - 'railties/test/generators/actions_test.rb' | ||||
* | Fix Rubocop offense | bogdanvlviv | 2018-07-26 | 1 | -1/+1 |
| | | | | | | | | | | ``` Offenses: activesupport/lib/active_support/subscriber.rb:91:17: C: Layout/SpaceAroundOperators: Operator = should be surrounded by a single space. event = event_stack.pop ``` | ||||
* | Add cpu_time, idle_time, and allocations to Event | Eileen Uchitelle | 2018-07-26 | 1 | -4/+3 |
| | | | | | | | | | | | | | | * Use process clock instead of Time.now This fixes any issues with the system clock changing and also eliminates 2 object allocations per event. * Add start! and finish! methods to the event object so we can record more information * Adds cpu time, idle time, and allocation count for a particular event. Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com> | ||||
* | Rails 6 requires Ruby 2.3+ | Jeremy Daer | 2018-02-17 | 1 | -14/+9 |
| | |||||
* | [Active Support] require_relative => require | Akira Matsuda | 2017-10-21 | 1 | -2/+2 |
| | | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc | ||||
* | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment` | Koichi ITO | 2017-07-11 | 1 | -0/+1 |
| | |||||
* | Use frozen-string-literal in ActiveSupport | Kir Shatrov | 2017-07-09 | 1 | -0/+1 |
| | |||||
* | [Active Support] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -2/+2 |
| | |||||
* | Privatize unneededly protected methods in Active Support | Akira Matsuda | 2016-12-24 | 1 | -1/+3 |
| | |||||
* | Describe what we are protecting | Akira Matsuda | 2016-12-23 | 1 | -0/+2 |
| | |||||
* | Missing require 'active_support/notifications' | Akira Matsuda | 2016-11-30 | 1 | -0/+1 |
| | |||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -1/+1 |
| | |||||
* | applies remaining conventions across the project | Xavier Noria | 2016-08-06 | 1 | -1/+0 |
| | |||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Merge pull request #19902 from khundawg/dm-active-support-subsciber-doc | Richard Schneeman | 2015-04-25 | 1 | -2/+2 |
|\ | | | | | [ci skip] Update ActiveSupport::Subscriber documentation | ||||
| * | [ci skip] Update ActiveSupport::Subscriber documentation | DAVID MOORE | 2015-04-25 | 1 | -2/+2 |
| | | |||||
* | | Update ActiveSupport::Subscriber docs | Scott Walkinshaw | 2015-03-24 | 1 | -7/+2 |
|/ | | | For consistency purposes with the changes done in https://github.com/rails/rails/pull/12285 | ||||
* | Reduce object allocations in ActiveSupport::Subscriber | eileencodes | 2015-02-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | Freezing the string literal reduces the number of objects allocated during integration test runs. AllocationTracer before: ``` [["/rack/lib/rack/utils.rb", 499, :T_STRING], [50939, 2737, 78553, 0, 13, 1783920]] [["/rails/activesupport/lib/active_support/subscriber.rb", 99, :T_STRING], [44959, 0, 42633, 0, 2, 1670800]] [["/rack/lib/rack/utils.rb", 662, :T_STRING], [32979, 0, 31263, 0, 1, 1226009]] [["/rack/lib/rack/body_proxy.rb", 34, :T_ARRAY], [29988, 0, 28438, 0, 1, 1114320]] [["/rails/activesupport/lib/active_support/callbacks.rb", 165, :T_DATA], [29968, 0, 28422, 0, 2, 3675936]] ``` AllocationTracer after: ``` [["/rack/lib/rack/utils.rb", 499, :T_STRING], [50983, 4080, 67269, 0, 12, 1815600]] [["/rack/lib/rack/utils.rb", 662, :T_STRING], [33001, 0, 28420, 0, 2, 1230809]] [["/rack/lib/rack/body_proxy.rb", 34, :T_ARRAY], [29990, 0, 25812, 0, 1, 1118000]] [["/rails/activesupport/lib/active_support/subscriber.rb", 99, :T_STRING], [29986, 0, 25803, 0, 1, 1117840]] [["/rails/activesupport/lib/active_support/notifications/instrumenter.rb", 52, :T_HASH], [29984, 28, 26133, 0, 11, 4953280]] | ||||
* | Merge pull request #15037 from ↵ | Rafael Mendonça França | 2014-05-16 | 1 | -1/+10 |
|\ | | | | | | | | | | | | | | | | | roccoblues/fix_duplicate_activesupport_subscribers Fixed duplicate subscribers in ActiveSupport::Subscriber Conflicts: activesupport/CHANGELOG.md | ||||
| * | Fixed duplicate subscribers in ActiveSupport::Subscriber | Dennis Schoen | 2014-05-09 | 1 | -1/+10 |
|/ | | | | | ActiveSupport::Subscriber no longer creates multiple subscribers when you redefine a method. | ||||
* | Stop using method missing for singleton delegation. | Aaron Patterson | 2013-11-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This saved about 46 array allocations per request on an extremely simple application. The delegation happened in the notification subsystem which is a hotspot, so this should result in even more savings with larger apps. Squashed commit of the following: commit 41eef0d1479526f7de25fd4391d98e61c126d9f5 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:32:31 2013 -0800 speed up notifications commit 586b4a18656f66fb2c518fb8e8fee66a016e8ae6 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:31:05 2013 -0800 speed up runtime registry methods commit b67d074cb4314df9a88438f785868cef77e583d7 Author: Aaron Patterson <aaron.patterson@gmail.com> Date: Wed Nov 6 16:28:12 2013 -0800 change method name and make it public | ||||
* | Allow attaching to AS::Notifications namespace up front | Daniel Schierbeck | 2013-09-20 | 1 | -2/+25 |
| | | | | | | | | Before, you were required to attach *after* adding the methods to the class, since the attachment process needed the methods to be present. With this change, any new method will also be attached to the configured namespace. | ||||
* | Created a registry based on the +PerThreadRegistry+ module for | wangjohn | 2013-04-22 | 1 | -2/+20 |
| | | | | subscriber queues. Helps limit the number of thread locals. | ||||
* | Copy-edits in the ActiveSupport::Subscriber documentation. | Rafael Mendonça França | 2013-04-16 | 1 | -6/+5 |
| | | | | | | Thank you @fxn :green_heart::yellow_heart::heart::purple_heart::blue_heart: [ci skip] | ||||
* | Extract a base class from ActiveSupport::LogSubscriber | Daniel Schierbeck | 2013-04-16 | 1 | -0/+76 |
Adds a ActiveSupport::Subscriber base class that LogSubscriber inherits from. By inheriting from Subscriber, other kinds of subscribers can take advantage of the event attachment system. |