Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | assert_enqueued_jobs with queue option | Michael Elfassy | 2017-01-18 | 1 | -0/+21 |
| | |||||
* | `self.` is not needed when calling its own instance method | Akira Matsuda | 2017-01-05 | 2 | -2/+2 |
| | | | | Actually, private methods cannot be called with `self.`, so it's not just redundant, it's a bad habit in Ruby | ||||
* | "Use assert_nil if expecting nil. This will fail in minitest 6." | Akira Matsuda | 2016-12-25 | 2 | -3/+3 |
| | |||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 2 | -2/+2 |
| | |||||
* | Uses queue adapter_method instead of ActiveJob::Base.queue_adapter | Gabi Stefanini | 2016-10-24 | 1 | -2/+2 |
| | | | | Change ActiveJob::Base.queue_adapter to use queue_adapter method to make test code consistent. | ||||
* | Removed deprecated support to passing the adapter class to .queue_adapter | Rafael Mendonça França | 2016-10-10 | 1 | -13/+0 |
| | |||||
* | use `descendants` to get class that inherited `ActiveJob::Base` | yuuji.yaginuma | 2016-09-05 | 1 | -0/+7 |
| | | | | | | `subclasses` get only child classes. Therefore, if create a job common parent class as `ApplicationJob`, inherited class does not get properly. | ||||
* | fixes remaining RuboCop issues [Vipul A M, Xavier Noria] | Xavier Noria | 2016-09-01 | 1 | -1/+1 |
| | |||||
* | Yield the job instance so you have access to things like `job.arguments` on ↵ | David Heinemeier Hansson | 2016-08-16 | 1 | -2/+2 |
| | | | | the custom logic after retries fail | ||||
* | code gardening: removes redundant selfs | Xavier Noria | 2016-08-08 | 1 | -1/+1 |
| | | | | | | | | | A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required. | ||||
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -2/+0 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -15/+15 |
| | |||||
* | modernizes hash syntax in activejob | Xavier Noria | 2016-08-06 | 1 | -1/+1 |
| | |||||
* | applies new string literal convention in activejob/test | Xavier Noria | 2016-08-06 | 14 | -182/+182 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Fix tests against ActiveSupport::Durations | David Heinemeier Hansson | 2016-08-02 | 1 | -28/+45 |
| | |||||
* | Please Rubocup | David Heinemeier Hansson | 2016-08-02 | 1 | -2/+2 |
| | |||||
* | Not needed | David Heinemeier Hansson | 2016-08-01 | 1 | -1/+0 |
| | |||||
* | Allow for custom handling of exceptions that persist beyond the retry attempts | David Heinemeier Hansson | 2016-08-01 | 1 | -0/+5 |
| | |||||
* | Add exponentially_longer and custom wait algorithms | David Heinemeier Hansson | 2016-08-01 | 1 | -0/+39 |
| | |||||
* | Use descriptive exception names | David Heinemeier Hansson | 2016-08-01 | 1 | -14/+14 |
| | |||||
* | Reraise instead of swallow exceptions that occur beyond the retry attempts | David Heinemeier Hansson | 2016-07-29 | 1 | -1/+1 |
| | |||||
* | Satisfy pedantic rubocop whitespace detection | David Heinemeier Hansson | 2016-07-29 | 1 | -4/+4 |
| | |||||
* | Add retry_on/discard_on for better exception handling | David Heinemeier Hansson | 2016-07-29 | 1 | -0/+47 |
| | |||||
* | Fix AJ tests on ruby 2.4 being causes since classes are unified for Integer, ↵ | Vipul A M | 2016-07-09 | 1 | -1/+1 |
| | | | | and we create test name nased on arg class. Append ar as well to the test name | ||||
* | Fix jobs overriding AJ::Base#logger | Jean Boussier | 2016-06-17 | 1 | -1/+6 |
| | |||||
* | Provide the ability to override the queue adapter used by jobs under | Steve Lounsbury | 2016-06-11 | 1 | -0/+12 |
| | | | | | | | | | | | | | test. This PR adds a method called `queue_adapter_for_test` to `ActiveJob::TestHelper`. This method is expected to provide the queue adapter to be used for jobs under test. It maintains the current behaviour by defaulting to an instance of `ActiveJob::QueueAdapter::TestAdapter`. Tests that include `ActiveJob::TestHelper` or extend from `ActiveJob::TestCase` can provide a custom queue adapter by overriding `queue_adapter_for_test` in their class. | ||||
* | Added more tests for reserved hash keys of ActiveJob::Arguments. | Santosh Wadghule | 2016-03-17 | 1 | -6/+7 |
| | | | | | | - Added tests for checking all reserved hash keys of ActiveJob::Arguments. - Moved unrelated code from the test to the correct place, i.e. newly created test. | ||||
* | Add JSON round trip verification testcase | Mike Perham | 2016-03-09 | 1 | -1/+16 |
| | |||||
* | Job payload should be symmetric across JSON dump/load | Mike Perham | 2016-03-09 | 1 | -3/+3 |
| | | | Placing non-native JSON data types, like symbols, in the hash to serialize means that the deserialize method will return something different from what was serialized, a common bug and source of frustration for devs. | ||||
* | Active Job: smaller footprint for the dev/test async adapter | Jeremy Daer | 2016-02-29 | 1 | -42/+0 |
| | | | | | Use one shared worker pool for all queues with 0-#CPU workers rather than separate pools per queue with 2-10*#CPU workers each. | ||||
* | Added support for bigdecimals in perform later | Siva Gollapalli | 2015-12-03 | 1 | -1/+1 |
| | |||||
* | Added missing specs for not modifying queues when using AJ test helpers | Wojciech Wnętrzak | 2015-10-07 | 1 | -0/+21 |
| | |||||
* | Merge pull request #21854 from morgoth/fix-serializing-at-option-in-aj-matchers | Yves Senn | 2015-10-05 | 1 | -4/+22 |
|\ | | | | | | | Fixed serializing `:at` option for `assert_eqnueued_with` and `assert_performed_with` | ||||
| * | Fixed serializing `:at` option for `assert_enqueued_with` and ↵ | Wojciech Wnętrzak | 2015-10-03 | 1 | -4/+16 |
|/ | | | | `assert_performed_with` | ||||
* | Support passing array to `assert_enqueued_jobs` in `:only` option | Wojciech Wnętrzak | 2015-10-03 | 1 | -0/+18 |
| | |||||
* | Merge pull request #19425 from wvengen/feature/activejob-priority-master | Rafael Mendonça França | 2015-09-25 | 1 | -0/+47 |
|\ | | | | | Add job priorities to ActiveJob | ||||
| * | Add job priorities to ActiveJob | wvengen | 2015-09-17 | 1 | -0/+47 |
| | | |||||
* | | :hocho: Typos | Akira Matsuda | 2015-09-21 | 1 | -1/+1 |
|/ | |||||
* | Properly log nested parameters to Active Job | Marek Pieczyk | 2015-09-08 | 1 | -0/+8 |
| | | | | Refactor arguments logging method for Active Job | ||||
* | Initial implementation of ActiveJob AsyncAdapter. | Jerry D'Antonio | 2015-08-25 | 1 | -0/+42 |
| | |||||
* | Make assert_enqueued_with and assert_performed_with returns the matched job | Jean Boussier | 2015-08-10 | 1 | -0/+22 |
| | |||||
* | Add missing HelloJob require. | Kasper Timm Hansen | 2015-08-05 | 1 | -0/+1 |
| | | | | This way JobSerializationTest runs in isolation without errors. | ||||
* | Fixes #20799 | Johannes Opper | 2015-08-04 | 2 | -0/+36 |
| | | | | | | | | | | | | | | | | | | | | | | When `#perform_later` is called the locale isn't stored on the queue, which results in a locale reset when the job is performed. An example of the problem: I18n.locale = 'de' HelloJob.perform_now # german message, correct but I18n.locale = 'de' HelloJob.perform_later # english message, incorrect This PR attaches the current I18n.locale to every job during the serialization process. It is then restored during deserialization and used to perform the job with the correct locale. It falls back to the default locale if no serialized locale is found in order to provide backward compatibility with previously stored jobs. It is not necessary to clear the queue for the update. | ||||
* | Improve error message when serializing unsaved records for jobs | Faraz Yashar | 2015-06-28 | 1 | -0/+7 |
| | |||||
* | Fix spelling mistakes | Yoong Kang Lim | 2015-05-25 | 1 | -4/+4 |
| | |||||
* | Merge pull request #19969 from y-yagi/fix_job_helper_method | Yves Senn | 2015-05-01 | 1 | -0/+22 |
| | | | | match a expected value with message of `assert_equal` in AJ helper methods | ||||
* | `ActiveJob::Base#queue_adapter` is now a `class_attribute` | Tamir Duberstein | 2015-03-11 | 2 | -5/+46 |
| | | | | | | This allows different `queue_adapters` to be used in each `ActiveJob` class heirarchy. Previously, all subclasses used a single global queue adapter. | ||||
* | `ActiveJob::QueueAdapters::*` are no longer singletons | Tamir Duberstein | 2015-03-11 | 3 | -2/+26 |
| | |||||
* | Fix naming collision | Tamir Duberstein | 2015-03-11 | 1 | -1/+1 |
| | |||||
* | Fix leaky `only: …` option for Active Job assertions | Jeremy Kemper | 2015-03-06 | 1 | -0/+8 |
| | | | | | | | The filter was set on the pseudo-global TestAdapter but not restored to its original value. See e818f65770fe115ab1cc7fbacc0e7e94d92af6a4 |