Giter Club home page Giter Club logo

rails-templater's People

Contributors

brendte avatar fredwu avatar guilleiguaran avatar kfaustino avatar rosstimson 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

rails-templater's Issues

Specifying Rails Version

Apparently, the latest verison of rails is installed automatically after the gem is installed.
I have been using 3.1.3, and now 3.2.2 is installed. (I had to reinstall 3.1.3 to get it to work with the command 'rails 3.1.3 new test_app')

Is there a way to specify which version of rails will be used to build the new application?
Perhaps, a test to see if more than one installed, and if so, prompts for selection?
Could even look like the rails command, above!

Looks like it would then be a parameter in Cli.rb, in run_templater, yes?

Similarly, could it check before installing the latest rails, or is this a feature? ;-)

Regardless, Thanks for the product,
Dirk Taylor

with configuration file support

  • ask user to choice, just like templater command
$ rails new <app_name> interactive  # integrated into `rails` command is better than `templater`, I think.
  • don't ask user, use a configuration file.
# ~/.rails_templaterrc
profiles = {
   "local": %w(mongoid rspec)
   "normal": %w(activerecord test-uint)
}
$ rails new <app_name> local # it uses the "local" profile
$ rails new <app_name> local+sass-rspec  # modify profile on-fly.

I don't want to choice options every time when create a new rails project.

Path-generation aint pluralized

After installing the gem and trying to get a new app up and running I'm greeted with the following:

The template [/home/fredrik/.rvm/gems/ree-1.8.7-2010.02/gems/rails_templater-0.2.0/lib/template_framework/template_runner.rb] could not be loaded. Error: No such file or directory - /home/fredrik/.rvm/gems/ree-1.8.7-2010.02/gems/rails_templater-0.2.0/lib/template_framework/template/git/gitignore

So after downloading the source and running the specs there is one failing:

  1. RailsTemplater::Templater generates a snippet path
    Failure/Error: subject.snippet_path("cucumber").should == File.expand_path('snippets/cucumber', TEMPLATE_FRAMEWORK_PATH)
    expected: "/home/fredrik/www/rails-templater/lib/template_framework/snippets/cucumber"
    got: "/home/fredrik/www/rails-templater/lib/template_framework/snippet/cucumber" (using ==)

    ./spec/rails_templater/templater_spec.rb:17

The error is clearly shown and boils down to the use of pluralize at https://github.com/kfaustino/rails-templater/blob/master/lib/rails_templater/templater.rb#L38 - which if I've understood correctly is a rails-method and not in Ruby-core?

Easy solution would be to just append "s" to the strings, effectively bypassing the faulty paths while still retaining functionality.

For the record I'm running Arch Linux with user-install RVM - Rails is installed and functioning.

Cucumber is Acceptance Testing

Cucumber is more accurately categorized as a tool for "acceptance testing" than as a tool for "integration testing".

Integration testing is testing the system with its various sub-components integrated together. Integration testing is contrasted with unit testing, where each sub-component of a system is tested in isolation from all other sub-components.

Acceptance testing is different. From Wikipedia (http://en.wikipedia.org/wiki/Acceptance_testing):

Acceptance testing generally involves running a suite of tests on the completed system.

Acceptance Tests/Criteria (in Agile Software Development) are usually created by business customers and expressed in a business domain language.

This describes Cucumber features very well.

RVM support

Could you add support to create an rvmrc and then use that environment to install the gems?

Github redirecting to SSL

Thanks for sharing this great template. I have one problem: when I use this template for a new Rails app, I get an error when it comes to the JQuery recipe. open-uri complains that redirects are not allowed, because the recipe is trying to get http://github.com/rails/jquery-ujs/raw/master/src/rails.js and gets redirected to https://github.com/rails/jquery-ujs/raw/master/src/rails.js. If I simply change the URL in the recipe to https://github.com/rails/jquery-ujs/raw/master/src/rails.js I get an error that it's not in my sources. Any ideas?

RailsTemplater::NotSupportedError

gems/rails_templater-0.3.0/lib/rails_templater/fixture_replacement.rb:12:in `type=': RailsTemplater::NotSupportedError (RailsTemplater::NotSupportedError)

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.