- 16 6月, 2013 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 15 6月, 2013 1 次提交
-
-
由 Arun Agrawal 提交于
We need to return Regexp.escape(camel_cased_word) if the split is blank.
-
- 14 6月, 2013 1 次提交
-
-
由 Nikolay Shebanov 提交于
-
- 20 5月, 2013 1 次提交
-
- 19 5月, 2013 2 次提交
-
-
由 aditya-kapoor 提交于
- 16 5月, 2013 1 次提交
-
-
由 aditya-kapoor 提交于
-
- 10 5月, 2013 1 次提交
-
-
由 Waseem Ahmad 提交于
`active_support/inflections` already requires `active_support/inflector/inflections`. There's no need to require it in `active_support/inflector/methods`.
-
- 17 3月, 2013 1 次提交
-
-
由 Steve Klabnik 提交于
This reverts commit 867dc170, reversing changes made to 9a421aaa. This breaks anyone who's using ForceSSL: https://travis-ci.org/rails-api/rails-api/jobs/5556065 Please see comments on #8156 for some discussion.
-
- 16 3月, 2013 1 次提交
-
-
由 Fred Wu 提交于
Fixed a bug where the inflector would replace camelCase strings and disregarding specified acronyms, fixes #8015
-
- 06 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 05 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 15 9月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 31 7月, 2012 1 次提交
-
-
由 David Celis 提交于
The Inflector is currently not very supportive of internationalized websites. If a user wants to singularize and/or pluralize words based on any locale other than English, they must define each case in locale files. Rather than create large locale files with mappings between singular and plural words, why not allow the Inflector to accept a locale? This patch makes ActiveSupport::Inflector locale aware and uses `:en`` unless otherwise specified. Users will still be provided a list of English (:en) inflections, but they may additionally define inflection rules for other locales. Each list is kept separately and permanently. There is no reason to limit users to one list of inflections: ActiveSupport::Inflector.inflections(:es) do |inflect| inflect.plural(/$/, 's') inflect.plural(/([^aeéiou])$/i, '\1es') inflect.plural(/([aeiou]s)$/i, '\1') inflect.plural(/z$/i, 'ces') inflect.plural(/á([sn])$/i, 'a\1es') inflect.plural(/é([sn])$/i, 'e\1es') inflect.plural(/í([sn])$/i, 'i\1es') inflect.plural(/ó([sn])$/i, 'o\1es') inflect.plural(/ú([sn])$/i, 'u\1es') inflect.singular(/s$/, '') inflect.singular(/es$/, '') inflect.irregular('el', 'los') end 'ley'.pluralize(:es) # => "leyes" 'ley'.pluralize(:en) # => "leys" 'avión'.pluralize(:es) # => "aviones" 'avión'.pluralize(:en) # => "avións" A multilingual Inflector should be of use to anybody that is tasked with internationalizing their Rails application. Signed-off-by: NDavid Celis <david@davidcelis.com>
-
- 30 6月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
make sure the inflection rules are loaded when cherry-picking active_support/core_ext/string/inflections.rb [fixes #6884]
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 19 5月, 2012 4 次提交
-
-
由 kennyj 提交于
-
由 Andrew White 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 Marc-Andre Lafortune 提交于
-
- 14 5月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 29 4月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 08 4月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
The regexp used in titleize matches saxon genitive and other contractions, only to call capitalize on the captured text and have the apostrophe upcased which yields the apostrophe itself. It is more clear that the regexp matches just what it has to match.
-
- 03 4月, 2012 2 次提交
-
-
由 Jurriaan Pruis 提交于
-
由 Artyom Bolshakov 提交于
-
- 27 3月, 2012 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 29 2月, 2012 1 次提交
-
-
由 homa 提交于
-
- 13 2月, 2012 4 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The impact of this change has been measured pluralizing the entire /usr/share/dict/words, showing a 6x speedup
-
- 04 2月, 2012 1 次提交
-
-
由 Tim Gildea 提交于
-
- 31 1月, 2012 1 次提交
-
-
由 Semyon Perepelitsa 提交于
-
- 27 1月, 2012 2 次提交
-
-
由 Alex Tambellini 提交于
-
由 Aaron Patterson 提交于
-
- 25 1月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Use ActiveModel::Errors in inflection example docs as well. Also fixes wrong information and link to locale file related to Errors#full_messages in I18n guide.
-
- 29 12月, 2011 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 08 11月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 07 11月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-