Giter VIP home page Giter VIP logo

suspenders's Introduction

Suspenders

CI

Suspenders is a Rails Engine containing generators for configuring Rails applications with these features.

It is used by thoughtbot to get a jump start on a new or existing app. Use Suspenders if you're in a rush to build something amazing; don't use it if you like missing deadlines.

Suspenders boy

Requirements

  • Rails ~> 7.0
  • Ruby >= 3.1
  • Node >= 20.0.0

Usage

Suspenders can be used to create a new Rails application, or to enhance an existing Rails application.

With New Rails Applications

This approach uses an application template to generate a new Rails application with Suspenders.

We skip the default test framework in favor of RSpec, and prefer PostgreSQL as our database.

rails new app_name \
 --skip-test \
 -d=postgresql \
 -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb

Then run bin/setup within the newly generated application.

Alternatively, if you're using our dotfiles, then you can just run rails new app_name, or create your own railsrc file with the following configuration:

--skip-test
--database=postgresql
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb

With Existing Rails Applications

Suspenders can be used on an existing Rails application by adding it to the :development and :test group.

group :development, :test do
  gem "suspenders"
end

Once installed, you can invoke the web installation generator, which will invoke all generators.

bin/rails g suspenders:install:web

Or, you can invoke generators individually. To see a list of available generators run:

bin/rails g | grep suspenders

To learn more about a generator, run:

bin/rails g suspenders:[generator_name] --help

Available Tasks

Suspenders ships with several custom Rake tasks.

bin/rails suspenders:rake
bin/rails suspenders:db:migrate
bin/rails suspenders:cleanup:organize_gemfile

Contributing

See the CONTRIBUTING document. Thank you, contributors!

License

Suspenders is Copyright (c) thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

This repo is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software! See our other projects. We are available for hire.

suspenders's People

Contributors

alexgodin avatar andyw8 avatar calebhearth avatar composerinteralia avatar crackofdusk avatar croaky avatar delphaber avatar derekprior avatar dorianmariecom avatar gabebw avatar geoffharcourt avatar georgebrock avatar jessieay avatar jferris avatar jsilasbailey avatar kylefiedler avatar lpender avatar mcmire avatar mike-burns avatar mjankowski avatar pedrosmmoreira avatar seanpdoyle avatar stefannibrasil avatar stevepolitodesign avatar thiagoa avatar toobulkeh avatar tute avatar tysongach avatar ventsislaf avatar zamith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

suspenders's Issues

Rails 3 Gemfile (for suspenders --pre) is full of Rails 2 gems

The Gemfile for the Rails 3 version of suspenders asks for these gems:
mysql (not mysql2)
linecache-0.43 (not linecache19)
ruby-debug (not ruby-debug19)

Shouldn't these be changed? I can't create a single new project because suspenders looks for the old versions (which aren't compatible with rails 3 or ruby 1.9.2). I tried changing them myself by editing the suspenders gem manually, but apparently I don't know enough to do that right. Hope somebody picks this up or explains what I'm missing. Thanks.

Use cucumber-rails 1.1.1

The new opinion out there is no web_steps.rb, paths.rb, and selectors.rb. Getting on that train requires upgrading Clearance in Suspenders.

SSL problem on Windows

Having trouble using gem on Windows.
This is the output I get:

    C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 
    errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
    ::SSL::SSLError)
    from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
    from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
    from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
    from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect'
    from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
    from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start'
    from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1168:in `request'
    from D:/Temp/githttps.rb:10:in `download_file'
    from D:/Temp/githttps.rb:14:in `<main>'

Tracked the problem to SSL @suspenders.rb on line78 (download_file "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "public/javascripts/rails.js"). The problem is with the download_file function.

If I add this to the function:
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri_string =~ /^https/
then all works fine. Below is the short code I used to test this...

From what I've found on web, this is windows issue so I guess it has nothing to do with you guys :-) (e.g. http://stackoverflow.com/questions/2791722/why-am-i-getting-an-opensslsslsslerror-only-on-windows) Unfortunately, I can't use the gem on windows, would it be OK to apply this patch or do you have any other suggestion I might try?

Thanks :-)
Vanja

    require 'net/http'
    require 'net/https'

    def download_file( uri_string, destination )
      uri = URI.parse(uri_string)
      http = Net::HTTP.new(uri.host, uri.port)
      http.use_ssl = true if uri_string =~ /^https/
      http.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri_string =~ /^https/
      request = Net::HTTP::Get.new(uri.path)
      contents = http.request(request).body
      File.open(destination, "w") { |file| file.write(contents) }
    end

download_file "https://github.com/rails/jquery-ujs/raw/master/src/rails.js", "rails.js"

Fix for Origin URL

Running the example listed in the README produces this error:

/Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/lib/trout/managed_file.rb:117:in run_or_fail': Command failed with status 32768: (RuntimeError) git clone git://github.com/thoughtbot/suspenders-gem.git /tmp/git fatal: The remote end hung up unexpectedly Cloning into /tmp/git... from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/lib/trout/managed_file.rb:44:inclone_repository'
from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/lib/trout/managed_file.rb:15:in checkout' from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/lib/trout/cli.rb:27:inrun'
from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/lib/trout/cli.rb:8:in run' from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/gems/trout-0.3/bin/trout:4 from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/bin/trout:19:inload'
from /Users/joe/.rvm/gems/ree-1.8.7-2010.02@suspenders_test/bin/trout:19
run bundle install from "."

This patch fixes the problem:

diff --git template/suspenders.rb template/suspenders.rb
index a695643..b320ce8 100644
--- template/suspenders.rb
+++ template/suspenders.rb
@@ -39,7 +39,7 @@ def download_file(uri_string, destination)
end

def origin

  • "git://github.com/thoughtbot/suspenders-gem.git"
  • "git://github.com/thoughtbot/suspenders.git"
    end

def trout(destination_path)

Jammit

A few people have mentioned putting Jammit in Suspenders. Adam Conrad has offered to create a patch so I'm creating this issue for him to track it's progress.

Adam,

We almost certainly won't apply the patch without using Jammit on some projects of our own first, but I believe some people at thoughtbot have started messing with it. If you want to create a patch, we'd love to have it. Just be aware it might linger for a few weeks (or even months) while we use it on real-world apps and decide whether it's worth going into Suspenders.

Ruby-mysql gem compatibility?

Hello,

The mysql gem doesn't work for me, but instead ruby-mysql indeed works properly (running on Snow Leopard).
The suspenders created app starts after I edit the gemfile to refer to ruby-mysql, but I don't know how to re-start the database populating scripts (or which ones should I run).

I receive an error right after: create spec/factories/clearance.rb, and therefore the db/ files don't get created properly.
/Users/macish/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.3/lib/active_record/connection_adapters/mysql_adapter.rb:30:in mysql_connection': undefined methodinit' for Mysql:Class (NoMethodError)

DB/schema is pretty much empty, and there are no migrations under db/migrate.

Do I need to fork the gem to be able to get this going using the ruby-mysql ?

Any advice is welcomed.

Vote to remove Redcloth

Getting the error in the title when running rake on Suspenders or when generating a Suspenders app.

I'm on ruby-1.9.2-p136 (the latest stable Ruby).

Errors

The template [/Users/nelsonkeating/.rvm/gems/ruby-1.9.2-p180/gems/suspenders-0.2.3/template/suspenders.rb] could not be loaded. Error: No such file or directory - /Users/nelsonkeating/Desktop/idoit/nelly/spec/spec_helper.rb

I also get 4 of these "Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile."
that apear after generaterspec:install
Generate: cucumber:install
generate:clearance:install
generate:clearance:features

3 errors using Suspenders

I am trying to use Suspenders.
However I am getting some errors.
I am getting them both locally on my own box and remotely at site5 ISP so there's probably common themes.
I am on Ubuntu 10.04.

Specifically:

  1. The mysql (which I use extensively) prompts for password always fail. I think in both cases the root account can't login so how to I specify a different (i.e.myself) user for the mysql piece, i.e. is there a parameter or something I should edit?

  2. generator_clearance & generator_clearance _features. Not sure if related to above but in both places I get:
    create lib/tasks/cucumber.rake
    gsub config/database.yml
    gsub config/database.yml
    force config/database.yml
    generate clearance
    Could not find generator clearance.
    generate clearance_features
    Could not find generator clearance_features.
    create public/stylesheets/sass/screen.scss

  3. Then I get:
    create features/step_definitions/factory_girl_steps.rb
    insert features/support/env.rb
    /home/rormdcom/ruby/gems/gems/suspenders-0.2.2/template/suspenders.rb:22:in `replace_in_file': /require .capybara_javascript_emulation./ not found in features/support/env.rb (RuntimeError)

Thanks, Michael.

--postgres flag

I'd like to be able to create a Suspenders app with the pg gem in the Gemfile and a config/database.yml like:

development: &default
  adapter: postgresql
  username: postgres
  password: postgres
  min_messages: warning
  database: health_development
  host: localhost
  encoding: utf8

test: &test
  <<: *default
  database: health_test

This will work well on apps targeted for deployment on Heroku.

Problem running create, failed to build capybara-webkit

Hi,

I was trying to create my first suspenders project, and after running suspenders create I got the following errors.
I'm running rvm, ruby 1.9.2 p180.

Installing capybara-webkit (0.4.1) with native extensions /Users/jason/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

    /Users/jason/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb 

Gem files will remain installed in /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/capybara-webkit-0.4.1 for inspection.
Results logged to /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/capybara-webkit-0.4.1/./gem_make.out
from /Users/jason/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in block in build_extensions' from /Users/jason/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:ineach'
from /Users/jason/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in build_extensions' from /Users/jason/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:ininstall'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/source.rb:101:in block in install' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/rubygems_integration.rb:279:inpreserve_paths'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/source.rb:91:in install' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/installer.rb:58:inblock (2 levels) in run'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/rubygems_integration.rb:93:in with_build_args' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/installer.rb:57:inblock in run'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/spec_set.rb:12:in block in each' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/spec_set.rb:12:ineach'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/spec_set.rb:12:in each' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/installer.rb:49:inrun'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/installer.rb:8:in install' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/cli.rb:222:ininstall'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/vendor/thor/task.rb:22:in run' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/vendor/thor/invocation.rb:118:ininvoke_task'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/vendor/thor.rb:246:in dispatch' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/lib/bundler/vendor/thor/base.rb:389:instart'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.14/bin/bundle:13:in <top (required)>' from /Users/jason/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:inload'
from /Users/jason/.rvm/gems/ruby-1.9.2-p180/bin/bundle:19:in `

'
Let's use jQuery
generate jquery:install
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
Pulling in some common javascripts
run trout checkout --source-root=template/trout public/javascripts/prefilled_input.js git://github.com/thoughtbot/suspenders.git from "."
Checked out public/javascripts/prefilled_input.js from git://github.com/thoughtbot/suspenders.git.
Documentation
create doc/README_FOR_SUSPENDERS
Get ready for bundler... (this will take a while)
Let's use MySQL
force config/database.yml
rake db:create
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
Setting up plugins
insert config/application.rb
insert config/environments/development.rb
insert config/environments/test.rb
insert config/environments/staging.rb
insert config/environments/production.rb
generate rspec:install
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
generate cucumber:install
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
generate clearance:install
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
generate clearance:features
Could not find gem 'thin (>= 0)' in any of the gem sources listed in your Gemfile.
create public/stylesheets/sass/screen.scss
create public/stylesheets/screen.css
create features/step_definitions/factory_girl_steps.rb

thanks!
Jason

capybara_javascript_emulation not found in features/support/env.rb

I am testing out suspenders with ruby 1.9.2_p180 on Ubuntu 10.10 and after creating a new gemset in rvm and installing suspenders, I did a:

suspenders create twidder

This eventually resulted in the following error:

could not find generator clearance_features.
create public/stylesheets/sass/screen.scss
create public/stylesheets/screen.css
create features/step_definitions/factory_girl_steps.rb
insert features/support/env.rb
/home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/suspenders-0.2.2/template/suspenders.rb:22:in replace_in_file': /require .*capybara_javascript_emulation.*/ not found in features/support/env.rb (RuntimeError) from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/suspenders-0.2.2/template/suspenders.rb:129:inapply'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/actions.rb:217:in instance_eval' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/actions.rb:217:inapply'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/railties-3.0.5/lib/rails/generators/rails/app/app_generator.rb:300:in apply_rails_template' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/task.rb:22:inrun'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/invocation.rb:124:inblock in invoke_all'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/invocation.rb:124:in each' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/invocation.rb:124:inmap'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/invocation.rb:124:in invoke_all' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/group.rb:226:indispatch'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/thor-0.14.6/lib/thor/base.rb:389:in start' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/railties-3.0.5/lib/rails/commands/application.rb:18:in<top (required)>'
from /home/christopher/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/christopher/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/railties-3.0.5/lib/rails/cli.rb:14:in <top (required)>' from /home/christopher/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /home/christopher/.rvm/rubies/ruby-1.9.2-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/gems/rails-3.0.5/bin/rails:4:in<top (required)>'
from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/bin/rails:19:in load' from /home/christopher/.rvm/gems/ruby-1.9.2-head@twiddr/bin/rails:19:in

'

Add guard

After adding spork, we likely want guard and guard-spork.

undefined method `debug_rjs=' for ActionView::Base:Class

Getting the above error on a fresh install of Suspenders and trying to create a new project. Looks like the following line was removed from Rails 3.1 but is still being added to Suspenders projects

In config/environments/development.rb

config.action_view.debug_rjs = true

Everything is saying version 3.1 so I'm unsure why an older development.rb is being created. This causes all of the generators to fail.

Add cucumber shared connections fix

Before('@javascript') do
  ActiveRecord::Base.shared_connection = nil
  ActiveRecord::Base.descendants.each do |model|
    model.shared_connection = nil
  end
end

"already initialized constant": rake version issues?

It looks like, with a fresh installation of suspenders in a fresh ruby 1.9.2, that rake generates errors whenever it attempts to run.

Here's my entire console session for trying to get setup with suspenders with a fresh rvm'd 1.9.2:

https://gist.github.com/1158275

The last few lines show the issue with rake, which seems be resolvable if you instead use

bundle exec rake -T

As I learned from this page: https://github.com/RailsApps/railsapps.github.com/wiki/installing-rails-3-1

Hope that's helpful!

Application layout files misuse asset tag helpers?

I'm not sure if my use of suspenders went the way it's supposed to, but I get asset tag helpers like this in my application layout files:
<%= stylesheet_link_tag :application, :media => 'all', :cache => true %>

which produces this error:
ActionView::Template::Error (wrong number of arguments (3 for 2)):
referring to:
actionpack (3.1.1) lib/sprockets/helpers/rails_helper.rb:122:in `compute_source_path'

According to this issue: rails/rails#3218 we are not supposed to use the cache option when using the asset pipeline?

Sorry if this is just me, but I thought I would bring it to your attention just in case.
Sean

Include clearance test matchers

In spec/support/clearance.rb, I'd like:

require 'clearance/testing'

We'll then have access to methods like:

sign_in
sign_in_as(user)
sign_out

And matchers like:

deny_access

Example:

context "a visitor" do
  before { get :show }
  it     { should deny_access }
end

context "a user" do
  before do
    sign_in
    get :show
  end

  it { should respond_with(:success) }
end

Running "suspenders create appname" causes error

The following error occurs:

  /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/generators/rails/app/app_generator.rb:360:in `defined_app_name': undefined method `underscore' for false:FalseClass (NoMethodError)
