This file contains hidden or 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 | |
# | |
# https://gist.github.com/brauliobo/5512890 | |
# Authors: Bráulio Bhavamitra <[email protected]> and Hugo Melo <[email protected]> | |
# License: GPLv3 | |
# | |
# A script to convert your source code`s calls to _() (gettext) to t() (ruby i18n). | |
# | |
# Convert text string to a key along with the file path. Example: | |
# Call _('Name') into source views/profile/index.index output into config/locales/en.yml: |
This file contains hidden or 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
namespace :spork do | |
SPORK_PORT = (ENV['SPORK_PORT'] || 8988).to_i | |
FRAMEWORKS = %w[testunit rspec cucumber] | |
desc "Start all Spork frameworks" | |
task 'start' => FRAMEWORKS.map{ |f| "spork:#{f}:start" } | |
desc "Stop all Spork frameworks" | |
task 'stop' => FRAMEWORKS.map{ |f| "spork:#{f}:stop" } |
NewerOlder