Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #19571 from kaspth/improve-runner-integration | Yves Senn | 2015-06-08 | 2 | -0/+64 |
|\ | | | | | | | Improve Test Runner's Minitest integration. | ||||
| * | Improve test runner's Minitest integration. | Kasper Timm Hansen | 2015-06-04 | 2 | -0/+64 |
| | | | | | | | | | | | | | | | | | | | | | | This also adds free mix and matching of directories, files and lines filters. Like so: bin/rails test models/post_test.rb test/integration models/person_test.rb:26 You can also mix in a traditional Minitest filter: bin/rails test test/integration -n /check_it_out/ | ||||
* | | A few documentation tweaks [ci skip] | Robin Dupret | 2015-06-07 | 3 | -5/+5 |
| | | | | | | | | [Robin Dupret & Shunsuke Aida] | ||||
* | | Merge pull request #20443 from teoljungberg/thoughtbot-capitalization | Kasper Timm Hansen | 2015-06-05 | 1 | -1/+1 |
|\ \ | | | | | | | [ci skip] Fix `thoughtbot` capitalization | ||||
| * | | Fix `thoughtbot` capitalization | Teo Ljungberg | 2015-06-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | The company name is spelled `thoughtbot` per https://github.com/thoughtbot/presskit/blob/master/README.md#name | ||||
* | | | Require active_support/duration. | Jimmy Cuadra | 2015-06-04 | 1 | -0/+1 |
| |/ |/| | | | | | | | | | | | | | ActiveSupport::TimeWithZone references `ActiveSupport::Duration` but does not require it, which can result in a `LoadError` when required directly without requiring a component less granular like `active_support/time`, where the autoload for `ActiveSupport::Duration` is set up. | ||||
* | | Merge pull request #20410 from schneems/schneems/boo-global-vars | Rafael Mendonça França | 2015-06-01 | 1 | -2/+2 |
|\ \ | | | | | | | Use block variable instead of global | ||||
| * | | Use block variable instead of global | schneems | 2015-06-01 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```ruby require 'benchmark/ips' Benchmark.ips do |x| x.report("$&") { "foo".sub(/f/) { $&.upcase } } x.report("block var") { "foo".sub(/f/) {|match| match.upcase } } end ``` ``` Calculating ------------------------------------- $& 48.658k i/100ms block var 49.666k i/100ms ------------------------------------------------- $& 873.156k (± 9.3%) i/s - 4.331M block var 969.744k (± 9.2%) i/s - 4.818M ``` It's faster, and gets rid of a few "magic" global variables | ||||
* | | | Merge pull request #20362 from kddeisz/enumerable_pluck | Rafael Mendonça França | 2015-06-01 | 1 | -2/+9 |
|\ \ \ | | | | | | | | | Allow Enumerable#pluck to take a splat. | ||||
| * | | | Allow Enumerable#pluck to take a splat. | Kevin Deisz | 2015-05-29 | 1 | -2/+9 |
| | |/ | |/| | | | | | | | | | | | | | This allows easier integration with ActiveRecord, such that AR#pluck will now use Enumerable#pluck if the relation is loaded, without needing to hit the database. | ||||
* | | | Merge pull request #20138 from tgxworld/deprecated_assert_template | Rafael Mendonça França | 2015-06-01 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Deprecate `assert_template` and `assigns()`. | ||||
| * | | | Remove `assigns` and `assert_template`. | Guo Xiang Tan | 2015-05-30 | 1 | -1/+1 |
| | |/ | |/| | |||||
* / | | Fix a range of values for parameters of the Time#change | Nikolay Kondratyev | 2015-06-01 | 1 | -1/+1 |
|/ / | | | | | | | | | Passing 999999000 < `:nsec` < 999999999 and 999999 < `:usec` < 1000000 to change a time with utc_offset doesn't throw an `ArgumentError`. | ||||
* / | Revert "Replace use of alias chains with prepend at core_ext/date and ↵ | Roque Pinel | 2015-05-29 | 5 | -79/+89 |
|/ | | | | core_ext/time" | ||||
* | Merge pull request #19878 from pabloh/replace_alias_chains_with_prepend | Rafael Mendonça França | 2015-05-28 | 5 | -89/+79 |
|\ | | | | | Replace use of alias chains with prepend at core_ext/date and core_ext/time | ||||
| * | Replace use of alias chains with prepend at core_ext/date | Pablo Herrero | 2015-05-04 | 5 | -89/+79 |
| | | |||||
* | | Add Enumerable#pluck. | Kevin Deisz | 2015-05-28 | 1 | -0/+8 |
| | | | | | | | | Allows fetching the same values from arrays as from ActiveRecord associations. | ||||
* | | Fix indentation warning on active_support ordered_options | Mehmet Emin İNAÇ | 2015-05-27 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #20297 from gouravtiwari/patch-9 | Claudio B. | 2015-05-26 | 1 | -0/+6 |
|\ \ | | | | | | | Added multibyte slice! example to doc [ci skip] | ||||
| * | | Added multibyte slice! example to doc [ci skip] | Gourav Tiwari | 2015-05-26 | 1 | -0/+6 |
| | | | |||||
* | | | Merge pull request #20208 from gaurish/raise_on_missing_ordered_options | Rafael Mendonça França | 2015-05-26 | 1 | -1/+7 |
|\ \ \ | | | | | | | | | | | | | Add bang version to OrderedOptions | ||||
| * | | | Add bang version to OrderedOptions | Gaurish Sharma | 2015-05-23 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | By: Aditya Sanghi(@asanghi) Gaurish Sharma(gaurish) | ||||
* | | | | Remove redundant 'like' from doc of slice! method [ci skip] | Mehmet Emin İNAÇ | 2015-05-26 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge pull request #16938 from akshay-vishnoi/remove-deprication | Yves Senn | 2015-05-26 | 2 | -46/+0 |
|\ \ \ \ | |_|/ / |/| | | | | | | | Remove `.superclass_delegating_accessor`. | ||||
| * | | | Remove `.superclass_delegating_accessor`. Refer #14271 | Akshay Vishnoi | 2015-05-24 | 2 | -46/+0 |
| |/ / | |||||
* | | | [skip ci] Update documentation for Duration#to_s | Anton Davydov | 2015-05-25 | 1 | -0/+4 |
| | | | |||||
* | | | Merge pull request #20286 from davydovanton/doc-deprecation-behavior | Abdelkader Boudih | 2015-05-25 | 1 | -0/+12 |
|\ \ \ | | | | | | | | | Add documentation for Deprecation::Behavior module | ||||
| * | | | [skip ci] Add documentation for Deprecation::Behavior module | Anton Davydov | 2015-05-25 | 1 | -0/+12 |
| | | | | |||||
* | | | | s/contstant/constant re #20282 [ci skip] | Zachary Scott | 2015-05-24 | 1 | -2/+2 |
| | | | | |||||
* | | | | Merge pull request #20282 from davydovanton/doc-proxy-wrappers | Zachary Scott | 2015-05-24 | 1 | -0/+5 |
|\ \ \ \ | | | | | | | | | | | Add documentation for DeprecatedConstantProxy#class | ||||
| * | | | | [skip ci] Add documentation for DeprecatedConstantProxy#class | Anton Davydov | 2015-05-24 | 1 | -0/+5 |
| |/ / / | |||||
* | / / | use keyword arguments in HTTP request methods of assert_difference example ↵ | yuuji.yaginuma | 2015-05-24 | 1 | -9/+9 |
| |/ / |/| | | | | | | | | [ci skip] | ||||
* | | | Merge pull request #20251 from davydovanton/doc-memory-store | Rafael Mendonça França | 2015-05-21 | 2 | -2/+2 |
|\ \ \ | | | | | | | | | Add nodoc label for protected Cache methods | ||||
| * | | | [skip ci] Add nodoc label for protected Cache methods | Anton Davydov | 2015-05-22 | 2 | -2/+2 |
| |/ / | |||||
* | | | Merge pull request #20250 from davydovanton/doc-mem-cache-store | Rafael Mendonça França | 2015-05-21 | 1 | -1/+8 |
|\ \ \ | | | | | | | | | Update documentation for MemCacheStore::build_mem_cache [ci skip] | ||||
| * | | | [skip ci] Update documentation for MemCacheStore::build_mem_cache | Anton Davydov | 2015-05-21 | 1 | -1/+8 |
| |/ / | |||||
* | | | Merge pull request #20247 from davydovanton/doc-array-inquirer | Abdelkader Boudih | 2015-05-21 | 1 | -4/+10 |
|\ \ \ | | | | | | | | | Update documentation for ArrayInquirer#any? | ||||
| * | | | [skip ci] Update documentation for ArrayInquirer#any? | Anton Davydov | 2015-05-21 | 1 | -4/+10 |
| |/ / | |||||
* / / | [skip ci] Update documentation for Date class | Anton Davydov | 2015-05-21 | 1 | -0/+6 |
|/ / | |||||
* | | Give respond_to? a Symbol | Akira Matsuda | 2015-05-20 | 1 | -1/+1 |
| | | |||||
* | | Small stylistic tweaks for `Delegator#try` patch | Godfrey Chan | 2015-05-19 | 1 | -5/+5 |
| | | | | | | | | | | | | * Rename `ActiveSupport::Try` => `ActiveSupport::Tryable` * Include the modules inline * `private` indentation | ||||
* | | Patch `Delegator` to work with `#try` | Nate Smith | 2015-05-19 | 1 | -17/+57 |
| | | | | | | | | | | | | | | | | | | | | | | | | `Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790 | ||||
* | | Only define #positive? and #negative? on Ruby 2.2 | Rafael Mendonça França | 2015-05-19 | 1 | -0/+7 |
| | | | | | | | | | | | | | | The feature was accepted and added to Ruby 2.3+ so we don't need to define it again. See https://bugs.ruby-lang.org/issues/11151 | ||||
* | | Merge pull request #20143 from vngrs/move_integer_positive_negative_to_numeric | Rafael Mendonça França | 2015-05-19 | 3 | -2/+2 |
|\ \ | | | | | | | | | | Move Integer#positive? and Integer#negative? query methods to Numeric | ||||
| * | | Move Integer#positive? and Integer#negative? query methods to Numeric class | Mehmet Emin İNAÇ | 2015-05-13 | 3 | -2/+2 |
| | | | | | | | | | | | | By this way Integer, Rational, Float, Fixnum, Bignum classes have the same behaviour | ||||
* | | | Fix grammar. [CI SKIP] | Guo Xiang Tan | 2015-05-19 | 1 | -1/+1 |
| | | | |||||
* | | | [ci skip] remove unnecessary mention to Test::Unit from docs | Roque Pinel | 2015-05-16 | 1 | -4/+4 |
|/ / | | | | | | | | | | | | | | | Fix the guide to state that Rails uses Minitest as the default test framework. Remove unnecessary mention to Test::Unit from the API docs ('constantize' and 'safe_constantize'). | ||||
* | | Minor comment fix. [ci skip] | Zoltan Kiss | 2015-05-13 | 1 | -4/+4 |
| | | |||||
* | | Add Integer#positive? and Integer#negative? query methods in the vein of ↵ | David Heinemeier Hansson | 2015-05-13 | 2 | -0/+20 |
| | | | | | | | | Fixnum#zero? | ||||
* | | Remove not used `options` argument from `ActiveSupport::JSON.decode` | Carlos Antonio da Silva | 2015-05-13 | 1 | -8/+2 |
| | | | | | | | | | | | | In Rails 4.0, json decoding relied on MultiJson. This changed from 4.1 forward since it reached its end of life, and this extra argument was kept for compatibility. We are safe to remove it now. |