Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New gems #32

Closed
wants to merge 4 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 21, 2012
Commits on Sep 4, 2012
  1. @kurtisnelson

    Setup foreman by default

    kurtisnelson authored
  2. @kurtisnelson

    Setup zonebie

    kurtisnelson authored
  3. @kurtisnelson
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 5 deletions.
  1. +1 −0  Procfile
  2. +9 −4 lib/highgroove_command.rb
  3. +3 −1 lib/templates/README.md
View
1  Procfile
@@ -0,0 +1 @@
+web: bundle exec rails server thin -p $PORT
View
13 lib/highgroove_command.rb
@@ -19,12 +19,14 @@ def new(name)
gsub_file "Gemfile", /^ *$\n/, ''
append_to_file "Gemfile" do
<<-EOF
-gem 'slim'
+gem 'foreman'
+gem 'slim-rails'
group :test, :development do
gem 'rspec-rails'
gem 'factory_girl'
gem 'forgery'
gem 'heroku'
+ gem 'zonebie'
end
group :test do
gem 'capybara'
@@ -36,7 +38,8 @@ def new(name)
EOF
end
if options[:ruby] == 'rvm'
- run "rvm 1.9.3-p125 do rvm --rvmrc --create 1.9.3-p125@#{name}"
+ run "rvm install ruby-1.9.3-p194"
+ run "rvm 1.9.3-p194 do rvm --rvmrc --create 1.9.3-p194@#{name}"
end
rvm_run "gem install bundler"
rvm_run "bundle install --quiet"
@@ -59,6 +62,8 @@ def new(name)
config.after(:each) do
DatabaseCleaner.clean
end
+
+ config.order = "random"
EOF
end
append_to_file 'spec/spec_helper.rb', "\nCapybara.javascript_driver = :webkit\n"
@@ -66,7 +71,7 @@ def new(name)
<<-EOF
require 'simplecov'
SimpleCov.start
-
+Zonebie.set_random_timezone
EOF
end
append_to_file '.gitignore', "\ncoverage\n.rvmrc"
@@ -109,7 +114,7 @@ def self.source_root
def rvm_run(command, config = {})
if options[:ruby] == 'rvm'
- command = "rvm 1.9.3-p125@#{@name} do " + command
+ command = "rvm 1.9.3-p194@#{@name} do " + command
end
run command, config
end
View
4 lib/templates/README.md
@@ -19,7 +19,9 @@ bundle install
# Get the database ready
# ex: bundle exec rake db:create:all db:schema:load db:test:prepare
-# Start the app and other processes some how e.g. `bundle exec foreman start`
+# Start the app and other processes
+
+bundle exec foreman start
# setup other services like Solr, Redis, etc...
```
Something went wrong with that request. Please try again.