Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use a better version of Chronic, remove hack in Post model

  • Loading branch information...
commit ac3d3ad827a4c676e9ba46aea702c6317972e5da 1 parent ff8c752
@xaviershay authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  Gemfile
  2. +2 −2 Gemfile.lock
  3. +1 −1  app/models/post.rb
View
2  Gemfile
@@ -20,7 +20,7 @@ gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'RedCloth', :require => 'redcloth'
gem 'ruby-openid', :require => 'openid'
gem 'rack-openid', :require => 'rack/openid'
-gem 'chronic'
+gem 'aaronh-chronic', :require => 'chronic' # Fixes for 1.9.2
gem 'coderay'
gem 'lesstile'
gem 'formtastic'
View
4 Gemfile.lock
@@ -2,6 +2,7 @@ GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.3)
+ aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.1)
actionpack (= 3.0.1)
@@ -32,7 +33,6 @@ GEM
arel (1.0.1)
activesupport (~> 3.0.0)
builder (2.1.2)
- chronic (0.3.0)
coderay (0.9.5)
cucumber (0.9.4)
builder (~> 2.1.2)
@@ -115,7 +115,7 @@ PLATFORMS
DEPENDENCIES
RedCloth
- chronic
+ aaronh-chronic
coderay
cucumber-rails
factory_girl
View
2  app/models/post.rb
@@ -33,7 +33,7 @@ def published?
attr_accessor :published_at_natural
def published_at_natural
- @published_at_natural ||= published_at.send_with_default(:strftime, 'now', "%Y-%m-%d")
+ @published_at_natural ||= published_at.send_with_default(:strftime, 'now', "%Y-%m-%d %H:%M")
end
class << self
Please sign in to comment.
Something went wrong with that request. Please try again.