Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

fix #1017 support for README.md at mojit level #1198

Merged
merged 4 commits into from Jul 22, 2013

Conversation

lzhan
Copy link
Contributor

@lzhan lzhan commented Jul 17, 2013

No description provided.

@@ -1824,6 +1824,10 @@ YUI.add('mojito-resource-store', function(Y, NAME) {
res;
dir = this._libs.path.resolve(this._config.root, dir);

if (!this._libs.fs.lstatSync(dir).isDirectory()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

how does this solves the issue? can you elaborate more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original implementation treats every thing under mojits dir as a mojit(dir), it tries to read files under the dir. When README.md file is put under mojits dir, parsing err is thrown. The fix check if it is dir, if it is not, just return, skip the loading process for mojit.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok

@caridy
Copy link
Contributor

caridy commented Jul 17, 2013

+1

TODO:

  • history entry
  • unit test

lzhan pushed a commit that referenced this pull request Jul 22, 2013
fix #1017 support for README.md at mojit level
@lzhan lzhan merged commit aba26fc into YahooArchive:develop Jul 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants