Skip to content

Instantly share code, notes, and snippets.

View rtyler's full-sized avatar

R. Tyler Croy rtyler

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<testsuite errors="36" failures="0" name="unittest_local_copy.TestSuite" tests="2091" time="21.875">
<testcase classname="SyntaxAndOutput.AssertDirective" name="test1" time="0.0259"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective" name="test2" time="0.0059"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective" name="test3" time="0.0061"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective_DiffBaseClass" name="test1" time="0.0059"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective_DiffBaseClass" name="test2" time="0.0063"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective_DiffBaseClass" name="test3" time="0.0063"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective_MacEOL" name="test1" time="0.0058"></testcase>
<testcase classname="SyntaxAndOutput.AssertDirective_MacEOL" name="test2" time="0.0058"></testcase>
...................................................................................................................................................................EE.EEE...EE.EEE...EE.EEE...EE.EEE................................................................................................................................................................................................................................................................EEE..EEE..EEE..EEE..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
...................................................................................................................................................................EE.EEE...EE.EEE...EE.EEE...EE.EEE................................................................................................................................................................................................................................................................EEE..EEE..EEE..EEE..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
#!/usr/bin/env ruby
# = USAGE
# gist < file.txt
# echo secret | gist -p # or --private
# gist 1234 > something.txt
#
# = INSTALL
# curl http://github.com/evaryont/gist/tree/master%2Fgist.rb?raw=true > gist &&
# chmod 755 gist &&
/usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- openid (LoadError)
from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib64/ruby/gems/1.8/gems/ramaze-2009.04/lib/ramaze/helper/identity.rb:4
from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib64/ruby/gems/1.8/gems/innate-2009.04/lib/innate/helper.rb:169:in `try_require'
from /usr/lib64/ruby/gems/1.8/gems/innate-2009.04/lib/innate/helper.rb:110:in `each'
from /usr/lib64/ruby/gems/1.8/gems/innate-2009.04/lib/innate/helper.rb:103:in `map'
from /usr/lib64/ruby/gems/1.8/gems/innate-2009.04/lib/innate/helper.rb:103:in `each'
from /usr/lib64/ruby/gems/1.8/gems/innate-2009.04/lib/innate/helper.rb:145:in `each_include'
commit ece695c5b24e728cf3a9a9eb62a1f61c90a5b31c
Author: R. Tyler Ballance <tyler@slide.com>
Date: Sat Apr 18 17:21:41 2009 -0700
Add support for specifying @staticmethod and @classmethod decorators on template methods
The classmethod and staticmethod keyword arguments will become the searchList as far as the
method body is concerned
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
diff --git a/CHANGES b/CHANGES
index 3007717..ab083a0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
+2.1.2 (May 5, 2009)
+ - 0000006: [Templates] Support @staticmethod and @classmethod (rtyler)
+
2.1.1 (April 16, 2009)
@rtyler
rtyler / gist:108321
Created May 7, 2009 20:06
Cheetah v2.1.1 - v2.1.2 source changes
diff --git a/src/Compiler.py b/src/Compiler.py
index 71eeeb9..be3b63f 100644
--- a/src/Compiler.py
+++ b/src/Compiler.py
@@ -853,7 +853,8 @@ class MethodCompiler(GenUtils):
return self.nextCacheID()
def startCallRegion(self, functionName, args, lineCol, regionTitle='CALL'):
- class CallDetails: pass
+ class CallDetails(object):
#
# Generated with the Python NameMapper
#
#!/usr/bin/env python
##################################################
## DEPENDENCIES
def respond(self, trans=None):
## CHEETAH: main method generated for this template
if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
trans = self.transaction # is None unless self.awake() was called
if not trans:
trans = DummyTransaction()
_dummyTrans = True