{"pull_request":{"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/54e74983d81fa2fbe4c28e8392532f18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"54e74983d81fa2fbe4c28e8392532f18","url":"https://api.github.com/users/avakhov","login":"avakhov","id":92554},"merged_by":null,"deletions":14,"updated_at":"2011-11-05T18:09:33Z","commits":1,"base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","login":"rails","id":4223},"repo":{"name":"rails","pushed_at":"2011-11-05T17:30:08Z","master_branch":null,"fork":false,"clone_url":"https://github.com/rails/rails.git","open_issues":570,"updated_at":"2011-11-05T17:30:09Z","homepage":"http://rubyonrails.org","forks":2354,"private":false,"language":"Ruby","svn_url":"https://svn.github.com/rails/rails","url":"https://api.github.com/repos/rails/rails","owner":{"avatar_url":"https://secure.gravatar.com/avatar/30f39a09e233e8369dddf6feb4be0308?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","login":"rails","id":4223},"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","size":39440,"id":8514,"watchers":10883,"git_url":"git://github.com/rails/rails.git","created_at":"2008-04-11T02:19:47Z","ssh_url":"git@github.com:rails/rails.git"},"label":"rails:master","sha":"b33232f1b2c3f92c7116adc4b4879a8afc07e70c"},"comments":0,"diff_url":"https://github.com/rails/rails/pull/3531.diff","closed_at":null,"additions":25,"merged":false,"head":{"ref":"av-distance-of-time-in-words-2","user":{"avatar_url":"https://secure.gravatar.com/avatar/54e74983d81fa2fbe4c28e8392532f18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"54e74983d81fa2fbe4c28e8392532f18","url":"https://api.github.com/users/avakhov","login":"avakhov","id":92554},"repo":{"name":"rails","pushed_at":"2011-11-05T17:58:30Z","master_branch":null,"fork":true,"clone_url":"https://github.com/avakhov/rails.git","open_issues":0,"updated_at":"2011-11-05T17:58:30Z","homepage":"http://rubyonrails.org","forks":0,"private":false,"language":"Ruby","svn_url":"https://svn.github.com/avakhov/rails","url":"https://api.github.com/repos/avakhov/rails","owner":{"avatar_url":"https://secure.gravatar.com/avatar/54e74983d81fa2fbe4c28e8392532f18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"54e74983d81fa2fbe4c28e8392532f18","url":"https://api.github.com/users/avakhov","login":"avakhov","id":92554},"html_url":"https://github.com/avakhov/rails","description":"Ruby on Rails","size":136,"id":2390534,"watchers":1,"git_url":"git://github.com/avakhov/rails.git","created_at":"2011-09-15T05:36:20Z","ssh_url":"git@github.com:avakhov/rails.git"},"label":"avakhov:av-distance-of-time-in-words-2","sha":"9f99308ffd0c2195cd83ed29198d4bc7bd1f11a0"},"url":"https://api.github.com/repos/rails/rails/pulls/3531","merged_at":null,"body":"It differs from #3530 :)\r\n\r\nHere I fix side an effect after ae7d0d816db3f9a94008d36ab9efbe7583700981 also.\r\n\r\n<tt>distance_of_time_in_words</tt> accepts args as integer (seconds), Date, Time, DateTime or something that responds to <tt>:to_time</tt> method. If <tt>from_time</tt> and <tt>to_time</tt> are seconds for periods more than 1 year [date_helper.rb#L97](https://github.com/rails/rails/blob/ae7d0d816db3f9a94008d36ab9efbe7583700981/actionpack/lib/action_view/helpers/date_helper.rb#L97) is interpreted as [ActiveSupport year method](http://api.rubyonrails.org/classes/Integer.html#method-i-year). In this case creating Range object <tt>(fyear..tyear)</tt> failes.\r\n\r\nI did change nothing in [date_helper.rb#L97-110](https://github.com/rails/rails/blob/ae7d0d816db3f9a94008d36ab9efbe7583700981/actionpack/lib/action_view/helpers/date_helper.rb#L97-110) except indent.","html_url":"https://github.com/rails/rails/pull/3531","review_comments":0,"issue_url":"https://github.com/rails/rails/issues/3531","_links":{"comments":{"href":"https://api.github.com/repos/rails/rails/issues/3531/comments"},"html":{"href":"https://github.com/rails/rails/pull/3531"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/3531/comments"},"self":{"href":"https://api.github.com/repos/rails/rails/pulls/3531"}},"title":"distance_of_time_in_words should correct process time periods longer than 1 year defined in seconds","number":3531,"mergeable":null,"id":466859,"patch_url":"https://github.com/rails/rails/pull/3531.patch","changed_files":2,"created_at":"2011-11-05T18:09:33Z"},"action":"opened","number":3531}