aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator
Commit message (Collapse)AuthorAgeFilesLines
* Allow custom rails generators to pass in their own binding to Create command ↵Joshua Peek2008-12-281-1/+1
| | | | so that the corresponding erb templates get rendered with the proper binding [#1493 state:resolved]
* Ensure template runner tests don't depend on hash ordering [#1654 ↵Mike Gunderloy2008-12-281-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use SimpleLogger for Rails::TemplateRunner outside of the Generator context ↵Aaron Quint2008-12-281-0/+10
| | | | | | [#1618 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Adding test coverage and better logging to Rails::TemplateRunner [#1618 ↵Aaron Quint2008-12-271-66/+53
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make generated Metal bits a pure rack endpoint application (not middleware)Joshua Peek2008-12-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of calling super to pass the request on, return a 404. The modified app looks like this: # app/metal/poller.rb class Poller def self.call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "text/html"}, "Hello, World!"] else [404, {"Content-Type" => "text/html"}, "Not Found"] end end end But you aren't locked in to just Rails: # app/metal/api.rb require 'sinatra' Sinatra::Application.default_options.merge!(:run => false, :env => :production) Api = Sinatra.application unless defined? Api get '/interesting/new/ideas' do 'Hello Sinatra!' end
* Introduce Rails MetalJoshua Peek2008-12-163-0/+28
| | | | | | | | | | | | | | | | | | | # app/metal/poller.rb class Poller < Rails::Rack::Metal def call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "application/json"}, Message.recent.to_json] else super end end end * There is a generator to help you get started `script/generate metal poller` * Also, metal bits can be ran standalone with rackup `rackup app/metal/poller.rb`
* Fix message when running TemplateRunner#git. [#1526 state:resolved]Sergio Gil2008-12-081-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add a rake task to apply a template to an existing application.Pratik Naik2008-12-072-3/+3
| | | | Example : rake rails:template LOCATION=~/template.rb
* Remove unused TemplateRunner attributesPratik Naik2008-12-071-1/+1
|
* Added support for plugins to be installed as submodules with the application ↵Peter Cooper2008-12-061-1/+7
| | | | | | templater. [#1517 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add :env and :sudo options to TemplateRunner#rake.Pratik Naik2008-12-041-3/+6
| | | | | | | Examples : rake("gems:install", :sudo => true) rake("db:migrate", :env => "production")
* Make TemplateRunner#generate accept any number of argumentsPratik Naik2008-12-031-3/+3
|
* Remove docs for TemplateRunner#gem as the behaviour has been changedPratik Naik2008-12-021-13/+0
|
* Add "-m/--template" option to Rails generator to apply template to generated ↵Jeremy McAnally2008-12-027-0/+423
| | | | | | application. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Generate rackup dispatcher with rails:update:generate_dispatchersJoshua Peek2008-12-011-0/+1
|
* Extracted the process scripts (inspector, reaper, spawner) into the plugin ↵David Heinemeier Hansson2008-11-301-3/+2
| | | | irs_process_scripts [DHH]
* Cleanup the app generatorDavid Heinemeier Hansson2008-11-301-142/+196
|
* Explicitly require AS::Deprecation for the SecretKeyGenerator. Bring in ↵Jeremy Kemper2008-11-241-0/+2
| | | | ActiveSupport::TestCase for its tests.
* Fix typo in 5b5730cc6e9194fb5f67fe79d2c7849e200ba6edPratik Naik2008-11-241-4/+4
|
* Don't generate public/dispatch.cgi/fcgi/rb files by default.Yaroslav Markin2008-11-241-4/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-3/+4
| | | | cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
* Require active_support/secure_random for Ruby 1.9.Akira Matsuda2008-11-191-0/+1
| | | | | | [#1326 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added config.i18n settings gatherer to config/environment, auto-loading of ↵David Heinemeier Hansson2008-11-181-0/+4
| | | | all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
* Add helper test generators [#1199 state:resolved]Eugene Bolshakov2008-11-1712-14/+92
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb ↵David Heinemeier Hansson2008-11-171-1/+2
| | | | and removed all the special casing that was in place to support the former. You must do this rename in your own application when you upgrade to this version [DHH]
* Fixed plugin generator so that generated unit tests would subclass ↵Mathias Meyer2008-10-304-12/+16
| | | | | | ActiveSupport::TestCase, also introduced a helper script to reduce the needed require statements. [#1137 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Fix script/generate warningPratik Naik2008-10-211-1/+2
|
* Don't create test/performance/test_helper.rb. Just require the needed files ↵Pratik Naik2008-10-172-2/+2
| | | | from test directly. [#1135 state:resolved]
* Remove the class_path from the collisions test.Michael Koziarski2008-10-149-11/+11
| | | | The class_path is often taken already in situations like Admin namespaces etc.
* Don't include the path when checking class collisions [#545 state:resolved]Joshua Peek2008-10-131-0/+1
|
* Add IMB DB support to Rails application generator. [#1136 state:resolved]Antonio Cangiano2008-10-041-1/+1
| | | | | | Usage : rails app_name -d ibm_db Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Dont reference the class being tested when it can be assumedDavid Heinemeier Hansson2008-09-091-1/+0
|
* Formally deprecate the old secret key generatorMichael Koziarski2008-08-271-0/+1
|
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-272-149/+5
| | | | | | | SecureRandom has a few minor security enhancements and can be used as a drop-in replacement Signed-off-by: Michael Koziarski <michael@koziarski.com> [#913 state:committed]
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-232-1/+5
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+3
| | | | state:resolved]
* Removed config.ru template from app generatorJoshua Peek2008-08-191-1/+0
|
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Set config.active_record.timestamped_migrations = false to have migrations ↵Nik Wakelin2008-07-171-1/+16
| | | | | | with numeric prefix instead of UTC timestamp. [#446 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrails.Pratik Naik2008-07-164-14/+17
|
* Add config.ru to rails app generatorPratik Naik2008-07-161-0/+1
|
* Ensure script/generate finds generators from symlinked plugins. [#449 ↵Daniel Guettler2008-07-121-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Fixed generator collisions for nested controller modules."Joshua Peek2008-07-111-16/+9
| | | | This reverts commit 2d372d704987e05712ccd937e78d8dbd41242efe.
* Ensure Rails::Generator quotes file names while generating diff. [#264 ↵Carl Porth2008-07-021-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure observer test inherits from ActiveSupport::TestCasePratik Naik2008-06-271-1/+1
|
* Warn and uses singularized ModelName if a plural ModelName is given to ↵Pat George2008-06-271-1/+8
| | | | | | script/generate. Override with --force-plural. [#333 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add performance test generatorPratik Naik2008-06-193-0/+32
|
* Use test/performance/test_helper to do test setup then boost log level and ↵Jeremy Kemper2008-06-151-0/+1
| | | | turn on caching
* Performance: integration test benchmarking and profiling. [Jeremy Kemper]Jeremy Kemper2008-06-141-0/+2
|
* Changed all generated tests to use the test/do declaration style [DHH]David Heinemeier Hansson2008-06-128-17/+17
|