Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Jun 21, 2013
1 parent 34a86c5 commit 38aed3e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# History

* v0.3.1 May 11, 2013
* Added compatibility with Zepto
* v0.3.0 May 11, 2013
* Added options to display or hide icons
* Displayed the number of issues
Expand Down
51 changes: 25 additions & 26 deletions dist/jquery.github.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* jQuery Github - v0.3.0
* jQuery Github - v0.3.1
* A jQuery plugin to display your Github Repositories.
* https://github.com/zenorocha/jquery-github/
*
Expand Down Expand Up @@ -137,27 +137,26 @@
pushed_at = self.parsePushedDate( repo.pushed_at ),
repo_url = self.parseRepositoryURL( repo.url );

return $( $.parseHTML(" \
<div class='github-box'> \
<div class='github-box-header'> \
<h3> \
<a href='" + repo_url + "'>" + repo.name + "</a> \
</h3> \
<div class='github-stats'> \
<a class='repo-stars' title='Stars' data-icon='7' href='" + repo_url + "/watchers'>" + repo.watchers + "</a> \
<a class='repo-forks' title='Forks' data-icon='f' href='" + repo_url + "/network'>" + repo.forks + "</a> \
<a class='repo-issues' title='Issues' data-icon='i' href='" + repo_url + "/issues'>" + repo.open_issues + "</a> \
</div> \
</div> \
<div class='github-box-content'> \
<p>" + repo.description + " &mdash; <a href='" + repo_url + "#readme'>Read More</a></p> \
</div> \
<div class='github-box-download'> \
<p class='repo-update'>Latest commit to <strong>master</strong> on " + pushed_at + "</p> \
<a class='repo-download' title='Download as zip' data-icon='w' href='" + repo_url + "/zipball/master'></a> \
</div> \
</div> \
") );
return $(
"<div class='github-box'>" +
"<div class='github-box-header'>" +
"<h3>" +
"<a href='" + repo_url + "'>" + repo.name + "</a>" +
"</h3>" +
"<div class='github-stats'>" +
"<a class='repo-stars' title='Stars' data-icon='7' href='" + repo_url + "/watchers'>" + repo.watchers + "</a>" +
"<a class='repo-forks' title='Forks' data-icon='f' href='" + repo_url + "/network'>" + repo.forks + "</a>" +
"<a class='repo-issues' title='Issues' data-icon='i' href='" + repo_url + "/issues'>" + repo.open_issues + "</a>" +
"</div>" +
"</div>" +
"<div class='github-box-content'>" +
"<p>" + repo.description + " &mdash; <a href='" + repo_url + "#readme'>Read More</a></p>" +
"</div>" +
"<div class='github-box-download'>" +
"<p class='repo-update'>Latest commit to <strong>master</strong> on " + pushed_at + "</p>" +
"<a class='repo-download' title='Download as zip' data-icon='w' href='" + repo_url + "/zipball/master'></a>" +
"</div>" +
"</div>");
};

// Request repositories from Github
Expand All @@ -181,12 +180,12 @@
});
};

$.fn[ pluginName ] = function ( options ) {
$.fn[pluginName] = function ( options ) {
return this.each(function () {
if ( !$.data( this, "plugin_" + pluginName ) ) {
$.data( this, "plugin_" + pluginName, new Plugin( this, options ) );
if ( !$( this ).data( "plugin_" + pluginName ) ) {
$( this ).data( "plugin_" + pluginName, new Plugin( this, options ) );
}
});
};

}( jQuery, window ) );
}( window.jQuery || window.Zepto, window ));
4 changes: 2 additions & 2 deletions dist/jquery.github.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A jQuery plugin to display your Github Repositories.",
"author": "Zeno Rocha",
"homepage": "https://github.com/zenorocha/jquery-github/",
"version": "0.3.0",
"version": "0.3.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.7",
Expand Down

0 comments on commit 38aed3e

Please sign in to comment.