Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |