Giter VIP home page Giter VIP logo

rails-dummy's Introduction

Rails::Dummy

Build Status A simple task to generate a dummy app for engines using RSpec or Test::Unit.

Installation

Add this line to your application's Gemfile:

gem 'rails-dummy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails-dummy

Usage

Add this to your Rakefile

require 'rails/dummy/tasks'

Now you should be able to run:

rake dummy:app

Customization via environment variables:

DUMMY_APP_PATH - Specify path where dummy app will be located. Defaults to spec/dummy.

ENGINE - Specify engine name migrations to be installed via rake ENGINE:install:migrations. Defaults to nil; engine specific migrations are not installed.

DISABLE_CREATE - Don't run db:create.

DISABLE_MIGRATE - Don't run db:migrate db:test:prepare after creating database.

Customization via .dummyrc

In addition to the environment variables, you can create a .dummyrc file which will be picked up by the dummy application generator.

This file follows the same syntax as the .railsrc file.

Projects using this gem

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes. Write some tests. (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

This gem was extracted from the http://coursewa.re project.

rails-dummy's People

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

Watchers

 avatar  avatar

rails-dummy's Issues

rake dummy:app failed: TypeError: superclass mismatch for class Command

Just install rails-dummy gem and add require 'rails/dummy/tasks' to rake file then run rake dummy:app yields the following:

$ rake dummy:app
rake aborted!
TypeError: superclass mismatch for class Command
/Users/Juan/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:2:in `<class:Thor>'
/Users/Juan/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:1:in `<top (required)>'
/Users/Juan/.gem/ruby/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:1:in `<top (required)>'
/Users/Juan/.gem/ruby/2.2.0/gems/bundler-1.7.12/lib/bundler/vendor/thor/group.rb:1:in `<top (required)>'
/Users/Juan/.gem/ruby/2.2.0/gems/railties-4.2.0/lib/rails/generators.rb:4:in `<top (required)>'
/Users/Juan/.gem/ruby/2.2.0/gems/rails-dummy-0.0.4/lib/rails/dummy/generator.rb:2:in `<top (required)>'
/Users/Juan/.gem/ruby/2.2.0/gems/rails-dummy-0.0.4/lib/rails/dummy/tasks.rb:1:in `<top (required)>'

Update rspec version to 3.x

This gem uses rspec 2.99 instead of rspec 3.x. It may be a good idea to update the test suite and rspec version with it.

Not working on Windows

It crashes on rm -rf command as it does not exists for Windows. Don't know if you planned to support Windows with this gem, but it would be appreciated.

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.