kfaustino / rails-templater Goto Github PK
View Code? Open in Web Editor NEWTemplate generator for Ruby on Rails 3 applications
Home Page: http://adventuresincoding.com/2011/01/rails-templater---agnostic-at-last
License: MIT License
Template generator for Ruby on Rails 3 applications
Home Page: http://adventuresincoding.com/2011/01/rails-templater---agnostic-at-last
License: MIT License
If the sqlite3 is not installed and ActiveRecord is selected, templater will fail once generations begin.
Waiting for a couple of gems to be updated to not depend on 3.0.0.rc.
Could you add support to create an rvmrc and then use that environment to install the gems?
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?
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.
gems/rails_templater-0.3.0/lib/rails_templater/fixture_replacement.rb:12:in `type=': RailsTemplater::NotSupportedError (RailsTemplater::NotSupportedError)
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:
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.
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
templater
command$ rails new <app_name> interactive # integrated into `rails` command is better than `templater`, I think.
# ~/.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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.