Latest changes

pull/2/head
Bodaniel Jeanes 2009-10-19 14:25:35 +10:00
parent a617ddd93c
commit 369541cc61
7 changed files with 68 additions and 62 deletions

View File

@ -2,11 +2,19 @@
command = ARGV.shift command = ARGV.shift
def run(cmd)
puts "Running #{cmd.inspect} instead"
system(cmd)
end
case command case command
when /^git(@|:\/\/).*\.git$/ when /^git(@|:\/\/).*\.git$/
system("git clone #{command.inspect}") run("git clone #{command.inspect}")
when /^(?:ftp|https?):\/\/.+\.t(?:ar\.)?gz$/ when /^(?:ftp|https?):\/\/.+\.t(?:ar\.)?gz$/
system("curl #{command.inspect} | tar xzv") run("curl #{command.inspect} | tar xzv")
when /^[a-z0-9_\-\/]+\.feature$/
run("cucumber #{command}")
else else
$stderr.puts "No default action defined in #{__FILE__.inspect}" $stderr.puts "No default action defined in #{__FILE__.inspect}"
abort
end end

View File

@ -26,7 +26,7 @@ for i in $cd_path_list
end end
end end
set -x EDITOR "mate -w" set -x EDITOR (echo (which mate) -w)
set -x VISUAL $EDITOR set -x VISUAL $EDITOR
set -x GIT_EDITOR "mate -wl1" # ensures cursor is at beginning of document set -x GIT_EDITOR "mate -wl1" # ensures cursor is at beginning of document

View File

@ -0,0 +1,4 @@
function et
m $argv
end

View File

@ -0,0 +1,4 @@
function gp
gps $argv
end

View File

@ -1,4 +1,5 @@
function sc --description 'Run the Rails console' function sc --description 'Run the Rails console'
script/console script/console $argv
end end

13
gemrc
View File

@ -1,12 +1,13 @@
--- ---
:benchmark: false
:verbose: true :verbose: true
:gem: --no-ri :update_sources: true
:rdoc: --inline-source --line-numbers --fmt=shtml --template=direct gem: --no-ri
:bulk_threshold: 1000 gemcutter_key: 36e2540f40da9e6e1737951140f1723c
:sources: :sources:
- http://gemcutter.org - http://gemcutter.org
- http://gems.rubyforge.org/ - http://gems.rubyforge.org/
- http://gems.github.com/ - http://gems.github.com/
:backtrace: false :backtrace: false
:benchmark: false :bulk_threshold: 1000
:update_sources: true rdoc: --inline-source --line-numbers --fmt=shtml --template=direct

View File

@ -1,56 +1,44 @@
.DS_Store
Thumbs.db
._*
build/*
pkg/*
.svn
*.pbxuser
*.move1v3
*~
log/*
tmp/**/*
# use glob syntax.
syntax: glob
*.ser
*.class
*~
*.bak *.bak
*.off *.class
*.old
.DS_Store
# logs
derby.log
# eclipse conf file
.settings
.classpath
.project
.manager
# building
target
build
null
tmp*
temp*
dist
test-output
# other scm
.svn
.CVS
.hg*
# switch to regexp syntax.
# syntax: regexp
# ^\.pc/
# IntelliJ
*.iml *.iml
*.ipr *.ipr
*.iws *.iws
*.mode1v3
# Rubymine *.mode2v3
.idea *.move1v3
*.off
*.old
*.out
*.pbxuser
*.perspective
*.perspectivev3
*.ser
*.swp
*.xcodeproj/*.tm_build_errors
*~
*~.nib
.classpath
.CVS
.DS_Store
.hg*
.idea
.manager
.project
.settings
.svn
._*
bin/*
build
build/*
derby.log
dist
log/*
null
pkg/*
profile
target
temp*
test-output
Thumbs.db
tmp*
tmp/**/*