Skip to content

Instantly share code, notes, and snippets.

View heftig's full-sized avatar
🦄
Horsing around

Jan Alexander Steffens heftig

🦄
Horsing around
View GitHub Profile
# Always wanted to chain comparisons the snaky way?
#
# puts 'Right there!' if 5 < x <= 15
#
# There you go.
class FalseClass
['<', '>', '<=', '>='].each do |op|
eval "def #{op}(other) false end"
end
commit f1b805f1fcbc84784253f823ec1266f4c664f331
Author: Jan Steffens <jan@silver.(none)>
Date: Fri Feb 5 05:06:31 2010 +0100
Make compatible with Ruby 1.9.1 reduced unit/test implementation
diff --git a/koans/edgecase.rb b/koans/edgecase.rb
index acb032b..2aedde7 100644
--- a/koans/edgecase.rb
+++ b/koans/edgecase.rb
Traceback (most recent call last):
File "deluge/ui/gtkui/connectionmanager.py", line 172, in show
response = self.connection_manager.run()
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 120, in wrapper
return real_cb(real_s, condition)
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 283, in callback
self.simulate() # fire Twisted timers
File "/usr/lib/python2.6/site-packages/twisted/internet/gtk2reactor.py", line 293, in simulate
self.runUntilCurrent()
--- <exception caught here> ---
This is a feature request for better VCS support.
E.g., for Mercurial:
vcs=('vim:hg:http://vim.googlecode.com/hg/vim') # array of 'dest:vcs:source'
rev_vim=1290
This would checkout revision 1290 of
http://vim.googlecode.com/hg/vim into $srcdir/vim:
We couldn’t find that file to show.
--- /var/abs/extra/vim/PKGBUILD 2010-05-16 06:07:08.000000000 +0200
+++ PKGBUILD 2010-05-16 19:15:17.968270553 +0200
@@ -20,6 +20,7 @@
__hgroot='http://vim.googlecode.com/hg/'
__hgrepo='vim'
+__hgbranch='default'
_versiondir="vim${_srcver//./}"
--- /var/abs/extra/vim/PKGBUILD 2010-05-16 06:07:08.000000000 +0200
+++ PKGBUILD 2010-05-16 19:41:50.082325134 +0200
@@ -5,7 +5,7 @@
pkgbase=vim
pkgname=(vim gvim vim-runtime)
_srcver=7.2
-__hgrev=2150
+__hgrev=2171
pkgver=${_srcver}.${__hgrev}
pkgrel=1
--- /var/abs/extra/vim/PKGBUILD 2010-05-16 06:07:08.000000000 +0200
+++ PKGBUILD 2010-05-16 22:31:54.481261805 +0200
@@ -4,9 +4,8 @@
pkgbase=vim
pkgname=(vim gvim vim-runtime)
-_srcver=7.2
-__hgrev=2150
-pkgver=${_srcver}.${__hgrev}
+pkgver=7.2
We couldn’t find that file to show.