Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super sexy rewrite #22

Merged
merged 15 commits into from
Jul 20, 2014
Merged

Super sexy rewrite #22

merged 15 commits into from
Jul 20, 2014

Conversation

parkr
Copy link
Contributor

@parkr parkr commented Jul 16, 2014

Create a custom class that can be used by either the tag or the attribute!

@gjtorikian
Copy link
Owner

oh you !

class LastModifiedAtGenerator << Generator

def generate(site)
%w(posts pages docs_to_write).each do |type|
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is docs_to_write ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gjtorikian
Copy link
Owner

Does this also resolve the --watch issue, or should I test for the locally?

@gjtorikian
Copy link
Owner

Also should I close your #20 ?

@gjtorikian
Copy link
Owner

This looks beyond great. Ready to merge if you're happy with it.

@parkr
Copy link
Contributor Author

parkr commented Jul 19, 2014

@gjtorikian Have a bunch more tests to write – I'll ping you when I'm done 😄

@parkr
Copy link
Contributor Author

parkr commented Jul 20, 2014

@gjtorikian Done! Ready4u.

before(:each) { site.process }

it "understands happiness" do
expect(File.read(subject)).to match(/19\-Jul\-14/)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing the test to fail on Travis. Maybe it should be set to Time.now and transformed with %e-%m-%y?

@parkr
Copy link
Contributor Author

parkr commented Jul 20, 2014

OH YES

@gjtorikian
Copy link
Owner

Pretty sure I understand about 45% of this so I'll just mergit

gjtorikian added a commit that referenced this pull request Jul 20, 2014
@gjtorikian gjtorikian merged commit b0bd532 into gjtorikian:master Jul 20, 2014
@parkr parkr mentioned this pull request Jul 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants