This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Usage: githubify <gemspec_file> [username] | |
# Requires: github.name to be set for the current git project or [username] to be specified | |
# Result: creates/overwrites a file named <username>-<gemspec_file> and updates the s.name in there have the same project name format. | |
# | |
# Author: Wes Oldenbeuving | |
# E-mail: narnach@gmail.com | |
# License: MIT-LICENSE | |
class String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Works like :gem for rails, but sets source to github's gem repo. | |
# add to lib/github_gem.rb in your rails project. | |
module Rails | |
class Configuration | |
def github_gem(name, options = {}) | |
options[:source] = 'http://gems.github.com' | |
options[:lib] = name.sub(/[^-]+-/, '') unless options.has_key?(:lib) | |
self.gem(name, options) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rake tasks to install OpenTTD from their Subversion source. | |
# Note: this is used on a Macbook, so the configuration and installation are based on this. | |
def cmd(str) | |
puts str | |
system str | |
end | |
desc 'Configure sources for compilation' | |
task :configure do | |
cmd './configure --with-ccache --enable-strip --disable-universal --with-cocoa MAKEOPTS="-j5" CFLAGS="-pipe" CXXFLAGS="-pipe"' |
NewerOlder