ennova/postmarkdown — pull request #10 by lilibethdlc (2012-12-18 10:14:57+00:00)
Title: Adding time to generated post file name.

Posts are now be generated with a UTC time included in their filename to allow for correct time identification and also proper sorting when multiple posts exist on the same day.

The generator can be run as follows:

``` bash
rails g postmarkdown:post new-post # will generate the file app/posts/{year}-{month}-{day}-{hour}{minute}{second}-new-post.markdown
rails g postmarkdown:post new-post --date=2012-12-18 # will generate the file app/posts/2012-12-18-000000-new-post.markdown
rails g postmarkdown:post new-post --date=2012-12-18-203231 # will generate the file app/posts/2012-12-18-203231-new-post.markdown
```

Also, I had to include some additional dependencies to be able to test the `PostGenerator`.

Generated posts with a filename of `{year}-{month}-{day}-name.markdown` (from previous postmarkdown versions) are equivalent to `{year}-{month}-{day}-000000-name.markdown`