Plugin / GitSwag

Description

Description

GitSwag displays data from a Github account using Github’s public API. In order to avoid
rate-limiting, it caches the JSON from the API locally, and refers to that whenever
available. You can display a user profile, list of repositories, header for a single
repository, preview files or gists.

Administration

In “GitSwag” under the settings tab, enter your github username, select the
“update cache” checkbox and submit to change your username. Files under that
username can be deleted by checking the box next to the file and submitting.

Any changes you make to your github repo won’t be reflected immediately by
the plugin, you’ll have to manually delete the cache first.

Composer Updating

This plugin includes http://getcomposer.org and an autoloader to implement
the http://parsedown.org/ library.

To save a bit of space, composer.phar isn’t included with this plugin.

Parsedown is [https://github.com/erusev/parsedown/blob/master/LICENSE.txt](MIT licensed)

Shortcode

Display the profile of a single user
[gitswag_user_view github_username=”username”]

Display a list of repos for a user
[gitswag_repo_list github_username=”username”]

View data for a repository
[gitswag_repo_view github_username=”username” github_repo=”reponame”]

Preview a file
[gitswag_file_view github_username=”username” github_repo=”reponame” path=”path/to/” filename=”file.txt”]

List gists by a user
[gitswag_gist_list github_username=”username”]

Preview a gist
[gitswag_gist_view gist_id=”id”]

display the readme for a repo
[gitswag_readme github_username=”username” github_repo=”reponame”]

Administration

Because the public github API is rate limited, this plugin will download and keep a cached
version of the .json files and readme markdown from API calls locally, and will need to be deleted
in the admin panel when a change needs to be reflected. You can select a file and submit to delete them.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.2

First Released

30 Dec, 2013

Total Downloads

518

Wordpress Version

3.2 or higher

Tested up to:

3.7.31

Require PHP Version:

-

Tags

There is no tag found

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.