Commit Graph

1494 Commits

Author SHA1 Message Date
Yehuda Katz
60219a13da Add a .tmp path 2009-08-09 05:52:49 -03:00
Pratik Naik
89c8affe47 Use Pathname for checking if sqlite path is absolute 2009-08-09 01:54:08 +01:00
bastilian
071f48b716 Make sure db:drop doesn't fail when sqlite db is given by an absolute path [#1789 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-09 01:54:08 +01:00
Michael Koziarski
df745ed805 Depend on rubygems 1.3.2
Also move the min_version definition up a line so it's present in the rescue block down below.
2009-08-09 11:11:34 +12:00
Matt Duncan
bee3e099bd Users can now pass :branch for git plugins and :revision for subversion plugins
[#2352 status:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-08 23:42:18 +01:00
José Valim
3ea091e1cc Improved coverage for session_migration generator. [#3008 status:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-08 23:42:18 +01:00
Elad Meidar
c0f828ca4f Fixed reference to AR::SessionStore::Session.table_name in session migrations
Signed-off-by: José Valim <jose.valim@gmail.com>
2009-08-08 23:42:18 +01:00
Pratik Naik
ed8a0a1c23 Ensure db:drop:all doesn't error out on exception [#2997 state:resolved] [Anthony Caliendo] 2009-08-08 17:53:51 +01:00
Cristi Balan
7f84f14efa Add rake db:forward - opposite of db:rollback [#768 state:resolved]
Example:
  rake db:forward # performs the next migration
  rake db:forward STEP=4 # performs the next 4 migrations

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-08 17:41:43 +01:00
José Valim
016ed9b429 Added rubygems to generators load_paths, but we only load generators from gems that are alraedy activated. This fixes the version problem and avoid silly conflicts. 2009-08-08 17:48:07 +02:00
José Valim
469d89dd44 Rename Rails::Generators::ActionORM to Rails::Generators::ActiveModel. 2009-08-08 17:48:07 +02:00
Mike Breen
e8dc151396 Add option to routes task to target a specific controller with CONTROLLER=x.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#2928 state:committed]
2009-08-08 14:38:33 +12:00
José Valim
55575e2165 Allow rails templates relative to the current path to be given. 2009-08-07 17:17:51 +02:00
José Valim
c44f7e39f4 Updated vendored thor to 0.11.5 2009-08-07 17:16:15 +02:00
James Tucker
b7052b8dc3 Dont require thin as the thin rack adapter is now upstream
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-05 23:00:33 +01:00
Yehuda Katz
2c2ca833a5 Removed default_internal, which was preventing round-tripping of some encodings. 2009-07-30 09:55:17 -07:00
Pratik Naik
83537bf090 Generator config should be commented by default 2009-07-30 17:49:48 +01:00
Pratik Naik
61d995f7ed Remove whitespaces from the default mailer file 2009-07-30 17:49:48 +01:00
José Valim
7d56fd9f08 Always use application generator to run templates. 2009-07-28 16:21:30 +02:00
José Valim
d9aae2b56e Merge branch 'master' of git://github.com/rails/rails 2009-07-28 09:00:33 +02:00
José Valim
419ca7a747 Ensure that developers options are overwritten by user options. 2009-07-28 08:48:21 +02:00
José Valim
67c2f53938 Allow templates for non namespaced generators too. 2009-07-25 21:14:43 +02:00
José Valim
edd07b5a7a Updated vendored thor to 0.11.3. 2009-07-23 14:30:49 +02:00
José Valim
178044dbd2 Do not try to use thor gem. 2009-07-23 07:33:54 +02:00
John Duff
0c68d23f19 make pass through error code configurable [#2817 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-07-22 22:21:06 -05:00
José Valim
33048b6e27 Solving merge conflicts. 2009-07-21 12:51:53 +02:00
José Valim
edda0bfe76 Allow nested and multiple fallbacks for generators. 2009-07-21 12:16:25 +02:00
José Valim
10fd021789 Change attributes default type to array to allow order to be preserved. 2009-07-21 12:00:02 +02:00
José Valim
c90419d4f4 Update db:sessions:create to use the proper generator. 2009-07-21 11:28:54 +02:00
Yehuda Katz + Carl Lerche
e7a2496fda Vendor the bundler project 2009-07-20 18:03:38 -07:00
José Valim
d6a590a710 Modified rake tasks to use new app generator structure and updated Thor version. 2009-07-16 11:17:19 +02:00
José Valim
b03034a686 Update vendored Thor to have latest actions updates. 2009-07-16 10:16:23 +02:00
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