Commit Graph

10316 Commits

Author SHA1 Message Date
José Valim
4494a752c3 Change current sstructure. 2009-06-23 19:10:42 +02:00
José Valim
75fbd73936 Add GeneratedAttribute. 2009-06-23 18:12:37 +02:00
José Valim
d4ec091580 Removing template runner old specs. 2009-06-23 16:58:43 +02:00
José Valim
83f7fe2028 NamedBase. 2009-06-23 16:53:48 +02:00
José Valim
301c48c15c Added a generator file responsable for loading generator files. 2009-06-23 16:53:47 +02:00
José Valim
1845675822 Added metal generator. 2009-06-23 16:53:47 +02:00
José Valim
f03890e151 Use Rails generators files organization. 2009-06-23 16:53:47 +02:00
José Valim
04eb5b6e34 Use Rails default banner. 2009-06-23 16:53:47 +02:00
José Valim
0744900861 Merge branch 'master' of git://github.com/rails/rails 2009-06-23 16:52:39 +02:00
Yehuda Katz + Carl Lerche
80f1f863cd Revert "Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]"
This reverts commit 4851ca9e13.

The tests do not pass for postgresql.
2009-06-22 12:04:02 -07:00
Patrick Joyce
4851ca9e13 Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 22:07:23 +01:00
Joseph Wilk
eb30e4ca40 Fixed a bug where create_table could not be called without a block [#2221 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 19:51:32 +01:00
Brian Hogan
b26c2c11ab Ensure table names are quoted while renaming for sqlite3 adapter [#2272 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 18:24:19 +01:00
=?utf-8?q?Mislav=20Marohni=C4=87?=
21cd4c0e93 Fix polymorphic_path doesn't modify options hash [#2099 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 17:53:07 +01:00
mattbauer
83c1934003 Ensure hm:t#create respects source associations hash conditions [#2090 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 17:35:04 +01:00
Darragh Curran
9cb8c812f2 Add content_for?(:name) helper to check if content_for(:name) is present [#1311 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-06-21 17:07:22 +01:00
Pratik Naik
66eb05821b Use stubbing instead of sleep() in File store cache tests 2009-06-21 15:25:28 +01:00
Pratik Naik
b5775c2b3e Add expiry support File cache store [#1693 state:resolved] [Roman Shterenzon, Pratik Naik] 2009-06-21 15:25:28 +01:00
José Valim
6dd196914c Remove class level conditions and ensure that RAILS_GEM_VERSION is commented when freeze. 2009-06-20 22:04:34 +02:00
José Valim
2c3ebc00b7 More tests to app generator. 2009-06-20 16:58:15 +02:00
José Valim
181feecfb9 First stub at app generators test. 2009-06-20 15:43:25 +02:00
José Valim
68739eed57 Skip Rails::VERSION warnings. 2009-06-19 16:19:15 +02:00
José Valim
631deb5992 Removing duplicated files. 2009-06-19 16:14:49 +02:00
José Valim
5b8fe9c4c7 Moving tests to new generators schema. 2009-06-19 16:11:55 +02:00
José Valim
9dd1e2f2b0 Starting test structure. 2009-06-19 16:11:55 +02:00
José Valim
bd216924a3 No more application generator. 2009-06-19 16:11:55 +02:00
José Valim
6658711775 Template wwas not found? Raise an error. 2009-06-19 16:11:55 +02:00
José Valim
98adc9a42e Secret key generator. You are gone. 2009-06-19 16:11:55 +02:00
José Valim
94a83007b6 Kick boot_test back to life. 2009-06-19 16:11:54 +02:00
José Valim
7a8e284766 Refactor shebang to a class method, so other generators can use it. 2009-06-19 16:11:54 +02:00
José Valim
748e1d6745 Require open-uri, we will need it. 2009-06-19 16:11:54 +02:00
José Valim
cd05ed6711 Do not show status when calling gsub_file or append_file. 2009-06-19 16:11:54 +02:00
José Valim
e0a4d8be93 Fix shebang on created files. 2009-06-19 16:11:54 +02:00
José Valim
6f044c9b6c Change --freeze alias from -f to -F to avoid conflict with --force. 2009-06-19 16:11:54 +02:00
José Valim
768d763436 Apply template when required. 2009-06-19 16:11:54 +02:00
José Valim
9b82fa159a Freeze rails when required. 2009-06-19 16:11:54 +02:00
José Valim
b9d8fafd7e Update templates to be backwards compatible. 2009-06-19 16:11:54 +02:00
José Valim
090de591fc Raise an error if invalid value for database is provided. 2009-06-19 16:11:54 +02:00
José Valim
6619357f75 When rails is invoked without args, be sure that help is called. 2009-06-19 16:11:54 +02:00
José Valim
01cde13290 Updated namespace so help can show usage properly. 2009-06-19 16:11:54 +02:00
José Valim
30fff3077d Updated dependency, so we can remove extra code. 2009-06-19 16:11:54 +02:00
José Valim
5ff80e7433 bin/rails uses the new generator. 2009-06-19 16:11:53 +02:00
José Valim
b6f826376a Added a couple more options to app generator. 2009-06-19 16:11:53 +02:00
José Valim
615527dcb0 Allow user to skip ActiveRecord, TestUnit and/or Prototype. However any customization should be done with templates. 2009-06-19 16:11:53 +02:00
José Valim
fef38fd542 Small alias typo. 2009-06-19 16:11:53 +02:00
José Valim
a8b3efbe5c Moved prototypes files to where they should be. 2009-06-19 16:11:53 +02:00
José Valim
4bf8f40638 Added usage to app generator. 2009-06-19 16:11:53 +02:00
José Valim
34ed2d8d5e Send new files too. 2009-06-19 16:11:51 +02:00
José Valim
d57b19380e Add base and port actions. Not functional though. 2009-06-19 16:10:43 +02:00
José Valim
ceede90017 Move prototype files to javascripts folder. 2009-06-19 16:10:42 +02:00