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
def run(cmd)
puts "Running #{cmd.inspect} instead"
system(cmd)
end
case command
when /^git(@|:\/\/).*\.git$/
system("git clone #{command.inspect}")
run("git clone #{command.inspect}")
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
$stderr.puts "No default action defined in #{__FILE__.inspect}"
abort
end

View File

@ -26,7 +26,7 @@ for i in $cd_path_list
end
end
set -x EDITOR "mate -w"
set -x EDITOR (echo (which mate) -w)
set -x VISUAL $EDITOR
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'
script/console
script/console $argv
end

11
gemrc
View File

@ -1,12 +1,13 @@
---
:benchmark: false
:verbose: true
:gem: --no-ri
:rdoc: --inline-source --line-numbers --fmt=shtml --template=direct
:bulk_threshold: 1000
:update_sources: true
gem: --no-ri
gemcutter_key: 36e2540f40da9e6e1737951140f1723c
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com/
:backtrace: false
:benchmark: false
:update_sources: true
:bulk_threshold: 1000
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
*.off
*.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
*.class
*.iml
*.ipr
*.iws
# Rubymine
*.mode1v3
*.mode2v3
*.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/**/*