Permalink
Browse files

zeus setup

  • Loading branch information...
1 parent 7abe657 commit 58633e5c8bb4339f9884ebd1a72400b91382f113 @roberto committed Nov 16, 2012
Showing with 29 additions and 16 deletions.
  1. +1 −6 Gemfile
  2. +3 −0 Gemfile.lock
  3. +4 −10 Guardfile
  4. +21 −0 zeus.json
View
7 Gemfile
@@ -1,14 +1,8 @@
source 'https://rubygems.org'
gem 'rails', '3.2.9'
-
-# Bundle edge Rails instead:
-# gem 'rails', :git => 'git://github.com/rails/rails.git'
-
gem 'pg'
-# Gems used only for assets and not required
-# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
@@ -31,6 +25,7 @@ group :test, :development do
gem 'sqlite3'
gem 'rspec-rails'
gem "guard-rspec"
+ gem 'zeus'
end
group :test do
View
3 Gemfile.lock
@@ -220,6 +220,8 @@ GEM
validates_email_format_of (1.5.3)
xpath (1.0.0)
nokogiri (~> 1.3)
+ zeus (0.12.0)
+ method_source (>= 0.6.7)
PLATFORMS
ruby
@@ -254,3 +256,4 @@ DEPENDENCIES
terminal-notifier-guard
uglifier (>= 1.0.3)
validates_email_format_of
+ zeus
View
14 Guardfile
@@ -4,7 +4,9 @@
interactor :off
notification :terminal_notifier, app_name: "Lentlist"
-guard 'rspec', :version => 2 do
+guard 'rspec', zeus: true, bundler: false,
+ all_after_pass: false, keep_failed: true,
+ notification: true do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
@@ -13,17 +15,9 @@ guard 'rspec', :version => 2 do
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
- watch(%r{^spec/factories\.rb$}) { "spec" }
+ watch(%r{^spec/factories\.rb$}) { "spec/models" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
-
- # Capybara request specs
- watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
-
- # Turnip features and steps
- watch(%r{^spec/acceptance/(.+)\.feature$})
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end
guard 'pow' do
View
21 zeus.json
@@ -0,0 +1,21 @@
+{
+ "command": "ruby -rubygems -rzeus/rails -eZeus.go",
+
+ "plan": {
+ "boot": {
+ "default_bundle": {
+ "development_environment": {
+ "prerake": {"rake": []},
+ "runner": ["r"],
+ "console": ["c"],
+ "server": ["s"],
+ "generate": ["g"],
+ "dbconsole": []
+ },
+ "test_environment": {
+ "test_helper": {"test": ["rspec"]}
+ }
+ }
+ }
+ }
+}

0 comments on commit 58633e5

Please sign in to comment.