{"id":26984,"date":"2013-12-30T05:13:05","date_gmt":"2013-12-30T05:13:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gitswag\/"},"modified":"2014-06-13T14:25:15","modified_gmt":"2014-06-13T14:25:15","slug":"gitswag","status":"publish","type":"plugin","link":"https:\/\/en-za.wordpress.org\/plugins\/gitswag\/","author":12626264,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"3.7.41","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"GitSwag","header_author":"Kenneth Rapp <kennethrapp1@gmail.com>","header_description":"","assets_banners_color":"","last_updated":"2014-06-13 14:25:15","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=92XWZSS88YF9C","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1272,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1":"<p>Fixed header issue.<\/p>","1.0":"<p>No upgrade.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"830006","resolution":"1","location":"assets","width":1280,"height":800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"830006","resolution":"2","location":"assets","width":643,"height":443},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"830006","resolution":"3","location":"assets","width":460,"height":382}},"screenshots":{"1":"user profile","2":"repo file view","3":"repo list view"}},"plugin_section":[],"plugin_tags":[1673],"plugin_category":[],"plugin_contributors":[87794],"plugin_business_model":[],"class_list":["post-26984","plugin","type-plugin","status-publish","hentry","plugin_tags-github","plugin_contributors-kennethrapp","plugin_committers-kennethrapp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gitswag.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gitswag\/assets\/screenshot-1.png?rev=830006","caption":"user profile"},{"src":"https:\/\/ps.w.org\/gitswag\/assets\/screenshot-2.png?rev=830006","caption":"repo file view"},{"src":"https:\/\/ps.w.org\/gitswag\/assets\/screenshot-3.png?rev=830006","caption":"repo list view"}],"raw_content":"<!--section=description-->\n<p>GitSwag displays data from a Github account using Github's public API. In order to avoid\nrate-limiting, it caches the JSON from the API locally, and refers to that whenever\navailable. You can display a user profile, list of repositories, header for a single\nrepository, preview files or gists.<\/p>\n\n<h3>Administration<\/h3>\n\n<p>In \"GitSwag\" under the settings tab, enter your github username, select the\n\"update cache\" checkbox and submit to change your username. Files under that\nusername can be deleted by checking the box next to the file and submitting.<\/p>\n\n<p>Any changes you make to your github repo won't be reflected immediately by\nthe plugin, you'll have to manually delete the cache first.<\/p>\n\n<h3>Composer Updating<\/h3>\n\n<p>This plugin includes <a href=\"Composer\">http:\/\/getcomposer.org<\/a> and an autoloader to implement\nthe <a href=\"Parsedown\">http:\/\/parsedown.org\/<\/a> library.<\/p>\n\n<p>To save a bit of space, composer.phar isn't included with this plugin.<\/p>\n\n<p>Parsedown is [https:\/\/github.com\/erusev\/parsedown\/blob\/master\/LICENSE.txt](MIT licensed)<\/p>\n\n<h3>Shortcode<\/h3>\n\n<p>Display the profile of a single user\n[gitswag_user_view github_username=\"username\"]<\/p>\n\n<p>Display a list of repos for a user\n[gitswag_repo_list github_username=\"username\"]<\/p>\n\n<p>View data for a repository\n[gitswag_repo_view github_username=\"username\" github_repo=\"reponame\"]<\/p>\n\n<p>Preview a file\n[gitswag_file_view github_username=\"username\" github_repo=\"reponame\" path=\"path\/to\/\" filename=\"file.txt\"]<\/p>\n\n<p>List gists by a user\n[gitswag_gist_list github_username=\"username\"]<\/p>\n\n<p>Preview a gist\n[gitswag_gist_view gist_id=\"id\"]<\/p>\n\n<p>display the readme for a repo\n[gitswag_readme github_username=\"username\" github_repo=\"reponame\"]<\/p>\n\n<h3>Administration<\/h3>\n\n<p>Because the public github API is rate limited, this plugin will download and keep a cached\nversion of the .json files and readme markdown from API calls locally, and will need to be deleted \nin the admin panel when a change needs to be reflected. You can select a file and submit to delete them.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>plugin-name.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add some shortcodes.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I clone\/pull\/push\/whatever?<\/dt>\n<dd><p>..no. Nothing that requires authentication is supported.<\/p><\/dd>\n<dt>what's to stop me from getting the data from someone else's repo?<\/dt>\n<dd><p>..nothing. It's all public data anyway. Be nice.<\/p><\/dd>\n<dt>this is missing an api feature<\/dt>\n<dd><p>I'll probably get around to it at some point.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>1.2 added output buffering and changed echoes to returns, fixing possible rendering issues. updated css.\n1.1 bugfix<\/p>\n\n<p>1.0 works<\/p>","raw_excerpt":"Integrate various Github API-driven shortcodes into your pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26984"}],"author":[{"embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kennethrapp"}],"wp:attachment":[{"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26984"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26984"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26984"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26984"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26984"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-za.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}