Skip to content

Commit 38aed3e

Browse files
committed
0.3.1
1 parent 34a86c5 commit 38aed3e

File tree

4 files changed

+30
-29
lines changed

4 files changed

+30
-29
lines changed

HISTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# History
22

3+
* v0.3.1 May 11, 2013
4+
* Added compatibility with Zepto
35
* v0.3.0 May 11, 2013
46
* Added options to display or hide icons
57
* Displayed the number of issues

dist/jquery.github.js

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Github - v0.3.0
2+
* jQuery Github - v0.3.1
33
* A jQuery plugin to display your Github Repositories.
44
* https://github.com/zenorocha/jquery-github/
55
*
@@ -137,27 +137,26 @@
137137
pushed_at = self.parsePushedDate( repo.pushed_at ),
138138
repo_url = self.parseRepositoryURL( repo.url );
139139

140-
return $( $.parseHTML(" \
141-
<div class='github-box'> \
142-
<div class='github-box-header'> \
143-
<h3> \
144-
<a href='" + repo_url + "'>" + repo.name + "</a> \
145-
</h3> \
146-
<div class='github-stats'> \
147-
<a class='repo-stars' title='Stars' data-icon='7' href='" + repo_url + "/watchers'>" + repo.watchers + "</a> \
148-
<a class='repo-forks' title='Forks' data-icon='f' href='" + repo_url + "/network'>" + repo.forks + "</a> \
149-
<a class='repo-issues' title='Issues' data-icon='i' href='" + repo_url + "/issues'>" + repo.open_issues + "</a> \
150-
</div> \
151-
</div> \
152-
<div class='github-box-content'> \
153-
<p>" + repo.description + " &mdash; <a href='" + repo_url + "#readme'>Read More</a></p> \
154-
</div> \
155-
<div class='github-box-download'> \
156-
<p class='repo-update'>Latest commit to <strong>master</strong> on " + pushed_at + "</p> \
157-
<a class='repo-download' title='Download as zip' data-icon='w' href='" + repo_url + "/zipball/master'></a> \
158-
</div> \
159-
</div> \
160-
") );
140+
return $(
141+
"<div class='github-box'>" +
142+
"<div class='github-box-header'>" +
143+
"<h3>" +
144+
"<a href='" + repo_url + "'>" + repo.name + "</a>" +
145+
"</h3>" +
146+
"<div class='github-stats'>" +
147+
"<a class='repo-stars' title='Stars' data-icon='7' href='" + repo_url + "/watchers'>" + repo.watchers + "</a>" +
148+
"<a class='repo-forks' title='Forks' data-icon='f' href='" + repo_url + "/network'>" + repo.forks + "</a>" +
149+
"<a class='repo-issues' title='Issues' data-icon='i' href='" + repo_url + "/issues'>" + repo.open_issues + "</a>" +
150+
"</div>" +
151+
"</div>" +
152+
"<div class='github-box-content'>" +
153+
"<p>" + repo.description + " &mdash; <a href='" + repo_url + "#readme'>Read More</a></p>" +
154+
"</div>" +
155+
"<div class='github-box-download'>" +
156+
"<p class='repo-update'>Latest commit to <strong>master</strong> on " + pushed_at + "</p>" +
157+
"<a class='repo-download' title='Download as zip' data-icon='w' href='" + repo_url + "/zipball/master'></a>" +
158+
"</div>" +
159+
"</div>");
161160
};
162161

163162
// Request repositories from Github
@@ -181,12 +180,12 @@
181180
});
182181
};
183182

184-
$.fn[ pluginName ] = function ( options ) {
183+
$.fn[pluginName] = function ( options ) {
185184
return this.each(function () {
186-
if ( !$.data( this, "plugin_" + pluginName ) ) {
187-
$.data( this, "plugin_" + pluginName, new Plugin( this, options ) );
185+
if ( !$( this ).data( "plugin_" + pluginName ) ) {
186+
$( this ).data( "plugin_" + pluginName, new Plugin( this, options ) );
188187
}
189188
});
190189
};
191190

192-
}( jQuery, window ) );
191+
}( window.jQuery || window.Zepto, window ));

dist/jquery.github.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A jQuery plugin to display your Github Repositories.",
55
"author": "Zeno Rocha",
66
"homepage": "https://github.com/zenorocha/jquery-github/",
7-
"version": "0.3.0",
7+
"version": "0.3.1",
88
"devDependencies": {
99
"grunt": "~0.4.1",
1010
"grunt-cli": "~0.1.7",

0 commit comments

Comments
 (0)