-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
coverage | ||
rdoc | ||
pkg | ||
rerun.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--color | ||
--format documentation |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
# Based on: http://rvm.beginrescueend.com/workflow/rvmrc/ | ||
|
||
ruby_string="ruby-1.9.3-p0" | ||
gemset_name="practice_game_of_life" | ||
|
||
if rvm list strings | grep -q "${ruby_string}" ; then | ||
|
||
# Load or create the specified environment | ||
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | ||
&& -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then | ||
\. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" | ||
else | ||
rvm --create "${ruby_string}@${gemset_name}" | ||
fi | ||
|
||
( | ||
# Ensure that Bundler is installed, install it if it is not. | ||
if ! command -v bundle ; then | ||
gem install bundler | ||
fi | ||
|
||
# Bundle while redcing excess noise. | ||
bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d' | ||
)& | ||
|
||
else | ||
|
||
# Notify the user to install the desired interpreter before proceeding. | ||
echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory." | ||
|
||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
source 'http://rubygems.org' | ||
gem 'cucumber' | ||
gem 'rspec' | ||
source :rubygems | ||
gem 'rake' | ||
gem 'jeweler' | ||
gem 'rdoc' | ||
gem 'rcov' | ||
|
||
gem 'rspec' | ||
gem 'cucumber' | ||
gem 'guard-rspec' | ||
# gem 'rb-fsevent' | ||
# gem 'growl_notify' | ||
|
||
# gem 'watchr' | ||
gem 'guard-cucumber' | ||
gem 'growl_notify' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
guard 'rspec', version: 2 do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec/" } | ||
end | ||
|
||
guard 'cucumber', cli: '--profile guard' do | ||
watch(%r{^features/.+\.feature$}) | ||
watch(%r{^features/support/.+$}) { 'features' } | ||
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
wip: --tags @wip:3 --wip features | ||
guard: --tags @wip --format progress --wip features |
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
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