from (erb):5:in `template'
from (eval):1:in `template'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/suspenders-0.1.0.beta.6/template/suspenders.rb:64:in `apply'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/generators/rails/app/app_generator.rb:300:in `apply_rails_template'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/task.rb:22:in `send'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/task.rb:22:in `run'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/shell.rb:14:in `map'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/core_ext/ordered_hash.rb:75:in `each'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/invocation.rb:124:in `map'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/group.rb:226:in `dispatch'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/thor-0.14.4/lib/thor/base.rb:389:in `start'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/commands/application.rb:18
from /Users/smckinney/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/smckinney/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.3/lib/rails/cli.rb:14
from /Users/smckinney/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/smckinney/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/gems/rails-3.0.3/bin/rails:4
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/bin/rails:19:in `load'
from /Users/smckinney/.rvm/gems/ruby-1.8.7-p302/bin/rails:19

fail fast if trout isn't installed?

run    trout checkout --source-root=template/trout Gemfile git://github.com/thoughtbot/suspenders.git from "."
/Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem trout (>= 0) (Gem::LoadError)

Creating directory fails due to forward slashes in path on win32

Running 'mkdir 'c:/Data/projects/online/testproject''
The syntax of the command is incorrect.
c:/Ruby/lib/ruby/gems/1.8/gems/suspenders-0.0.3/lib/command.rb:8:in `run': Command mkdir 'c:/Data/projects/online/testproject' failed: 256 (RuntimeError)
        from c:/Ruby/lib/ruby/gems/1.8/gems/suspenders-0.0.3/lib/create.rb:24:in `create_project!'
        from c:/Ruby/lib/ruby/gems/1.8/gems/suspenders-0.0.3/lib/create.rb:15:in `run!'
        from c:/Ruby/lib/ruby/gems/1.8/gems/suspenders-0.0.3/bin/suspenders:15
        from c:/Ruby/bin/suspenders:19:in `load'
        from c:/Ruby/bin/suspenders:19

Temporary Solution

if RUBY_PLATFORM =~ /(win|w)32$/
  project_directory = @project_directory.gsub("/", "\\")
end

Add named elements

features/support/named_elements and features/step_definitions/named_elements

Allow SSL verification to be skipped

Some installs of Ruby don't accept Github's SSL certificate. Adding a --skip-verification flag would allow users to create projects in those environments. Currently, those installs die with OpenSSL::SSL::SSLError while trying to download files from Github. We can't just HTTP URLs for these, because Github redirects all non-HTTPS traffic.

suspenders create new_app failing with 0.2.5

  Let's use jQuery
    generate    jquery:install
/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/railtie/configuration.rb:77:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x7f3f25a751c8> (NoMethodError)
  from /home/cmeiklejohn/Repositories/new_app/config/application.rb:45
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15
  from script/rails:6:in `require'
  from script/rails:6
  Pulling in some common javascripts
         run    trout checkout --source-root=template/trout public/javascripts/prefilled_input.js git://github.com/thoughtbot/suspenders.git from "."
/home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1262:in `initialize': No such file or directory - public/javascripts/prefilled_input.js (Errno::ENOENT)
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1262:in `open'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1262:in `copy_file'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1261:in `open'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1261:in `copy_file'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:463:in `copy_file'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:383:in `cp'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
  from /home/cmeiklejohn/.rvm/rubies/ree-1.8.7-head/lib/ruby/1.8/fileutils.rb:382:in `cp'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/trout-0.3/lib/trout/managed_file.rb:49:in `copy_to_destination'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/trout-0.3/lib/trout/managed_file.rb:16:in `checkout'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/trout-0.3/lib/trout/cli.rb:27:in `run'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/trout-0.3/lib/trout/cli.rb:8:in `run'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/trout-0.3/bin/trout:4
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/bin/trout:19:in `load'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/bin/trout:19
  Documentation
      create    doc/README_FOR_SUSPENDERS
  Get ready for bundler... (this will take a while)
  Let's use MySQL
       force    config/database.yml
        rake    db:create
rake aborted!
undefined method `assets' for #<Rails::Application::Configuration:0x7f483d361e10>

(See full trace by running task with --trace)
  Setting up plugins
      insert    config/application.rb
      insert    config/environments/development.rb
      insert    config/environments/test.rb
      insert    config/environments/staging.rb
      insert    config/environments/production.rb
    generate    rspec:install
/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/railtie/configuration.rb:77:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x7f6d47585208> (NoMethodError)
  from /home/cmeiklejohn/Repositories/new_app/config/application.rb:48
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15
  from script/rails:6:in `require'
  from script/rails:6
    generate    cucumber:install
/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/railtie/configuration.rb:77:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x7fdfef22cc08> (NoMethodError)
  from /home/cmeiklejohn/Repositories/new_app/config/application.rb:48
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15
  from script/rails:6:in `require'
  from script/rails:6
    generate    clearance:install
