Commit Graph

10320 Commits

Author SHA1 Message Date
José Valim
e3d5364e41 Implemented generaators fallbacks. 2009-07-16 00:17:28 +02:00
José Valim
9c4ba74b7c Change generators configuration to have a hash style. 2009-07-15 23:38:41 +02:00
José Valim
bcf754d8c4 Add a form hook to erb scaffold. Customize and go! 2009-07-15 22:43:25 +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
b4ef958de6 Change false to :verbose => false as in new Thor version. 2009-07-15 20:16:37 +02:00
José Valim
baa4781ac7 Allow nil and false to be given as configuration values and avoid creating unecessary hashes. 2009-07-15 16:53:54 +02:00
José Valim
7022b58842 Allow namespaced configuration on generators. 2009-07-15 16:20:48 +02:00
José Valim
0702e04e0d Refactored some generators to make use of improved invocations on thor. 2009-07-15 11:33:36 +02:00
José Valim
a06c825b46 Updated vendored Thor to 0.11.1 and update Rails::Generators. 2009-07-14 22:20:43 +02:00
José Valim
e96af1eaa2 Add version to thor frozen gem. 2009-07-14 15:44:14 +02:00
José Valim
925c9104e0 Copy Thor files instead of using as a submodule. 2009-07-13 23:21:47 +02:00
José Valim
5021dc69a4 Vendorized Thor. 2009-07-13 23:13:48 +02:00
José Valim
52673cd2ee Added a generator generator. 2009-07-13 23:01:12 +02:00
José Valim
a5ab030ae4 Ensure non timestamped migrations are generated properly. 2009-07-13 22:26:58 +02:00
José Valim
25647f7021 Add some attribute readers to migration module. 2009-07-13 20:42:25 +02:00
José Valim
b9f4ea7198 Add hooks for integration and performance tests. 2009-07-13 18:29:40 +02:00
José Valim
f68e7a3987 Remove generator environment until we have a gem manifest. 2009-07-13 18:18:08 +02:00
José Valim
21019304f0 Make explicit that references and belongs_to types have nil as default value. 2009-07-13 16:18:56 +02:00
José Valim
ae7a7852d5 Always allow params to be skipped on action orm in generators. 2009-07-13 15:08:45 +02:00
José Valim
d5225c1fd5 Do not require options on class_option. 2009-07-13 14:30:32 +02:00
José Valim
cd28dcb5a4 Cache source root in a rails specific variable. 2009-07-13 13:39:48 +02:00
José Valim
3075ae0611 Solving merge conflicts. 2009-07-12 16:29:15 +02:00
Joshua Peek
c863388039 Add observing hooks to ARes 2009-07-11 16:59:11 -05:00
Joshua Peek
e83a05af07 Integrate AMo XML serializer into AR 2009-07-11 16:20:58 -05:00
Joshua Peek
01d92021e6 Switch scaffolding templates to HTML 5 doctype 2009-07-10 11:34:39 -05:00
José Valim
cca16a015d Do not clean up frameworks on generators environment, otherwise initializers, gems and plugins might not be loaded properly. 2009-07-09 10:04:59 +02:00
Sam Goldstein
d60d7edce4 Make it so AR attributes which conflict with object-private methods (e.g. system) don't 'randomly' cause NoMethodErrors
Previously if you called this attribute before others, you'd get exceptions.  But if it was the second-or-subsequent attribute you retrieved you'd get the correct behaviour.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#2808 state:committed]
2009-07-09 16:44:30 +12:00
José Valim
09c288f0c5 Add the new generators environment and update commands. 2009-07-08 12:55:50 +02:00
José Valim
c9ea21717e Generators are configured on initialization if RAILS_ENV=generators. 2009-07-08 12:53:45 +02:00
José Valim
2699e9c2dd Added config.generators with tests. 2009-07-08 12:53:45 +02:00
José Valim
c07746cbdf Merge branch 'master' of git://github.com/rails/rails 2009-07-08 12:53:13 +02:00
Lawrence Pit
579250ea46 Use the i18n gem if present instead of vendor code. [#2871 state:resolved]
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-07-07 18:36:42 -07:00
Lawrence Pit
da635394c1 Ruby 1.9 style String interpolation support for lower ruby versions. Thanks to code from Masao Mutoh's GetText gem. [#2870 state:resolved]
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
2009-07-07 16:21:57 -07:00
Hongli Lai (Phusion)
187d90f752 Add support for dumping non-standard primary keys when using the SQLite3 adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved]
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
2009-07-07 16:17:25 -07:00
Emilio Tagua
1e2d722960 Adds a audio_tag helper for the HTML5 audio tag. Fixed video_path docs. HTML attributes values should be true or false not attribute's name. [#2864 state:resolved]
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>
2009-07-07 15:56:27 -07:00
Yehuda Katz + Carl Lerche
61604feec0 Get Initializer tests running without requiring parts of Rails being loaded first 2009-07-06 12:25:34 -07:00
Yehuda Katz + Carl Lerche
9a42e06dd8 Reapply Rails::Application::Path tweaks
Reapplies: a4bdc00fec623f72592e663e6d7830eea0bc6ea4
             3c1dab72259d01c6335bf359d7f9b3af69d45bb4
2009-07-06 10:22:42 -07:00
José Valim
dd7ee082be Use active_support/mini since we just need inflections. 2009-07-06 18:38:27 +02:00
José Valim
66d1b968d1 Make specs pass on Ruby 1.9. 2009-07-06 18:31:28 +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
b277cf28e8 Allow scaffold controller to load action_orm files on demand. 2009-07-04 20:17:32 +02:00
José Valim
35925a8995 Ensure that rails templates methods are invoked with the proper extensions [#2531 status:resolved] 2009-07-04 20:17:32 +02:00
José Valim
8ff214e0db Use the proper shebang when using Ruby 1.9 or jruby or windows. 2009-07-04 20:17:32 +02:00
José Valim
da09d46ed4 Make generators test pass with latest Thor version 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
37ba0047a9 Removed invoke_if and allow hook_for to accept boolean options. 2009-07-04 20:17:31 +02:00
José Valim
9e36dd4e1c Remove update_js from Rakefile and the uneeded railsgen. 2009-07-04 20:17:31 +02:00
José Valim
20e2140ce7 Merge branch 'master' of git://github.com/rails/rails 2009-07-04 20:16:36 +02:00
Joshua Peek
783db25e0c Integrate AMo JSON serializer into AR 2009-07-03 23:12:42 -05:00
Joshua Peek
d2b78b3594 Initial extraction of AMo xml serializer 2009-07-03 21:38:14 -05:00