1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

34 commits

Author SHA1 Message Date
José Valim
6f0ed7aa52 Update generators test. 2010-05-15 15:21:14 +02:00
José Valim
b61f6f5980 Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive. 2010-03-23 13:40:41 +01:00
José Valim
b8f7ba2935 Prettify generators description whenever using the default stack [#4143 status:resolved] 2010-03-12 21:33:39 +01:00
José Valim
5893baa683 Add autoload to generators modules and fix failing test. 2010-02-26 10:44:53 +01:00
Jeremy Kemper
ffc45f3e71 Fix dangling klass reference 2010-02-25 11:01:15 -08:00
Jeremy Kemper
c7f9e8c06c Fix test on 1.8.8. Broken by inherited hook now running before Class.new block. 2010-02-25 10:46:29 -08:00
José Valim
e6da2f651f Ensure app does not show up in generators. 2010-01-26 12:23:02 +01:00
José Valim
04063393f9 Give higher priority to rails generators. 2010-01-21 14:11:24 +01:00
José Valim
4ca9765088 Allow railties to specify generators paths. 2010-01-19 19:59:08 +01:00
José Valim
a18dd52d58 Get generators tests running on Ruby 1.9.1 2010-01-19 01:36:06 +01:00
José Valim
a2b76d1dde Improve generators help. 2010-01-18 16:21:11 +01:00
José Valim
61f77b1dcd More cleaning up on rails generators load path. 2010-01-18 16:21:11 +01:00
José Valim
e75ea47434 Automatically remove :generators: from namespaces. 2010-01-18 16:21:10 +01:00
José Valim
a2e2e73c5e Ensure generators can be invoked by their shortcut and remove attr_reader tasks. 2010-01-18 16:21:10 +01:00
José Valim
6716e4bc0c Use regexp in lookups instead of traversing namespaces. This removes the need of special cases. 2010-01-03 17:14:48 +01:00
José Valim
d0aa0cfbd7 Ensure generator fallbacks work even when a context is given.
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2009-11-23 09:08:48 -08:00
Jeremy Kemper
3ce6a10b67 Contortions to work around brittle naming dependency 2009-11-09 20:10:10 -08:00
Jeremy Kemper
a66449d852 Ruby 1.9.2: work around inherited hook being called before yielding to block 2009-11-09 14:36:49 -08:00
Jeremy Kemper
cb9a1759c0 Fix generators tests that expect a class name 2009-11-05 16:12:02 -08:00
José Valim
e15b5eda2b Avoid duplicated names on help description and show proper error message if trying to load a Rails 2.x generator.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 16:32:47 -08:00
José Valim
d226f17507 Ensure that generators can be invoked from any directory.
Signed-off-by: Engine Yard <engineyard@Engine-Yards-MacBook-Pro.local>
2009-11-02 18:20:16 -08:00
Joshua Peek
01e04a446c Use Rails.root in railties tests 2009-10-18 10:53:43 -05:00
Carl Lerche
e1fdc8bba3 Remove config.gem in favor of using the bundler. This makes config/boot.rb obsolete.
The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
2009-10-16 18:10:52 -07:00
Yehuda Katz + Carl Lerche
f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
José Valim
5f7cfffc53 Use less strict rules in generators lookup, so people can lay their generators wherever they want. 2009-08-10 18:29:20 +02:00
José Valim
5025ae610f Ensure that not namespaced generators also load RAILS_ROOT/lib/templates files. 2009-07-28 08:51:57 +02:00
José Valim
419ca7a747 Ensure that developers options are overwritten by user options. 2009-07-28 08:48:21 +02:00
José Valim
edda0bfe76 Allow nested and multiple fallbacks for generators. 2009-07-21 12:16:25 +02:00
José Valim
e3d5364e41 Implemented generaators fallbacks. 2009-07-16 00:17:28 +02:00
José Valim
8d47078a49 Added source_paths to rails generators. If a template is added to RAILS_ROOT/lib/templates/base/generator it will be used. For example, to customize edit.html.erb template on scaffold, just add a customized copy at RAILS_ROOT/lib/templates/erb/scaffold. 2009-07-15 22:37:22 +02:00
José Valim
eeb6a0786a Load generators from user home and show a error message if they can't be loaded. 2009-07-04 20:17:32 +02:00
José Valim
cd388e075c Search for generators on vendorized plugins and gems. 2009-07-04 20:17:31 +02:00
José Valim
44633dc7a5 Add some tests for no_color! behavior. 2009-07-03 15:12:18 +02:00
José Valim
21db04818e More tests for rails generators and lookup. 2009-07-03 14:57:46 +02:00