This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Git commit-msg hook. If your branch name is in the form "US1234-postfix", or | |
# "US1234_postfix", it automatically adds the prefix "[US1234]" to commit | |
# messages. | |
# | |
# If you include "#noref" in the commit message, nothing will be added to the | |
# commit message, and the "#noref" itself will be stripped. | |
# | |
# Install: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class QueryTask extends AsyncTask<String, Void, String> { | |
String role = new String(); | |
@Override | |
protected String doInBackground(String... querySections) { | |
/* querySections: requestURL, requestQuery, role (index/data) */ | |
String data = "", requestQuery = new String(); | |
role = querySections[2]; | |
try { | |
requestQuery = URLEncoder.encode(querySections[1], "UTF-8"); |