Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make bang version work with `InheritableOptions` | yuuji.yaginuma | 2017-09-23 | 1 | -1/+1 |
| | | | | | | | | Currently, bang version does not work with `InheritableOptions`. `InheritableOptions` treats the argument Hash as the default value. However, `Hash#fetch` does not use the default value when key is not found, so can not get the default value. So in bang version, should use `Hash#[]` instead of `Hash#fetch`. | ||||
* | Fix error message documentation | Manoj M J | 2017-09-20 | 1 | -2/+2 |
| | |||||
* | [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 | -1/+1 |
| | |||||
* | Add more rubocop rules about whitespaces | Rafael Mendonça França | 2016-10-29 | 1 | -2/+2 |
| | |||||
* | applies new string literal convention in activesupport/lib | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Fix missing requires for object/blank | Rafael Mendonça França | 2016-06-13 | 1 | -0/+2 |
| | |||||
* | Improved `KeyError` messages on bang version, since commit ↵ | amitkumarsuroliya | 2015-10-11 | 1 | -1/+1 |
| | | | | https://github.com/rails/rails/commit/e768c519fb6015e00961702a5165c6dab548a954 bang version produces `KeyError` [ci skip] | ||||
* | Add to RDoc of OrderedOptions the bang info | Mauro George | 2015-07-06 | 1 | -0/+8 |
| | | | | [ci skip] | ||||
* | Fix indentation warning on active_support ordered_options | Mehmet Emin İNAÇ | 2015-05-27 | 1 | -1/+1 |
| | |||||
* | 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) | ||||
* | Fixed grammar error in ordered_options documention. | Dustin Lam | 2013-08-17 | 1 | -1/+1 |
| | |||||
* | added docs for InheritedOptions class [ci skip] | Anton Kalyaev | 2013-05-11 | 1 | -0/+8 |
| | |||||
* | update AS docs [ci skip] | Francesco Rodriguez | 2012-09-17 | 1 | -2/+2 |
| | |||||
* | fix AS::OrderedOptions documentation [ci skip] | Francesco Rodriguez | 2012-09-17 | 1 | -16/+15 |
| | |||||
* | Use respond_to_missing? for OrderedOptions | Marc-Andre Lafortune | 2012-05-05 | 1 | -1/+1 |
| | |||||
* | ordered_options will work if inherited from Hash, remove OrderedHash usage | Vishnu Atrai | 2012-02-21 | 1 | -3/+1 |
| | |||||
* | Replace regexp matching with a simple string manipulation. | Semyon Perepelitsa | 2012-01-21 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using regexp looks like overkill here and is also 2x slower. user system total real string 0.020000 0.000000 0.020000 ( 0.016256) regexp 0.030000 0.000000 0.030000 ( 0.035360) require "benchmark" names = ("a".."z").map { |c| c + "a" * rand(5..10) + "=" * rand(0..1) }.map(&:to_sym) puts names n = 1000 Benchmark.bmbm do |x| x.report "string" do n.times do names.each do |name| string_name = name.to_s string_name.chomp!('=') string_name end end end x.report "regexp" do n.times do names.each do |name| name.to_s =~ /(.*)=$/ $1 end end end end | ||||
* | OrderedOptions must implement respond_to? if it implements method_missing. | Chris Eppstein | 2011-06-27 | 1 | -0/+4 |
| | |||||
* | Fix incorrect example. | Ben Orenstein | 2011-03-05 | 1 | -2/+2 |
| | |||||
* | Remove redundant to_sym call. | Ben Orenstein | 2011-02-28 | 1 | -1/+1 |
| | | | | | | [#6483 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Try to use Hash's native #[] for speed. | thedarkone | 2010-09-27 | 1 | -1/+7 |
| | |||||
* | Make InheritableOptions's constructor more flexible. | thedarkone | 2010-09-27 | 1 | -2/+6 |
| | |||||
* | Compile ActionController::Base.config's methods to avoid method_missing ↵ | thedarkone | 2010-09-27 | 1 | -0/+4 |
| | | | | overhead. | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -3/+3 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | commit review: say clearly that AS::OrderedHash is about insertion order, be ↵ | Xavier Noria | 2010-08-06 | 1 | -4/+4 |
| | | | | more neutral in wording, do not imply lack of ordering is a problem | ||||
* | adding documentation for OrderedHash and OrderedOptions | Neeraj Singh | 2010-08-06 | 1 | -0/+16 |
| | |||||
* | Move InheritableOptions into ActiveSupport | Carlhuda | 2010-03-03 | 1 | -0/+6 |
| | |||||
* | Explicit dependency on OrderedHash | Jeremy Kemper | 2009-03-28 | 1 | -1/+3 |
| | |||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -12/+14 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Create a seperate file for ActiveSupport::OrderedHash. | Joshua Peek | 2008-05-14 | 1 | -44/+0 |
| | |||||
* | Added OrderedHash#delete [#113 state:resolved] | Sean Ouimet | 2008-05-05 | 1 | -0/+6 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Add OrderedHash#to_hash. Closes #11266 [josh] | Michael Koziarski | 2008-03-03 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Hash is ordered in Ruby 1.9 | Jeremy Kemper | 2007-10-09 | 1 | -17/+22 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use Array#assoc in ActiveSupport::OrderedHash. | Jeremy Kemper | 2006-08-25 | 1 | -8/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add OrderedHash#values | Sam Stephenson | 2006-06-02 | 1 | -1/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | fix test warnings | Jeremy Kemper | 2006-05-31 | 1 | -22/+24 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Namespaced OrderedHash so the Rails implementation does not clash with any ↵ | Rick Olson | 2006-04-30 | 1 | -2/+3 |
| | | | | | | others. (fixes #4911) [Julian Tarkhanov] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added calculations: Base.count, Base.average, Base.sum, Base.minimum, ↵ | David Heinemeier Hansson | 2006-02-25 | 1 | -11/+23 |
| | | | | | | Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Dont include unnecessary active support classes in docs | David Heinemeier Hansson | 2005-10-16 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added method access to OrdredOptions | David Heinemeier Hansson | 2005-09-30 | 1 | -0/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added OrderedOptions array/hash for use with initializer | David Heinemeier Hansson | 2005-09-30 | 1 | -0/+23 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |