Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CF10 fixes - now it works in CF9

  • Loading branch information...
commit 94f9e01c3ea57f1fa553fa25984f427154c3867e 1 parent 0c20e56
@cfjedimaster authored
View
3  handlers/Application.cfc
@@ -1,6 +1,6 @@
component {
- this.name = "gistextensionv2";
+ this.name = "gistextensionv3";
public boolean function onApplicationStart() {
application.gistService = new cfcs.gistservice();
@@ -8,7 +8,6 @@ component {
}
public boolean function onRequestStart(string req) {
- setting showdebugoutput="false";
//Keeping this around for quick testing...
//structDelete(application,"githubdata");onApplicationStart();
return true;
View
4 handlers/cfcs/gistservice.cfc
@@ -12,9 +12,9 @@ component accessors="true" {
http.setPassword(this.password);
http.setMethod("post");
- var input = {"public":"true", "files":
+ var input = {"public"="true", "files"=
{
- "#filename#":{"content":contents}
+ "#filename#"={"content"=contents}
}
};
View
1  handlers/createGist.cfm
@@ -1,3 +1,4 @@
+<cfsetting showdebugoutput="false">
<cfset helper = new cfcs.builderHelper(ideeventinfo)>
<cfset runType = helper.getRunType()>
View
1  handlers/getinfo.cfm
@@ -1,3 +1,4 @@
+<cfsetting showdebugoutput="false">
<cfset showForm = true>
<cfif structKeyExists(form, "username") and structKeyExists(form, "password")>
<!--- First, validate --->
View
1  handlers/result.cfm
@@ -1,3 +1,4 @@
+<cfsetting showdebugoutput="false">
<!DOCTYPE html>
<html>
<head>
View
5 readme.md
@@ -19,4 +19,7 @@ the Import option.
## Updates
-Based on a suggest by Andy Matthews, the extension now returns the embed url in a nice little box you can quickly cut and paste.
+5/30/2012: Scott Stroz found that gistservice.cfc was using CF10 syntax for implicit structs. I figured I might as well remove
+the other CF10 thing too. So this will now fully work in CF9+
+
+5/29/2012: Based on a suggest by Andy Matthews, the extension now returns the embed url in a nice little box you can quickly cut and paste.
Please sign in to comment.
Something went wrong with that request. Please try again.