Yury Trofimenko

Results 7 issues of Yury Trofimenko

``` Invoice.where{(foo + 2) * 2 < 10} SELECT "invoices".* FROM "invoices" WHERE "invoices"."foo" + 2 * 2 < 10 ``` So I've got something completely different from what was...

How about making it a gem? There are forks that are already gemified, you could merge them in.

rack-mobile-detect project seems to be abandoned, and its useragent parsing seems to cover much less mobile devices than Mobile-Detect regexps. I could do a fork of rack-mobile-detect and add there...

At the moment `en-us.yml` contains this: ``` formats: default: ! '%m-%d-%Y' ``` But http://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States says this: "The most commonly used separator in the all-numeric form is the slash (/), although...

Pluralization rules for the Engilsh and many other languages are wrong. CLDR contains the right pluralization rules, and ruby-cldr gem gives them as ruby code. For example, for :en locales...

Let's try the usual case: ``` >> I18n.locale = :en :en >> "18 October 2013".to_date Fri, 18 Oct 2013 >> "18 october 2013".to_date Fri, 18 Oct 2013 >> "18 oct...

I think that for every locale this code should return true: ``` >> I18n.l(Date.new(2013,1,2), format: :long).to_date == Date.new(2013,1,2) ``` but it just gives an error even for :en locale ("January...