/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/railtie/configuration.rb:77:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x7f13f1c3d208> (NoMethodError)
  from /home/cmeiklejohn/Repositories/new_app/config/application.rb:48
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15
  from script/rails:6:in `require'
  from script/rails:6
    generate    clearance:features
/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/railtie/configuration.rb:77:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x7f2f91c3b780> (NoMethodError)
  from /home/cmeiklejohn/Repositories/new_app/config/application.rb:48
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
  from /home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/railties-3.0.9/lib/rails/commands.rb:15
  from script/rails:6:in `require'
  from script/rails:6
      create    public/stylesheets/sass/screen.scss
      create    public/stylesheets/screen.css
      create    features/step_definitions/factory_girl_steps.rb
The template [/home/cmeiklejohn/.rvm/gems/ree-1.8.7-head/gems/suspenders-0.2.5/template/suspenders.rb] could not be loaded. Error: No such file or directory - /home/cmeiklejohn/Repositories/new_app/spec/spec_helper.rb

NoMethodError and undefined method for signed_in?

This is on Rails 3.1.1

NoMethodError in Clearance::sessions#new

Showing /Users/ethankap/Development/sandbox/susproj1/app/views/layouts/application.html.erb where line #11 raised:

undefined method `signed_in?' for #<#Class:0x007ff09521fda8:0x007ff0951f49a0>
Extracted source (around line #11):

8:
9:
10:


11: <% if signed_in? -%>
12: <%= link_to "Sign out", sign_out_path, :method => :delete %>
13: <% else -%>
14: <%= link_to "Sign in", sign_in_path %>
Rails.root: /Users/ethankap/Development/sandbox/susproj1

Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___3678385005418598601_70335636207640'
Request

Parameters:

None
Show session dump

Show env dump

Response

Headers:

None

OpenSSL::SSL::SSLError

Running Ruby 192 under cygwin when running
suspenders create testapp I get the following error:
SSLv3 read server certificate B: certificate verify failed > (OpenSSL::SSL::SSLError)

I could jump past it only after I edited suspenders-0.2.2/template/suspenders.rb, by adding the following line:
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
after http.use_ssl = true if uri_string =~ /^https/

Is there a problem with the SSL certificate, or it's a problem on my side only?

Mehigh

SSL Error

I'm getting this error when I run "suspenders create test_proj" just wondering if I'm doing something wrong or what. I usually get this error when I tried to use openuri to essentially wget an https url. I've switched to mechanize for all these. Well you probably know best and I'm probably just doing something wrong. Thanks! Awesome work so far :)

/opt/local/lib/ruby1.9/1.9.1/net/http.rb:678:in connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /opt/local/lib/ruby1.9/1.9.1/net/http.rb:678:in block in connect' from /opt/local/lib/ruby1.9/1.9.1/timeout.rb:44:in timeout'
from /opt/local/lib/ruby1.9/1.9.1/timeout.rb:87:in timeout' from /opt/local/lib/ruby1.9/1.9.1/net/http.rb:678:in connect'
from /opt/local/lib/ruby1.9/1.9.1/net/http.rb:637:in do_start' from /opt/local/lib/ruby1.9/1.9.1/net/http.rb:626:in start'
from /opt/local/lib/ruby1.9/1.9.1/net/http.rb:1168:in request' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/suspenders-0.2.3/template/suspenders.rb:40:in download_file'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/suspenders-0.2.3/template/suspenders.rb:78:in apply' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions.rb:217:in instance_eval'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/actions.rb:217:in apply' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.5/lib/rails/generators/rails/app/app_generator.rb:300:in apply_rails_template'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in run' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in invoke_task'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in block in invoke_all' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in each'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in map' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in invoke_all'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:226:in dispatch' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:389:in start'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands/application.rb:18:in <top (required)>' from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:53:in require'
from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:53:in require' from /opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.5/lib/rails/cli.rb:14:in <top (required)>'
from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:53:in require' from /opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:53:in require'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/rails-3.0.5/bin/rails:4:in <top (required)>' from /opt/local/bin/rails:19:in load'
from /opt/local/bin/rails:19:in <main>'

suspenders (0.1.0.beta.3) create fails if user has key that is used on github

suspenders create twiddr
' create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/mailers
create app/models
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/test.rb
create config/environments/production.rb
create config/initializers
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/mime_types.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/favicon.ico
create public/index.html
create public/404.html
create public/robots.txt
create public/500.html
create public/422.html
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/.gitkeep
create public/javascripts/application.js
create script
create script/rails
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
apply /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/suspenders-0.1.0.beta.3/template/suspenders.rb Getting rid of files we don't use
remove README
remove public/index.html
remove public/images/rails.png
Setting up the staging environment
run cp config/environments/production.rb config/environments/staging.rb from "."
Creating suspenders views
create app/views/shared
create app/views/shared/_flashes.html.erb
create app/views/shared/_javascript.html.erb
force app/views/layouts/application.html.erb
Let's use jQuery
run trout checkout --source-root=template/trout public/javascripts/jquery.js [email protected]:thoughtbot/suspenders-gem.git from "."
/home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:117:in run_or_fail': Command failed with status pid 13392 exit 128: (RuntimeError) git clone [email protected]:thoughtbot/suspenders-gem.git /tmp/git Initialized empty Git repository in /tmp/git/.git/ ERROR: Permission to thoughtbot/suspenders-gem denied to Fonsan. fatal: The remote end hung up unexpectedly from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:44:inclone_repository'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:15:in checkout' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:27:inrun'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:8:in run' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/bin/trout:4:in<top (required)>'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in load' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in

'
run trout checkout --source-root=template/trout public/javascripts/jquery-ui.js [email protected]:thoughtbot/suspenders-gem.git from "."
/home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:117:in run_or_fail': Command failed with status pid 14182 exit 128: (RuntimeError) git clone [email protected]:thoughtbot/suspenders-gem.git /tmp/git Initialized empty Git repository in /tmp/git/.git/ ERROR: Permission to thoughtbot/suspenders-gem denied to Fonsan. fatal: The remote end hung up unexpectedly from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:44:inclone_repository'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:15:in checkout' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:27:inrun'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:8:in run' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/bin/trout:4:in<top (required)>'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in load' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in'
Pulling in some common javascripts
run trout checkout --source-root=template/trout public/javascripts/prefilled_input.js [email protected]:thoughtbot/suspenders-gem.git from "."
/home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:117:in run_or_fail': Command failed with status pid 16044 exit 128: (RuntimeError) git clone [email protected]:thoughtbot/suspenders-gem.git /tmp/git Initialized empty Git repository in /tmp/git/.git/ ERROR: Permission to thoughtbot/suspenders-gem denied to Fonsan. fatal: The remote end hung up unexpectedly from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:44:inclone_repository'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:15:in checkout' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:27:inrun'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:8:in run' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/bin/trout:4:in<top (required)>'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in load' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in'
Documentation
create doc/README_FOR_SUSPENDERS
Get ready for bundler... (this will take a while)
run trout checkout --source-root=template/trout Gemfile [email protected]:thoughtbot/suspenders-gem.git from "."
/home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:117:in run_or_fail': Command failed with status pid 18048 exit 128: (RuntimeError) git clone [email protected]:thoughtbot/suspenders-gem.git /tmp/git Initialized empty Git repository in /tmp/git/.git/ ERROR: Permission to thoughtbot/suspenders-gem denied to Fonsan. fatal: The remote end hung up unexpectedly from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:44:inclone_repository'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/managed_file.rb:15:in checkout' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:27:inrun'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/lib/trout/cli.rb:8:in run' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/trout-0.3/bin/trout:4:in<top (required)>'
from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in load' from /home/fonsan/.rvm/gems/ruby-1.9.2-p0/bin/trout:19:in'
run bundle install from "."
Let's use MySQL
force config/database.yml
rake db:create
rake aborted!
uninitialized constant Mysql

(See full trace by running task with --trace)
Setting up plugins
inject config/application.rb
inject config/environments/development.rb
inject config/environments/test.rb
inject config/environments/staging.rb
inject config/environments/production.rb
generate rspec:install
generate cucumber:install
generate clearance
generate clearance_features
create public/stylesheets/sass/screen.scss
create public/stylesheets/screen.css
create features/step_definitions/factory_girl_steps.rb
The template [/home/fonsan/.rvm/gems/ruby-1.9.2-p0/gems/suspenders-0.1.0.beta.3/template/suspenders.rb] could not be loaded. Error: No such file or directory - /home/fonsan/twiddr/spec/spec_helper.rb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.