Joshua Peek
82334a7431
Only insert metal middleware if any exist
2009-01-21 12:37:03 -06:00
Pratik Naik
39e1ac658e
Merge docrails
2009-01-18 18:10:58 +00:00
Pratik Naik
085991891e
Bump up the year in MIT license files
2009-01-18 05:28:21 +00:00
Pratik Naik
41af606db3
Remove script/performance/profiler in favour of performance integration tests.
...
To continue using script/performance/profiler, install the request_profiler plugin :
script/plugin install git://github.com/rails/request_profiler.git
2009-01-18 05:20:39 +00:00
Lourens Naude
b08c968875
Decouple the local cache strategy from MemCacheStore for reuse with other remote stores [ #1653 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-01-17 18:05:48 -06:00
Nahum Wild
a53ad5bba3
Added in a local per request cache to MemCacheStore. It acts as a buffer to stop unneccessary requests being sent through to memcache [ #1653 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-01-15 21:29:32 -06:00
Joshua Peek
b281a6a5b2
Use Rack's MethodOverride lib [ #1699 state:resolved]
2009-01-13 17:26:29 -06:00
Jeremy Kemper
35fa007313
Include process methods in ActionController::TestCase only. No need to alias_method_chain :process either.
2009-01-07 14:49:05 -08:00
Jeremy Kemper
9b96e8d1cc
Consolidate test_help requires
2009-01-06 15:36:08 -08:00
Joshua Peek
ed2e776bde
Move metal above method piggybacking middleware and add some test coverage
2009-01-03 23:02:29 -06:00
Jeremy Kemper
a5004573d8
Only silence backtrace from plugin lib dirs
2008-12-30 18:25:44 -08:00
Jeremy Kemper
2f9edde142
Clean trailing / after rails root from backtraces
2008-12-30 12:44:31 -08:00
Joshua Peek
558ab327b7
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
2008-12-29 19:27:19 -06:00
Joshua Peek
1f0aecd931
Allow custom rails generators to pass in their own binding to Create command so that the corresponding erb templates get rendered with the proper binding [ #1493 state:resolved]
2008-12-28 15:10:41 -06:00
Mike Gunderloy
1fb275541a
Ensure template runner tests don't depend on hash ordering [ #1654 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-28 17:49:58 +00:00
Aaron Quint
c0c79f779c
Use SimpleLogger for Rails::TemplateRunner outside of the Generator context [ #1618 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-28 16:49:19 +00:00
Aaron Quint
9fd35fc2d8
Adding test coverage and better logging to Rails::TemplateRunner [ #1618 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-27 21:03:44 +00:00
Pratik Naik
f5b7f0911b
Merge commit 'fred/more_pullable'
2008-12-21 19:04:48 +00:00
pfagiani
7cda0df7f1
Fix script/dbconsole not handling numeric password [ #1395 state:resolved]
...
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
2008-12-21 16:48:02 +00:00
Pratik Naik
fab4f96bf2
Correct description of tmp:create task [ #1607 state:resolved] [Roderick van Domburg]
2008-12-21 16:10:26 +00:00
Joshua Peek
12e416a04b
Diverge Metal implementation from Rack::Cascade since we want the last app to return its headers and body if the status is a 404.
2008-12-19 11:07:25 -06:00
Pratik Naik
c3f53f412c
Merge docrails
2008-12-19 14:27:43 +00:00
Jeremy Kemper
6ce4b43035
Cheaper metal cascade
2008-12-18 16:55:03 -08:00
Jeremy Kemper
03f6ecc6c6
Use LogTailer
2008-12-18 16:53:53 -08:00
Jeremy Kemper
a10e473b81
Rename Rails::Rack::Logger -> LogTailer. Speed up log mtime checks.
2008-12-18 14:42:06 -08:00
Jeremy Kemper
6703f909c7
Cheaper log tail time comparison
2008-12-18 14:17:43 -08:00
Joshua Peek
2eb2ec9e63
Move gaint lock into middleware
2008-12-18 12:00:54 -06:00
Joshua Peek
61a41154f7
Make generated Metal bits a pure rack endpoint application (not middleware)
...
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
2008-12-17 09:53:56 -06:00
Joshua Peek
8c3a543664
Introduce Rails Metal
...
# 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`
2008-12-16 13:15:06 -06:00
Joshua Peek
ed70830713
Switch to Rack based session stores.
2008-12-15 16:33:31 -06:00
David Heinemeier Hansson
f9a02b12d1
Added gem backtrace pretty priting (Juan Lupión) [ #1497 state:committed]
2008-12-15 15:37:27 +01:00
Joshua Peek
75fa82418d
Prefer Rails.logger over RAILS_DEFAULT_LOGGER
2008-12-10 18:08:14 -06:00
Jeremy Kemper
39de112e7b
Use full path to environment
2008-12-08 19:14:07 -08:00
Sergio Gil
e4eadf3910
Fix message when running TemplateRunner#git. [ #1526 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-08 00:26:49 +00:00
Pratik Naik
f7f113610e
Add a rake task to apply a template to an existing application.
...
Example : rake rails:template LOCATION=~/template.rb
2008-12-07 03:40:23 +01:00
Pratik Naik
2dc5d12c91
Remove unused TemplateRunner attributes
2008-12-07 03:28:39 +01:00
Pratik Naik
dbbae5e00e
Merge with docrails
2008-12-07 03:27:53 +01:00
Peter Cooper
9eca588bdf
Added support for plugins to be installed as submodules with the application templater. [ #1517 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-06 00:01:42 +01:00
Joshua Peek
731dcd8404
Silence server backtrace in rescue templates and log files. Also remove some noise from missing template errors.
2008-12-05 11:24:28 -06:00
Jeremy Kemper
57f0b9738e
Remove config dir from the load path
2008-12-03 21:46:36 -06:00
Pratik Naik
e52affb210
Add :env and :sudo options to TemplateRunner#rake.
...
Examples :
rake("gems:install", :sudo => true)
rake("db:migrate", :env => "production")
2008-12-04 01:08:36 +01:00
Pratik Naik
ef0b1cbb1b
Make TemplateRunner#generate accept any number of arguments
2008-12-03 22:05:54 +01:00
Jeremy Kemper
99f2cb4918
Merge branch 'master' of git@github.com:rails/rails
2008-12-03 10:32:30 -06:00
Jeremy Kemper
0b4858cf38
Require rack/utils explicitly
2008-12-03 10:23:58 -06:00
Pratik Naik
be75cb8877
Remove docs for TemplateRunner#gem as the behaviour has been changed
2008-12-02 19:48:25 +01:00
Jeremy McAnally
e8cc4b116c
Add "-m/--template" option to Rails generator to apply template to generated application.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-02 19:39:11 +01:00
Aliaksey Kandratsenka
a0bc480e1d
establish mysql connection before dropping database
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#63 state:committed]
2008-12-01 21:38:30 +01:00
Michael Koziarski
a8fc494dbb
Manually load the DB config rather than firing the whole initializer [Gerrit Kaiser]
2008-12-01 21:38:30 +01:00
Joshua Peek
06ed8e4511
Add internal middleware stack to Dispatcher
...
config.middleware.use Rack::Cache
2008-12-01 13:49:34 -06:00
Matt Jones
3c07a8828e
handle missing dependecies in gem loading
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-12-01 20:42:46 +01:00
Joshua Peek
25f6524b89
opps, inner_app is in the wrong conditional
2008-12-01 12:24:02 -06:00
Joshua Peek
61958032d3
Generate rackup dispatcher with rails:update:generate_dispatchers
2008-12-01 12:21:18 -06:00
Joshua Peek
926844e869
Switch FCGI handler over to Rack
2008-12-01 11:54:32 -06:00
David Heinemeier Hansson
3b3c0507e2
Extracted the process scripts (inspector, reaper, spawner) into the plugin irs_process_scripts [DHH]
2008-11-30 16:23:20 -06:00
David Heinemeier Hansson
be140e8c6b
Changed Rails.root to return a Pathname object (allows for Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [ #1482 ]
2008-11-30 15:59:30 -06:00
David Heinemeier Hansson
c5f461d7b0
Cleanup the app generator
2008-11-30 15:52:50 -06:00
David Heinemeier Hansson
471f024018
Me loves me some whitespace
2008-11-30 14:58:42 -06:00
Jeremy Kemper
cfb2126726
Load app initializers by path relative to Rails.root
2008-11-29 20:06:49 -08:00
Joshua Peek
cec8a92a6d
Merge branch 'master' of git@github.com:rails/rails
2008-11-29 15:59:47 -06:00
David Heinemeier Hansson
fdfcdf4673
Enhanced Rails.root to take parameters that'll be join with the root, like Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [ #1482 state:committed] (Damian Janowski)
2008-11-29 10:57:36 +01:00
David Heinemeier Hansson
1e8f9634f6
Include Rack in the server noise
2008-11-29 10:45:52 +01:00
David Heinemeier Hansson
34905673a3
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
...
This reverts commit 4d910b033379727e5e7355590c50c72fc75e56db.
2008-11-29 10:45:06 +01:00
Joshua Peek
9fc23745f1
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
2008-11-28 11:18:28 -06:00
David Heinemeier Hansson
5fa0457542
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
...
This reverts commit 4d910b033379727e5e7355590c50c72fc75e56db.
2008-11-27 21:04:24 +01:00
David Heinemeier Hansson
6fa9957e0e
Merge branch 'master' of git@github.com:rails/rails
2008-11-27 18:59:33 +01:00
David Heinemeier Hansson
f2ee056873
Added view path support for engines [DHH]
2008-11-27 18:59:24 +01:00
Joshua Peek
4d910b0333
Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache.
2008-11-26 20:54:47 -06:00
David Heinemeier Hansson
3cc9d1c5ad
Let all plugins not just engines have a config/routes.rb file
2008-11-26 20:30:21 +01:00
David Heinemeier Hansson
4999d52e08
Added that config/routes.rb files in engine plugins are automatically loaded (and reloaded when they change in dev mode) [DHH]
2008-11-26 20:03:25 +01:00
David Heinemeier Hansson
63d8f56774
Added app/[models|controllers|helpers] to the load path for plugins that has an app directory (go engines ;)) [DHH]
2008-11-26 14:41:20 +01:00
Jeremy Kemper
8d2ca7dde1
Merge branch 'master' of git@github.com:rails/rails
2008-11-25 18:48:46 -08:00
Joshua Peek
c80fe1093d
Move debugger into middleware
2008-11-25 15:05:07 -06:00
Joshua Peek
e126e1aac0
don't try to require vendored rack in script/server
2008-11-25 13:26:38 -06:00
Jeremy Kemper
ce50ca1baf
Explicitly require AS::Deprecation for the SecretKeyGenerator. Bring in ActiveSupport::TestCase for its tests.
2008-11-24 22:39:11 -08:00
Jeremy Kemper
36dcfcf126
Really remove components.
2008-11-24 18:48:00 -08:00
Jeremy Kemper
104f3a5776
Add config.preload_frameworks to load all frameworks at startup. Default to false so Rails autoloads itself as it's used.
2008-11-24 18:43:04 -08:00
Jeremy Kemper
d01f75b1f0
Initializer#env relies on StringInquirer autoload. Style fixes.
2008-11-24 18:10:23 -08:00
Pratik Naik
1cbdd53bd3
Add a rake task to generate dispatchers : rake rails:generate_dispatchers
2008-11-24 19:50:09 +01:00
Pratik Naik
b7568e77d7
Fix typo in 5b5730cc6e9194fb5f67fe79d2c7849e200ba6ed
2008-11-24 19:35:09 +01:00
Yaroslav Markin
5b5730cc6e
Don't generate public/dispatch.cgi/fcgi/rb files by default.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-11-24 19:31:58 +01:00
Joshua Peek
5ffd1e0c02
Ensure integration test is load in script/console [ #1452 state:resolved]
2008-11-24 09:58:52 -06:00
David Heinemeier Hansson
42b4407e35
Strip out the ./ part of the test path so the backtrace align perfectly
2008-11-24 15:43:47 +01:00
Manfred Stienstra
1f48c09094
Accept a prefix argument to filter_backtrace_with_cleaning [ #1456 state:committed]
...
Add a prefix argument to filter_backtrace_with_cleaning so it has
the same arity as test/unit's filter_backtrace.
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-11-24 11:35:55 +01:00
Joshua Peek
d75a234501
simplify console with helpers
2008-11-23 15:15:20 -06:00
David Heinemeier Hansson
9e08a3bb1d
Added rake rails:update:application_controller to renamed application.rb to application_controller.rb -- included in rake rails:update so upgrading to 2.3 will automatically trigger it [ #1439 state:committed] (kastner)
2008-11-23 13:39:30 +01:00
Joshua Peek
708f4c3ae6
Switch script/server to use rack processor
2008-11-22 14:48:32 -06:00
Joshua Peek
40c6a8b970
Drop lighttpd support from script/server
2008-11-22 14:10:50 -06:00
Joshua Peek
0ecf2f6bdb
Kill dead "new_mongrel" handler
2008-11-22 14:00:58 -06:00
Cyril Mougel
2144c0f8ff
Add flush by ensure in script/runner because no flush in production mode [ #803 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-22 13:32:36 -06:00
David Heinemeier Hansson
f42c77f927
Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
2008-11-22 18:06:08 +01:00
Akira Matsuda
baa8ee5eb1
Require active_support/secure_random for Ruby 1.9.
...
[#1326 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-11-19 09:57:09 -08:00
David Heinemeier Hansson
51a19ae2bf
Assume that the next version is going to be 2.3 for now
2008-11-19 14:12:38 +01:00
Matt Jones
45ba4ec626
add vendor/ back to load paths; catch errors in constant loading
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-11-18 14:32:46 +01:00
David Heinemeier Hansson
d9b92ee11b
Added config.i18n settings gatherer to config/environment, auto-loading of all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
2008-11-18 14:23:13 +01:00
Eugene Bolshakov
3c9beb3dab
Add helper test generators [ #1199 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-11-17 21:56:39 -06:00
Pratik Naik
d22fe41cf8
Fix a typo in test helper
2008-11-18 08:40:38 +05:30
Pratik Naik
3319fa6965
Dont require 'application' when running tests
2008-11-18 08:38:01 +05:30
Pratik Naik
8f71d6bcf6
Fix script/console
2008-11-18 08:28:26 +05:30
Jeremy Kemper
5a4789e86a
Explicitly require test/unit so tests autorun
2008-11-17 15:18:01 -08:00
David Heinemeier Hansson
fcce1f17ea
BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb 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]
2008-11-17 19:27:35 +01:00
Jeremy Kemper
eeea1a26ec
Merge branch 'master' into testing
2008-11-15 12:21:04 -08:00
David Heinemeier Hansson
61e43700b8
Prepare for RC2
2008-11-14 12:26:50 +01:00
David Heinemeier Hansson
ff4ccb8334
Revert "Move fixtures settings from AR::TestCase to railties test_help" -- it broke all the tests!
...
This reverts commit 9a88ab64bb45ddb2bdcf80fab9203111d8f8abb4.
2008-11-14 12:01:26 +01:00
Chris Wanstrath
334178722b
Properly check silence_spec_warnings class variable [ #1372 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-11-14 11:49:30 +01:00
Jeremy Kemper
9a88ab64bb
Move fixtures settings from AR::TestCase to railties test_help
2008-11-13 19:09:23 -08:00
Jeremy Kemper
b17eb65d00
Move fixtures settings from AR::TestCase to railties test_help
2008-11-12 11:33:09 -08:00
Jeremy Kemper
a0e7b99443
Remove deprecated Gem.manage_gems
2008-11-12 11:32:36 -08:00
Jeremy Kemper
582aa2ead5
Set up fixtures in app's test_help
2008-11-07 16:23:22 -05:00
Matt Jones
01433af6a5
Make refresh_specs more resilient. Always add vendor/gems to gem search path. Use Gem.clear_paths to ensure we get a current searcher.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-11-01 17:35:56 +01:00
Mathias Meyer
7418d367f0
Fixed plugin generator so that generated unit tests would subclass 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>
2008-10-30 12:57:52 +01:00
Pratik Naik
896058b485
Merge with docrails
2008-10-22 23:14:00 +05:30
Pratik Naik
a03e2b356c
Merge with docrails. Also add a rake task to generate guides in your rails application :
...
rake doc:guides
The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
2008-10-21 18:33:40 +01:00
Pratik Naik
326036de46
Fix script/generate warning
2008-10-21 01:47:44 +01:00
Matt Jones
326030a1e8
config.gem: Fix typo in unpack, skip dependencies on unloaded gems, and silence spec warnings on refresh. [ #1128 ]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-10-20 21:45:01 +01:00
Michael Koziarski
6d1d48de6a
Memoize the require and construction of the StringInquirer
2008-10-19 13:26:36 +02:00
Pratik Naik
5384ba3081
Don't create test/performance/test_helper.rb. Just require the needed files from test directly. [ #1135 state:resolved]
2008-10-17 22:58:37 +02:00
Michael Koziarski
09c1718198
Remove the class_path from the collisions test.
...
The class_path is often taken already in situations like Admin namespaces etc.
2008-10-14 21:59:55 +02:00
Joshua Peek
9ab83b1cd1
Don't include the path when checking class collisions [ #545 state:resolved]
2008-10-13 21:43:58 -05:00
Matt Jones
1b44bbff42
Initialize silence_spec_warnings
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:resolved]
2008-10-13 17:27:31 +02:00
Matt Jones
9f15870946
Make VendorGemSourceIndex handle broken/missing specs generated by previous versions.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-10-13 17:27:25 +02:00
Matt Jones
aa4a7c3530
Fix script/console --sandbox warning. [ #1194 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-10-09 01:35:21 +01:00
Matt Jones
0dea211f44
Fix definition of find_name
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1128 state:committed]
2008-10-08 17:36:53 +02:00
Matt Jones
2d644fd136
Mark gem as not loaded when spec not found
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-10-08 17:36:52 +02:00
Chris Cherry
1c75b4fd42
Fix deprecated ActionController::Base.relative_url_root call in mongrel command
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-10-05 17:25:57 -05:00
Pratik Naik
a2932784bb
Merge docrails
2008-10-05 22:16:26 +01:00
Matt Jones
2bf58aa782
Fix a number of errors in the config.gem mechanism.
...
* Rails::GemDependency was missing definitions for hash and eql?, causing Array#uniq to not work.
* If several versions of a gem are unpacked in vendor, now chooses the highest if no version is specified.
* streamlined add_load_path. Now sets up Rubygems correctly to allow 'gem' to find frozen gems, with
gems frozen to vendor/gems and specifications in vendor/gems/<gem-name>/.specification
* Rails::GemDependency#specification would return a spec for the highest installed version, even for
frozen gems and/or previously loaded lower versions. See in part ticket #1123 .
* removed vendor from default_load_paths - it was causing autoloading to append Gems::Gems::<gem-dir> to
constant names
* added additional tests for loading frozen gems.
* incorporates the fix from #1107 for vendor rails
* defers to freeze:gems for handling the Rails framework. gems:unpack WILL NOT place a copy of Rails
in vendor/gems. Should close #1123 completely.
* incorporates, via using the gem loader for frozen gems, fixes corresponding to #227 , #324 , #362 , #527 , and #742 .
* gem plugins now work the same whether frozen or not. Correctness of the behavior is a matter for another ticket...
Signed-off-by: rick <technoweenie@gmail.com>
2008-10-05 10:16:17 -07:00
Antonio Cangiano
f0e90740d0
Add IMB DB support to Rails application generator. [ #1136 state:resolved]
...
Usage : rails app_name -d ibm_db
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-10-04 13:54:27 +01:00
Luca Guidi
1bc267d216
Make sure recreate MySQL test database with the proper encoding and collation [ #1165 state:resolved]
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1165 state:committed]
2008-10-03 22:08:55 +02:00
Michael Koziarski
a78ec93036
Partially revert 185fe2e9cce737d69d3b47a656f3651ce152c0c1
...
We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
2008-09-24 18:46:45 +02:00
Michael Koziarski
5f86451a4c
Bump the Version constants to align with the *next* release rather than the previous release.
...
This allows people tracking non-release gems or git submodules to use the constants.
2008-09-22 21:32:12 +02:00
Philip Hallstrom
c47525a583
make db:migrate:redo rake task accept an optional VERSION to target that specific migration to redo
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-09-17 11:14:21 +02:00
miloops
c98cb8ffc2
Add --debugger option to script/console.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1025 state:committed]
2008-09-11 17:12:00 +02:00
Antonio Cangiano
854cf3d721
Fix for SQLite's db creation warnings [status:committed #614 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2008-09-09 23:56:37 -05:00
David Heinemeier Hansson
dc8b21dc3c
Dont reference the class being tested when it can be assumed
2008-09-09 17:59:34 -05:00
Akira Matsuda
5f7c42413b
Ruby 1.9 compat: remove instance variables and global variables from block parameters
...
[#1000 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-09-09 10:35:53 -07:00
Akira Matsuda
8e68ec4dcc
Ruby 1.9 compat: use String#lines instead of to_a in Ruby 1.9
...
[#1001 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-09-09 10:35:24 -07:00
Akira Matsuda
07eb9ffd15
Ruby 1.9 compat: remove constants from block parameters
...
[#1002 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-09-09 10:07:59 -07:00
Pratik Naik
6ef35461dc
Merge docrails
2008-09-03 17:58:47 +01:00
Jeremy Kemper
6f932b4790
Database connections are now pooled, one pool per #establish_connection call.
...
Pools start out empty and grow as necessary to a maximum size (default is 5,
configure size with key 'pool' in your database configuration). If no
connections are available, a thread will wait up to a 'wait_timeout' time
(default is 5 seconds).
Connections are verified and reset when checked out from the pool (usually
upon first access to ActiveRecord::Base.connection), and returned back to the
pool after each request.
If you would like to use connection pools outside of ActionPack, there is an
ActiveRecord::Base.connection_pool method that gives you access to the pool,
and you can manually checkout/checkin connections, or supply a block to
ActiveRecord::Base.connection_pool.with_connection which takes care of the
checkout/checkin for you.
[#936 state:resolved]
2008-09-02 18:32:54 +02:00
Jeremy Kemper
a1eb4e11c2
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Conflicts:
actionpack/test/controller/layout_test.rb
2008-08-31 13:20:15 -07:00
Nathaniel Bibler
efa6620a2a
Added optional rake doc:app TITLE environment parameter
...
[#939 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-08-29 21:04:04 -07:00
Nick Sieger
c1b949869c
Remove call to active_record.allow_concurrency since it's deprecated
2008-08-29 14:12:13 -05:00
Nick Sieger
3151d96663
Revert "Change all databases.rake adapter 'when' statements to use regexes."
...
This reverts commit 3d2512d38d2e28b3ea669139f7c7b0307522aa72.
2008-08-29 14:12:09 -05:00
Nick
1a81f156bd
Change all databases.rake adapter 'when' statements to use regexes.
...
This is more friendly to JRuby/JDBC adapters (with names like 'jdbcmysql')
and leaves the door open to alternate implementations of adapters in the
future.
2008-08-29 14:12:08 -05:00
Michael Koziarski
b7cd4ded93
Formally deprecate the old secret key generator
2008-08-27 15:18:07 +02:00
Hongli Lai (Phusion
b3411ff59e
Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.
...
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]
2008-08-27 15:08:16 +02:00
Michael Koziarski
eb2b81c766
Reverse the priority of the mysql commands in dbconsole
2008-08-24 13:20:23 +02:00
Tarmo Tänav
b1f3c6e6ec
Generate belongs_to association when generating a model
2008-08-23 21:54:43 +03:00
Tarmo Tänav
9223a91911
Generate belongs_to associations automatically for 'references' types [ #640 state:resolved]
2008-08-23 20:58:44 +03:00
Tarmo Tänav
cf28109158
Always require activesupport, even if its constant already exists
...
This is needed because the existance of the ActiveSupport
constant by itself does not guarantee that the whole library
has been loaded.
Also load the StringInquirer in the Rails#env method as
the it might be called inside the initializer block
before activesupport itself has been loaded.
2008-08-23 18:05:52 +03:00
Chris Lloyd
4e4277b9e0
Fixed that rake doc:plugins to uses UTF-8. [ #573 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-08-22 13:36:47 +01:00
Tom Ward
89d1c77dd0
Initializer to sort files before eager loading. [ #859 state:resolved]
...
Changed Rails::Initializer to sort files before eager loading them. This ensures that
any files in a parent directory will be loaded before files in a subdirectory of the
'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-08-22 13:06:34 +01:00
Joshua Peek
5df8ff1d6b
Touch file with git revision when freezing edge
2008-08-19 17:16:35 -05:00
Joshua Peek
bd7edcf286
Removed config.ru template from app generator
2008-08-19 16:46:15 -05:00
Joshua Peek
e9ae2b2f4c
Added rack logger middleware that tails the environment log
2008-08-19 00:18:26 -05:00
Joshua Peek
c1a8690d58
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
2008-08-18 23:36:13 -05:00
Matthew Rudy Jacobs
eb4668b26a
rake db:fixtures:load and db:fixtures:identify now accept a FIXTURES_PATH option eg. "rake db:fixtures:load FIXTURES_PATH=spec/fixtures"
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#792 state:committed]
2008-08-09 18:36:40 +02:00
Daniel Rodríguez Troitiño
06e4eb49ea
Added file name information for errors and exceptions in script/runnner
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-08-08 10:48:52 +02:00
Joshua Peek
f5bcbde1e3
Make sure ActionView is loaded inorder to build view paths
2008-08-06 17:40:03 -05:00
Joshua Peek
e5b1ab7cc3
MemoryStore is the only "unsafe" store. Make it threadsafe by default.
2008-08-06 14:54:18 -05:00
Joshua Peek
177a35e711
Added config.threadsafe! to toggle allow concurrency settings and disable the dependency loader
2008-08-04 22:19:41 -05:00
Ben Sandofsky
61842d97c5
Make requiring gems optional.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#743 state:resolved]
2008-08-04 14:53:21 +02:00
Jeremy Kemper
46a458206f
Merge branch 'master' of git@github.com:rails/rails
2008-07-31 16:35:58 -07:00
Jeremy Kemper
a540725f0d
load_application_classes requires files relative to the load path and without .rb extension, including .rb files in subdirectories
2008-07-31 16:35:17 -07:00
Tarmo Tänav
0b9bfbdebf
Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:39:48 -05:00
Tarmo Tänav
656f0e7c6c
Fix file permissions
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:36:23 -05:00
Joshua Peek
030d5854ad
Turn cache_classes on by default [ #645 state:resolved]
2008-07-31 13:42:28 -05:00
Michael Koziarski
f64bd2ca85
Ensure dbconsole includes the -p parameter to mysql as intended
2008-07-31 09:46:40 +02:00
José Valim
c4038764d2
Initializer requires ERB explicitly instead of assuming Action Pack loaded it. [ #722 state:resolved]
2008-07-30 01:49:49 -07:00
José Valim
c8e80f6389
Initializer skips prepare_dispatcher if Action Controller isn't in use. [ #721 state:resolved]
2008-07-30 01:41:51 -07:00
Michael Koziarski
d9452d3ab3
Remove incomplete non-blocking logger functionality
2008-07-29 20:01:25 +02:00
Sam Granieri
11fdcf88c2
Check for ActionMailer and ActionController before attempting to eager load their view paths
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-24 13:51:54 -05:00
Joshua Peek
3fd9036fc5
Added config.dependency_loading to enable or disable the dependency loader after initialization
2008-07-24 11:58:26 -05:00
Joshua Peek
97a954bf1d
Load view path cache after plugins and gems.
2008-07-23 10:41:28 -05:00
Miles Georgi
92f944818e
Make script/plugin work with svn+ssh urls. [ #662 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-22 01:43:23 +01:00
Joshua Peek
89ec72c281
Added configurable eager load paths. Defaults to app/models, app/controllers, and app/helpers
2008-07-21 13:43:23 -05:00
Joshua Peek
3bd34b6ffe
Preload application classes. Uses same strategy as phusion passenger.
2008-07-21 13:43:23 -05:00
Joshua Peek
e0d7bace4e
Prefer Mongrel over Thin [ #658 state:resolved]
2008-07-19 11:42:27 -05:00
Nik Wakelin
bbab639136
Set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. [ #446 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-17 02:54:45 +01:00
Pratik Naik
0432d15164
Merge with docrails.
2008-07-16 13:01:23 +01:00
Pratik Naik
8b933517ea
Add config.ru to rails app generator
2008-07-16 05:20:29 +01:00
Joshua Peek
fea5b6fd41
ActionMailer and ActionView can share the same view path cache
2008-07-15 22:58:42 -05:00
Joshua Peek
83e29b9773
Removed config.action_view.cache_template_loading, use config.cache_classes instead
2008-07-15 22:58:42 -05:00
Jeremy Kemper
1edb5c85b5
Give more info on missing gems and abort instead of printing a warning. App can begin in incomplete state otherwise.
2008-07-15 15:50:37 -07:00
Pratik Naik
b337ab0221
Move performance test helper settings to railties
2008-07-15 21:07:25 +01:00
Sebastian A. Espindola
0176e6adb3
Added db:charset support to PostgreSQL. [ #556 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 04:11:52 +01:00
Tim Pope
5c08607082
Make script/plugin install <plugin> -r <revision> option work with git based plugins. [ #257 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 03:47:22 +01:00
Jacek Becela
697ee1a50d
Enable loading fixtures from arbitrary locations. [ #586 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-14 01:32:01 +01:00
Tapajós
0d241f4434
Use full path in database tasks so commands will work outside of Rails root [ #612 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-13 14:19:03 -05:00
Joshua Peek
73b34e9f75
Refactor template preloading. New abstractions include Renderable mixins and a refactored Template class.
2008-07-12 14:33:46 -05:00
Daniel Guettler
f90eb81c65
Ensure script/generate finds generators from symlinked plugins. [ #449 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-12 17:51:48 +01:00
Michael Koziarski
292501c7e0
Use require_dependency 'application' not require in the console bootstraps to avoid requiring application.rb twice
2008-07-11 22:27:36 +02:00
Joshua Peek
f522a89d64
Revert "Fixed generator collisions for nested controller modules."
...
This reverts commit 2d372d704987e05712ccd937e78d8dbd41242efe.
2008-07-11 12:05:02 -05:00
Hongli Lai (Phusion
2b4eb586ef
Plugin locator: sort directory listing because we can't assume that the OS will do it for us. This fixes some unit test failures.
2008-07-09 13:34:36 +02:00
Pratik Naik
cb645c8877
Use ActiveSupport::TimeZone in time:zones rake tasks
2008-07-04 20:07:00 +01:00
Michael Koziarski
dc2d754d60
Support for custom annotations with rake notes:custom and DRY up the task definition.
...
e.g. rake notes:custom ANNOTATION=WTF
2008-07-03 19:42:58 +03:00
Joshua Peek
6c0edef26e
Added Rails.initialized? flag
2008-07-02 21:29:57 -05:00
Ricardo Santos
820992c98f
Ensure script/plugin unsource 'Usage' text is correct. [ #526 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 17:47:19 +01:00
Tim Pope
3a95ee73cf
Make rake test:uncommitted work with Git.
...
Note : rake test:uncommitted is considering only unstaged files.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 05:21:59 +01:00
Carl Porth
a81f16af31
Ensure Rails::Generator quotes file names while generating diff. [ #264 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 03:28:02 +01:00
Pratik Naik
76e00fc784
Ensure observer test inherits from ActiveSupport::TestCase
2008-06-27 18:18:39 +01:00
Pat George
4ddca325ee
Warn and uses singularized ModelName if a plural ModelName is given to script/generate. Override with --force-plural. [ #333 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 16:35:26 +01:00
Bob Klosinski
a93ea88c06
Added Thin support to script/server. [ #488 state:resolved]
2008-06-25 18:56:52 -07:00
Cheah Chu Yeow
f1cfd12487
Allow script/about to run in production mode instead of failing with a cryptic const_missing error.
...
[#370 state:resolved]
2008-06-23 10:27:33 -07:00
Pratik Naik
2e232af91f
Add performance test generator
2008-06-19 20:13:45 +01:00
rick
10c581a6de
fix merge
2008-06-19 09:59:36 -07:00
Jeremy Kemper
6ffe32160e
Rely on quieter db:test:load task
2008-06-17 16:01:48 -07:00
Jeremy Kemper
8e74a434b8
Don't dump schema for every test run, just when migrations are run
2008-06-16 03:47:15 -07:00
Jeremy Kemper
09c70a0c03
Use test/performance/test_helper to do test setup then boost log level and turn on caching
2008-06-15 16:21:32 -07:00
Jeremy Kemper
eab71208db
Performance: integration test benchmarking and profiling. [Jeremy Kemper]
2008-06-14 02:04:38 -07:00
Jeremy Kemper
579086047e
Remove superfluous test_process require
2008-06-12 18:19:40 -07:00
David Heinemeier Hansson
e536d4d888
Changed all generated tests to use the test/do declaration style [DHH]
2008-06-12 20:10:50 -05:00
Joshua Peek
0c9281e821
Drop ActionController::Base.allow_concurrency flag
2008-06-08 22:11:50 -05:00
rick
51e4106dcc
Add the gem load paths before the framework is loaded, so certain gems like RedCloth and BlueCloth can be frozen. [ #320 state:resolved]
2008-06-08 14:30:14 -04:00
rick
faad1e32a8
Fix discrepancies with loading rails/init.rb from gems. [ #324 state:resolved]
2008-06-08 14:04:04 -04:00
Jacek Becela
86a042ddd9
Make plugins initialize also from rails/init.rb to ensure consistency with gems used as plugins
...
[#272 state:resolved]
2008-06-08 13:05:45 -04:00
Jeremy Kemper
1d1ea92f40
GemDependency#specification should be public
2008-06-06 20:41:22 -07:00
Ryan Kinderman
ed0cb91a83
Ensure plugins' rake tasks are loaded before application's rake tasks. [ #259 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-05 12:44:38 +01:00
Joshua Peek
5fe2878973
Renamed StringQuestioneer to StringInquirer.
2008-06-04 15:06:32 -05:00
Joshua Peek
6e85f14817
Namespaced StringQuestioneer under ActiveSupport.
2008-06-04 15:02:51 -05:00
David Heinemeier Hansson
82e96eb294
Dependencies move to ActiveSupport::Dependencies missed a few spots
2008-06-03 19:19:08 -05:00
David Heinemeier Hansson
8afa725f4b
Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? [DHH]
2008-06-03 17:44:56 -05:00
Joshua Peek
714d42d1a6
Fixed initializer tests by stubbing out gems dependencies check.
2008-06-02 10:40:01 -05:00
Joshua Peek
185fe2e9cc
In 9c4f003, gem installation quotes versions. Do the same for unpack and update tests to reflect the change.
2008-06-02 09:54:36 -05:00
Joshua Peek
a980eb8c77
Added Rack middleware to handle static files.
2008-06-01 13:18:31 -07:00
rick
71528b1825
Previously we only added the "lib" subdirectory to the load path when
...
setting up gem dependencies for frozen gems. Now we add the "ext"
subdirectory as well for those gems which have compiled C extensions
as well. [Wincent Colaiuta]
[#268 state:resolved]
2008-05-31 17:22:16 -07:00
David Heinemeier Hansson
f9db7695fe
Making ready for release of 2.1
2008-05-31 17:03:03 -07:00
rick
a6e7908327
fix doc typos
2008-05-31 16:46:47 -07:00
Dmitriy Timokhin
224c8e6afb
Expose GemPlugin load_paths so they can be added to Dependencies.load_paths. Also use full_gem_path as root of GemPlugin to make things compatible. [ #213 state:resolved]
2008-05-31 16:46:13 -07:00
rick
d5bcff172b
Consolidate error messages for missing gems, and skip them when running rake gems:* tasks. [rick]
2008-05-31 16:36:34 -07:00
rick
2506e5c9a7
Merge branch 'master' of git@github.com:rails/rails
2008-05-31 15:59:01 -07:00
rick
9c4f00350a
fix Gem installation command with versions
2008-05-31 15:58:08 -07:00
Tim Morgan
fb89d7fa6d
Run gem install as external command. [ #210 state:resolved]
2008-05-31 15:57:03 -07:00
David Heinemeier Hansson
f32bceeee1
Merge branch 'master' of git@github.com:rails/rails
2008-05-31 15:51:28 -07:00
David Heinemeier Hansson
9b75483bf3
Added better error message for when the class name is already used (and dont show suggestions if there are none)
2008-05-31 15:51:01 -07:00
Michael Koziarski
0abf0da001
Don't provide the password with dbconsole unless explicitly opted in.
...
Some operating system configurations allow other users to view your process list
or environmental variables. This option should not be used on shared hosts.
http://dev.mysql.com/doc/refman/5.0/en/password-security.html
http://www.postgresql.org/docs/8.3/static/libpq-envars.html
2008-05-31 15:30:26 -07:00
Tekin Suleyman
1b0654ea41
Ensure script/plugin installs ssh/git plugins. [ #277 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-29 20:21:49 +01:00
Pratik Naik
98dc582742
Merge docrails.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-25 12:29:00 +01:00
Lawrence Pit
c2036adf76
Show rails version when the server starts. [ #235 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-22 12:06:27 +01:00
Ryan Bates
4e084c3d98
Add Rails.version. [ #236 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-22 11:56:30 +01:00
Pratik Naik
46f30f902f
Merge documentation changes from docrails.
...
commit 0fc3381aa5359f31b36057d7bfba2e0eb6a3c064
Author: Xavier Noria <fxn@hashref.com>
Date: Fri May 16 23:44:51 2008 +0200
Conventions. Formatting. Revising docs all over the rails.
This revision encourages the modern resource-oriented form_for usage. In addition corrects some markup and other details.
commit 70e4bcf5cb039bea073851faed2df9f465e6f2f8
Author: Chris Kampmeier <chris@kampers.net>
Date: Fri May 16 12:09:46 2008 -0700
Fix a couple spelling errors in docs
commit 6ea5e4208f724b50e774e6a1af027336c3ee3de1
Author: Chris O'Sullivan <thechrisoshow@gmail.com>
Date: Fri May 16 16:09:11 2008 +0100
Added docs about source_type for has_one association
commit a01a0178be297b0eb62909819a15a01c6b69a841
Author: miloops <miloops@gmail.com>
Date: Wed May 14 09:22:39 2008 +0000
Change migration generator USAGE to explain the timestamped migrations behaviour
commit 4e2bc02163aa646ab1304b1b5bec98a7af8927f5
Author: Xavier Noria <fxn@hashref.com>
Date: Fri May 16 00:43:03 2008 +0200
minor revision in url_for docs
Made explicit that RESTful and controller/action styles are not interchangeable, and revised some markup.
commit d6ecce66f4e125531875006eea8022b73fe135b5
Author: Michael Hartl <michael@michaelhartl.com>
Date: Thu May 15 10:46:40 2008 -0700
Expanded and updated the link_to documentation
commit b8c46c86f0b785f6afc3c58eeb1b347543f5901e
Author: Cody Fauser <cody@jadedpixel.com>
Date: Wed May 14 09:10:02 2008 -0400
Improve and cleanup ActionMailer documentation
commit 9546ee299952c86329c4854f9b3776382c0575ff
Author: Yehuda Katz <wycats@gmail.com>
Date: Mon May 12 23:41:43 2008 -0700
Add documentation for Inflector.inflections
commit cbd5db8f5165f013069b02414f9bf762d88f619f
Author: Manik Juneja <mjuneja@manik-junejas-computer.local>
Date: Mon May 12 23:43:31 2008 +0530
minor changes in railties/README. Added dbconsole introduction
commit 130a280ddee1f96ccf378b52c17ee742b5e54f4a
Author: Gaurav Sharma <gaurav@norbauer.com>
Date: Mon May 12 18:00:19 2008 +0530
adding documentation for cached_attributes
commit 164c9586480f0a02522ea15ec7fb42c6a783a74d
Author: TomK32 <tomk32@tomk32.de>
Date: Mon May 12 10:59:33 2008 +0200
proper heading for "Example:"
commit 35634feb474cc55fbc95edeffe98cec241d45f23
Author: Matt Boehlig <thetamind@gmail.com>
Date: Sun May 11 16:46:07 2008 -0500
Cleanup whitespace and change_table documentation
commit 80bba28a1a56a0cafeb0fc94659905e88129bc31
Author: Xavier Noria <fxn@hashref.com>
Date: Sun May 11 02:54:02 2008 +0200
documented the source annotation extractor
commit e6823bb1650d9b0fea58bd2d355f388961a408b3
Author: Mike Mondragon <mikemondragon@gmail.com>
Date: Fri May 9 13:49:56 2008 -0700
Added additional information about processing email with ActionMailer and the strategy one might want to employ to do so.
commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0
Author: Xavier Noria <fxn@hashref.com>
Date: Thu May 8 23:49:36 2008 +0200
corrected and completed docs of increment/decrement/toggle in AR::Base
commit 2fead68b3192332eee27945ed95a94a64ca73f70
Author: Austin Putman <austin@emmanuel.local>
Date: Wed May 7 19:35:46 2008 -0700
Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing.
commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1
Author: Teflon Ted <github@rudiment.net>
Date: Wed May 7 16:08:49 2008 -0400
Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 14:00:59 2008 +0200
Applied list conventions in AR::Base
commit 5bd18429f09d44e75191bec42a6db04bd33f3030
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 13:53:35 2008 +0200
Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
commit 2fa628e34b25166afb49e3afeea87e770ab84256
Author: Xavier Noria <fxn@hashref.com>
Date: Wed May 7 11:52:33 2008 +0200
revised details in Exceptions section of AR::Base docs
commit d912bd5672316454457ae83f6e9dda5197beeb6f
Author: Yaroslav Markin <yaroslav@markin.net>
Date: Wed May 7 13:50:28 2008 +0400
Add a filter_parameter_logging usage hint to generated ApplicationController.
This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
commit f81d771f0657ae8375b84a77a059812cce5d6fd9
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:35:05 2008 -0700
doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
Added documentation demonstrating the use of #through_reflection for
finding intervening reflection objects for HasManyThrough
and HasOneThrough.
commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:47:41 2008 +0800
Document AttributeAssignmentError and MultiparameterAssignmentErrors.
commit 8f463550b597db2156b67733f31aed13487fbc3a
Author: John Barnette <jbarnette@gmail.com>
Date: Tue May 6 22:46:44 2008 -0700
Killing/fixing a bunch of outdated language in the AR README.
commit 284a930a93fbee16e25d06392779dbf2f03e9e12
Author: Jonathan Dance <jd@wuputah.com>
Date: Tue May 6 14:58:26 2008 -0400
improvements to the page caching docs
commit 9482da621390c874da7c921c8bd6230caae7035a
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 18:13:40 2008 +0200
validates_numericality_of() "integer" option really is "only_integer"
commit e9afd6790a8f530528f6597a7f59bb283be754f6
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:11:59 2008 +0200
Harmonized hash notation in AR::Base
commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:06:19 2008 +0200
Turned options into rdoc-lists in AR::Base
commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297
Author: Marshall Huss <mwhuss@Macbook.local>
Date: Sun May 4 23:21:33 2008 -0400
Added information of how to set element_name in the case the user has a name confliction with an existing model
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-16 23:21:35 +01:00
Kyle Hargraves
77f873acf2
dbconsole should not require a username for postgresql. [ #207 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-16 13:10:14 +01:00
Amol Hatwar
2d372d7049
Fixed generator collisions for nested controller modules.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-05-13 16:02:56 -05:00
Tarmo Tänav
3fee2378ed
Use 'public' schema path when connecting to 'postgres' database. [ #170 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-13 18:25:30 +01:00
rick
74fd17346f
Merge branch 'master' of git@github.com:rails/rails
2008-05-13 09:41:10 -07:00
Tarmo Tänav
4dedc7ddca
Use 'postgres' database instead of 'template1'
...
The 'postgres' database is meant for use by utilities and third
party applications. CONNECT permission to the 'template1' database
is usually only available to superusers which is why 'postgres'
should be preferred as users whith "CREATE DATABASE" permissions
are not neccessarily superusers.
2008-05-13 17:34:47 +01:00
Matthew Brindley
9fb01ce4b1
ScaffoldGenerator to create public/stylesheets if missing. [ #165 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-13 10:50:00 +01:00
David Heinemeier Hansson
00640de861
Updated copyright years
2008-05-11 18:34:05 -05:00
David Heinemeier Hansson
b60c8a573e
Making ready for RC1 release
2008-05-11 18:29:44 -05:00
Pratik Naik
80e18e759e
Ensure dbconsole respects erb in database.yml. [ #157 state:resolved] [Andrew Bennett]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-11 23:58:04 +01:00
rick
d09a8446d5
fix merge conflict with actionpack changelog
2008-05-10 17:46:55 -07:00
Pratik Naik
dc4eec1129
Merge docrails:
...
commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0
Author: Xavier Noria <fxn@hashref.com>
Date: Thu May 8 23:49:36 2008 +0200
Overall documentation improvement and markup corrections. Zillion changes.
commit 2fead68b3192332eee27945ed95a94a64ca73f70
Author: Austin Putman <austin@emmanuel.local>
Date: Wed May 7 19:35:46 2008 -0700
Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing.
commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1
Author: Teflon Ted <github@rudiment.net>
Date: Wed May 7 16:08:49 2008 -0400
Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 14:00:59 2008 +0200
Applied list conventions in AR::Base
commit 5bd18429f09d44e75191bec42a6db04bd33f3030
Author: Sunny Ripert <negatif@gmail.com>
Date: Wed May 7 13:53:35 2008 +0200
Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
commit d912bd5672316454457ae83f6e9dda5197beeb6f
Author: Yaroslav Markin <yaroslav@markin.net>
Date: Wed May 7 13:50:28 2008 +0400
Add a filter_parameter_logging usage hint to generated ApplicationController.
This may help to remind the developer to filter sensitive information from application logs.
Closes #11578
commit b243de0db3c2605121e055079854af5090d06374
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:39:47 2008 -0700
doc: disambiguating an example ActiveRecord class
commit f81d771f0657ae8375b84a77a059812cce5d6fd9
Author: Jack Danger Canty <git@6brand.com>
Date: Tue May 6 23:35:05 2008 -0700
doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
Added documentation demonstrating the use of #through_reflection for
finding intervening reflection objects for HasManyThrough
and HasOneThrough.
commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:47:41 2008 +0800
Document AttributeAssignmentError and MultiparameterAssignmentErrors.
commit 8f463550b597db2156b67733f31aed13487fbc3a
Author: John Barnette <jbarnette@gmail.com>
Date: Tue May 6 22:46:44 2008 -0700
Killing/fixing a bunch of outdated language in the AR README.
commit aca44bcd92ef783abdf484b58abdde6786db0f89
Author: Cheah Chu Yeow <chuyeow@gmail.com>
Date: Wed May 7 13:34:52 2008 +0800
Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout.
commit 284a930a93fbee16e25d06392779dbf2f03e9e12
Author: Jonathan Dance <jd@wuputah.com>
Date: Tue May 6 14:58:26 2008 -0400
improvements to the page caching docs
commit 9482da621390c874da7c921c8bd6230caae7035a
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 18:13:40 2008 +0200
validates_numericality_of() "integer" option really is "only_integer"
commit e9afd6790a8f530528f6597a7f59bb283be754f6
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:11:59 2008 +0200
Harmonized hash notation in AR::Base
commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1
Author: Sunny Ripert <negatif@gmail.com>
Date: Mon May 5 12:06:19 2008 +0200
Turned options into rdoc-lists in AR::Base
commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297
Author: Marshall Huss <mwhuss@Macbook.local>
Date: Sun May 4 23:21:33 2008 -0400
Added information of how to set element_name in the case the user has a name confliction with an existing model
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-09 10:40:50 +01:00
Jeremy Kemper
2561732a08
Some dbconsole tweaks. [ #102 state:resolved]
2008-05-07 13:54:02 -07:00
Jeremy Kemper
b510d8bfd8
Add script/dbconsole to app generator
2008-05-07 13:52:00 -07:00
Steve Purcell
4a07103687
Add 'script/dbconsole' -- the database analog of 'script/console'
2008-05-07 13:52:00 -07:00
Michael Koziarski
a08004a9a7
Merge branch 'master' of git@github.com:rails/rails
2008-05-06 20:53:56 +12:00
rick
92e2e5990c
include bugfix to [e792d4ab70448f79142fdf492390682ff5ea6398] for rubygems 1.0.1. Gem::DependencyList#dependency_order was bombing with nil specs passed in from a frozen gem. [ #122 ]
2008-05-06 01:20:59 -07:00
Paul Barry
e792d4ab70
Added code to make initialization process call rails/init.rb for unpacked gems
2008-05-06 00:52:12 -04:00
Pete Deffendol
c26d10563e
PostgreSQL: update rake tasks to use full settings from database.yml
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-05-04 15:59:34 +12:00
Michael Koziarski
437f918646
Allow custom loggers to work with script/server.
...
Instead of requiring the initializer and initializing the logger, create the file manually before tailing it.
[atnan] Closes #8665 (trac)
2008-05-04 12:31:34 +12:00
Pete Deffendol
205750c8de
PostgreSQL: Connect to template1 database when creating or dropping db
...
* The template1 database is always available on a PostgreSQL install
* The previous behavior expected a database with the same name as the
connecting user, which may not be available
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#38 state:resolved]
2008-05-04 12:20:14 +12:00
Xavier Noria
64092de257
Improve documentation coverage and markup
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-05-02 14:45:23 +01:00
David Heinemeier Hansson
926f4648f0
Made the location of the routes file configurable with config.routes_configuration_file (Scott Fleckenstein) [ #88 state:resolved]
2008-05-01 17:26:31 -05:00
Hongli Lai (Phusion
1f2a4b37ac
Prevent AssetTagHelper from crashing if RAILS_ROOT is not defined. Fixes compatibility with Passenger. [ #84 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-05-01 12:45:03 -07:00
David Heinemeier Hansson
1282ddaadc
Fixed tabs to spaces [ #47 state:resolved]
2008-04-29 17:23:50 -05:00
Jeremy Kemper
90f6062f7d
run prepare callbacks after after_initialize blocks so config.to_prepare actually works
2008-04-28 12:02:50 -07:00
John Barnette
7f4171da5e
Be friendlier when upgrading apps with an old boot.rb.
...
If Rails doesn't respond to vendor_rails?, abort with an error asking
the user to run 'rake rails:update'.
Signed-Off-By: Michael Koziarski <michael@koziarski.com>
2008-04-28 09:16:13 +12:00
Joshua Peek
0a94f16b95
Fallback to Ruby's pseudo random number generator if the system does not have SHA512 installed.
2008-04-21 19:49:16 -05:00
Cody Fauser
4809dcc1b5
* Remove default_url_options from mailer generator
...
* Improve mailer documentation regarding generating URLs
* Add no_match to mailer generator to warn contributors about default_url_options
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-21 14:31:54 -05:00
Joshua Peek
1642b2362e
Gem dependencies don't require a version. Also fixed up failing gem dependency tests.
2008-04-21 12:23:15 -05:00
Mislav Marohnić
69a5c1df82
Add example for default_url_options[:host] to generated mailers.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:19:28 -05:00
Mislav Marohnić
36eecda8d0
Changed mailer generator to not use instance variables.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:13:15 -05:00
Mislav Marohnić
dfdb9f738e
Cleanup generator tests by extracting repeated code into generator_test_helper. Add test for mailer generator.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-04-18 17:10:58 -05:00
Pratik Naik
986aec5dbb
Refactor Dispatcher callbacks to remove unnecessary Dependencies checks in production environment.
2008-04-18 13:05:43 +01:00
David Heinemeier Hansson
420c4b3d88
Added Rails.public_path to control where HTML and assets are expected to be loaded from (defaults to Rails.root + "/public") #11581 [nicksieger]
2008-04-13 17:33:27 -05:00
Geoffrey Buesing
cfd56882af
rake time:zones:local finds correct base utc offset for zones in the Southern Hemisphere
2008-04-12 16:06:29 -05:00
Michael Koziarski
6ed9e68e21
Allow freezing to specific releases with rake rails:freeze:edge RELEASE=1.2.0 per-release zip files are generated automatically by git-archive on dev.rubyonrails.org.
2008-04-12 12:08:26 +12:00
David Dollar
4364c361b5
Now that we have gems:unpack and gems:build allowing for integration of
...
100% of your gems into vendor/ it would be nice to have the ability to
automatically unpack the full dependency tree of your specified gems.
This patch adds the rake task gems:unpack:dependencies to do this.
Usage:
gems:unpack:dependencies # unpack all dependencies
gems:unpack:dependencies GEM=foo # unpack all dependencies for gem foo
2008-04-11 18:25:11 -04:00
Jeremy Kemper
4b17082107
rake rails:freeze:edge using http://dev.rubyonrails.org/archives/rails_edge.zip instead of Subversion
2008-04-10 22:15:50 -07:00
Rick Olson
95fdc82fb2
Require rubygems if needed when initializing GemDependency instances
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-09 16:24:32 +00:00
Rick Olson
0bea3f8391
Don't require rails/gem_builder during rails initialization, it's only needed for the gems:build task. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-08 04:21:32 +00:00
Josh Peek
2cdc613598
script/performance/profiler compatibility with the ruby-prof >= 0.5.0. Closes #9176 . [Catfish]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-07 19:29:09 +00:00
Rick Olson
8ff9e9365d
missed an added file
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 21:53:21 +00:00
Rick Olson
7d2316604a
Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. Closes #11513 [ddollar]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 17:48:30 +00:00
Pratik Naik
6a36d96aa2
Fix that config.to_prepare dependency error. Closes #10520 [akaspick, Pratik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-02 12:48:10 +00:00
Rick Olson
c4ccca1f84
spell check
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 20:55:45 +00:00
Rick Olson
e0402fe032
Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 20:35:56 +00:00
David Heinemeier Hansson
6a74360f97
Use class << self
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 19:16:55 +00:00
Jeremy Kemper
8f46ead1e9
Improving railties test coverage. Closes #11496 [miloops]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 16:54:30 +00:00
Jeremy Kemper
25eeea7197
PostgreSQL: use create_ and drop_database for rake tasks. Closes #9045 [ez, nicksieger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 05:01:33 +00:00
Pratik Naik
dc1166d12b
Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 02:09:52 +00:00
Jeremy Kemper
2681d55e40
Update generator tests. Closes #11487 [thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 00:29:24 +00:00
David Heinemeier Hansson
c4be0dbca9
Fixed charset/collation for rake db:create ( closes #11331 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 21:16:17 +00:00
Rick Olson
cc2d6a0b93
Allow files in plugins to be reloaded like the rest of the application. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 06:53:44 +00:00
Jeremy Kemper
f6484e63c1
rename config/initializers/new_in_rails_3.rb to new_rails_defaults.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 04:59:23 +00:00
Jeremy Kemper
6b9448cdd2
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-31 01:10:04 +00:00
Jeremy Kemper
c3ce27fbaf
Handle exit, reload, and restart immediately if not processing a request. References #11471 [guillaume, Jeremy Kemper]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 23:07:52 +00:00
Rick Olson
c2ce69860a
whoops, typo in the CHANGELOG
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 18:22:31 +00:00
Rick Olson
65b4702c4f
Small tweak to allow plugins to specify gem dependencies. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 02:35:08 +00:00
Rick Olson
088ef182e3
Added config.gem for specifying which gems are required by the application, as well as rake tasks for installing and freezing gems. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-30 02:17:28 +00:00
David Heinemeier Hansson
3e73278020
Removed the default .htaccess configuration as there are so many good deployment options now (kept it as an example in README) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:45:39 +00:00
Jeremy Kemper
e8170805df
Generated tests rely on test dir in load path rather than File.dirname shenanigans. ruby -Itest test/unit/foo_test.rb to run a test by hand (that's a capital I as in Island).
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:41:10 +00:00
David Heinemeier Hansson
968e022fc6
Space at the bottom feels better
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:02:40 +00:00
David Heinemeier Hansson
9ffbbd08bb
Removed outdated scaffold from template
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-29 18:01:49 +00:00
David Heinemeier Hansson
3704f4ba2e
Fix new migration versions
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 22:14:04 +00:00
David Heinemeier Hansson
c00de99f69
Switched to UTC-timebased version numbers for migrations and the schema. This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches ( closes #11458 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 21:21:01 +00:00
David Heinemeier Hansson
4aca503d0e
Fixed that no gems installed would cause error ( closes #11459 ) [thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 19:52:02 +00:00
Geoff Buesing
c62db052a0
config.time_zone and TimeWithZone#marshal_load accept tzinfo/Olson identifiers
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 04:35:48 +00:00
Geoff Buesing
480a7581d4
Rails::Initializer#initialize_time_zone raises an error if value assigned to config.time_zone is not recognized. Rake time zone tasks only require ActiveSupport instead of entire environment
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 01:45:04 +00:00
David Heinemeier Hansson
d8823d6fb7
Stop adding the antiquated test/mocks/* directories and only add them to the path if theyre still there for legacy reasons [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 22:33:50 +00:00
David Heinemeier Hansson
8301ce4d0b
Added that gems can now be plugins if they include rails/init.rb ( closes #11444 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 18:37:53 +00:00
David Heinemeier Hansson
f5b991d76d
Added Plugin#about method to programmatically access the about.yml in a plugin ( closes #10979 ) [lazyatom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-27 17:47:51 +00:00
David Heinemeier Hansson
3e556d3dbc
Use the more modern error_messages from the form object rather than error_messages_for
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 04:47:53 +00:00
Geoff Buesing
f921a96e85
Adding rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-22 01:59:09 +00:00
David Heinemeier Hansson
d07d6e900c
Added support for installing plugins hosted at git repositories ( closes #11294 ) [danger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-17 21:44:16 +00:00
David Heinemeier Hansson
5b58bc1963
Removed dead styles ( closes #11353 ) [boone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-15 19:33:13 +00:00
David Heinemeier Hansson
dd665ff967
Fixed that script/generate would not look for plugin generators in plugin_paths ( closes #11000 ) [glv]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-13 02:47:26 +00:00
David Heinemeier Hansson
9d4fa7c4a7
Applied the faster squish version ( closes #11123 ) [jordi]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-13 02:25:10 +00:00
Pratik Naik
3d2177df26
Fix database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9004 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-10 11:42:01 +00:00
Pratik Naik
e91d7ed53d
Update URL in script/generate usage. Closes #11220 [neshmi]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8991 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-08 12:55:57 +00:00
Michael Koziarski
01b77da8da
Patch to add a -e (export) option to script/plugin install. Closes #10847 [jon@blankpad.net]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-21 22:44:00 +00:00
Michael Koziarski
3028ca5955
Clear active connections before trying to drop the database. Allows db:drop to work with posgresql. Closes #10559 [jqr]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-15 23:16:01 +00:00
Michael Koziarski
9e13b966f6
Move SecretKeyGenerator comments to the correct place for rdoc. Closes #10940 [FooBarWidget]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-09 22:18:38 +00:00
Rick Olson
72385a7be6
Add Time Zone support to ActiveRecord, and config.time_zone property for specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-06 06:43:02 +00:00
Rick Olson
20bab5bc64
ensure that the after_initialize hooks are run after the application initializers have run
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-03 17:54:39 +00:00
Rick Olson
5ef2b089f0
Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick, fxn]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-02 20:18:18 +00:00
Jeremy Kemper
7527447ba1
Git support for script/generate. Closes #10690 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-02 02:55:14 +00:00
Michael Koziarski
9c4beb5e98
Tidy up description for the rake test task. Closes #10598 [akaspick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-20 23:27:19 +00:00
Michael Koziarski
4b7091f32a
Use non-blocking writing if available. Closes #10794 [lifofifo]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8638 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-13 20:39:51 +00:00
Rick Olson
3dd6027f70
Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-12 01:05:36 +00:00
Jeremy Kemper
3642a4d6f8
Resurrect WordNet synonym lookups. Closes #10710 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-10 02:50:43 +00:00
David Heinemeier Hansson
4ad3721a17
Re-enable the debugger in testing
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-09 18:50:06 +00:00
Jeremy Kemper
5ccc3cf448
Move model dependency to the end of the scaffold generator manifest. Closes #10696 [drnic]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 00:26:27 +00:00
David Heinemeier Hansson
2a9ad9ccbc
Moved the caching stores from ActionController::Caching::Fragments::* to ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH] Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH] All fragment cache keys are now by default prefixed with the 'views/' namespace [DHH] Added ActiveRecord::Base.cache_key to make it easier to cache Active Records in combination with the new ActiveSupport::Cache::* libraries [DHH] Added ActiveSupport::Gzip.decompress/compress(source) as an easy wrapper for Zlib [Tobias Luetke] Included MemCache-Client to make the improved ActiveSupport::Cache::MemCacheStore work out of the box [Bob Cottrell, Eric Hodel] Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 21:05:12 +00:00
David Heinemeier Hansson
64b4c18e15
Refactor check for local databases ( closes #10539 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8535 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:35:23 +00:00
David Heinemeier Hansson
f5aaf945b6
Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files ( closes #10565 ) [jeff]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-03 00:14:47 +00:00
Rick Olson
14f6440ed6
Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 19:24:44 +00:00
Jeremy Kemper
e21c48baf7
db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 09:03:56 +00:00
Jeremy Kemper
072b9d9fba
SQLite: db:drop:all doesn't fail silently if the database is already open. Closes #10577 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 08:28:58 +00:00
Jeremy Kemper
07de7612bd
Don't make new_mongrel server default yet
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-29 19:43:39 +00:00
Jeremy Kemper
e2d4ebdea4
Introduce native mongrel handler and push mutex into dispatcher.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-27 11:17:05 +00:00
Jeremy Kemper
ef6784f761
Ruby 1.9 compat: initializer only sets kcode for Ruby < 1.9
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-22 04:50:27 +00:00
Jeremy Kemper
2556e67403
App generate says sqlite3 is the default and mentions frontbase. Closes #10550 [Cheah Chu Yeow, Will Cannings]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-21 03:39:25 +00:00
Jeremy Kemper
d7515d4b09
Ruby 1.9 compat: use .to_a instead of .map which now returns an enumerator
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-19 04:21:12 +00:00
Jeremy Kemper
ab9e4c0eaa
Ruby 1.9 compatibility. References #1689 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-17 18:54:55 +00:00
David Heinemeier Hansson
69edebf0f1
Prepare for 2.0.2 release
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8419 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:30:30 +00:00
David Heinemeier Hansson
a50284d28f
Changed the default database from mysql to sqlite3, so now running "rails myapp" will have a config/database.yml thats setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run "rails -d mysql myapp" [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:22:56 +00:00
David Heinemeier Hansson
d8f2fea813
Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-16 23:10:48 +00:00
Jeremy Kemper
70117b0294
Introduce (in /Users/jeremy/rails/git/trunk) to output a crytographically secure secret key for use with cookie sessions.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-15 02:27:56 +00:00
David Heinemeier Hansson
f60e3aa1ae
Fixed that local database creation should consider 127.0.0.1 local ( closes #9026 ) [parcelbrat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 22:32:54 +00:00
David Heinemeier Hansson
3486d54007
Fixed that functional tests generated for scaffolds should use fixture calls instead of hard-coded IDs ( closes #10435 ) [boone]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8386 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 18:09:14 +00:00
David Heinemeier Hansson
3aa54c5e44
Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431 , ( closes #10432 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:51:02 +00:00
David Heinemeier Hansson
9187ed8656
Added db:migrate:redo for rerunning existing migrations ( closes #10431 ) [matt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 17:47:56 +00:00
Jeremy Kemper
b1ce7e4d4a
Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 [Pratik Naik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-10 05:54:46 +00:00
Jeremy Kemper
2c951efed3
Don't check for pending migrations if Active Record isn't loaded
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-09 04:18:28 +00:00
Jeremy Kemper
a456388ff9
Update rails:freeze:gems to work with RubyGems 0.9.5.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-09 01:20:24 +00:00
David Heinemeier Hansson
1acd54a5b4
Make ready for 2.0.1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-07 13:37:13 +00:00
Jeremy Kemper
699da7001b
The test task stops with a warning if you have pending migrations. Closes #10377 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-06 18:57:19 +00:00
David Heinemeier Hansson
729741a3fa
Preparing for release shortly
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-06 18:12:48 +00:00
David Heinemeier Hansson
2af36bbbd4
Fix typos ( closes #10378 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-05 18:54:41 +00:00
David Heinemeier Hansson
e47392b81f
Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned ( closes #10332 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-01 20:53:15 +00:00
David Heinemeier Hansson
cc86875a14
Generated fixtures should not specify ids since theyre expected to be foxy fixtures ( closes #10330 ) [jbarnette]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-01 20:51:54 +00:00
David Heinemeier Hansson
b6d255559e
You dont need to explicitly declare which controller youre testing when you follow the naming convention
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-30 18:17:21 +00:00
Michael Koziarski
ea59e9d50a
use autoeval not autoirb, it's mostly equivalent but doesn't make stepping frustrating [Koz].
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-30 00:08:41 +00:00
David Heinemeier Hansson
54a75de3ec
Prep for RC2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8233 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-29 00:27:53 +00:00
Jeremy Kemper
f1d6a0e4d2
Introduce SecretKeyGenerator for more secure session secrets than CGI::Session's pseudo-random id generator. Consider extracting to Active Support later. Closes #10286 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-28 19:36:59 +00:00
David Heinemeier Hansson
ea713b6bb9
No trailing whitespace in migration generation ( closes #10235 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-25 22:03:45 +00:00
Michael Koziarski
6967b422ab
Make sure script/plugin doesn't skip files beginning with http (i.e. the old http_authentication plugin). Closes #7887 [choonkeat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-21 01:53:31 +00:00
Jeremy Kemper
609a03fd2a
Fix typo in generator usage blurb. Closes #10217 [Mike Naberezny]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-20 22:00:32 +00:00
Jeremy Kemper
24c9250968
Table names aren't nested: replace / with _ to match the likely table name.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-16 23:01:24 +00:00
Jeremy Kemper
ace7518fcb
Resource and scaffold generators pass on the full name to the dependent model, so nested resources give a corresponding nested model.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-16 22:56:40 +00:00
Jeremy Kemper
9f43627d2f
Use the new TestCase subclasses in the scaffold and resource generators also. Closes #10174 [bscofield]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-16 20:30:28 +00:00
Jeremy Kemper
cb1f569231
Remove stale warning from application generator usage message. Closes #10165 [bronson]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-14 19:30:38 +00:00
Jeremy Kemper
78fb61a1fa
FastCGI handler ignores unsupported signals like USR2 on Windows [Grzegorz Derebecki]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-13 00:54:57 +00:00
Rick Olson
49cb41270a
Only load ActionMailer::TestCase if ActionMailer is loaded. Closes #10137 [defunkt]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-11 01:01:11 +00:00
David Heinemeier Hansson
2e12afaefe
Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-09 21:58:24 +00:00
David Heinemeier Hansson
5c8beba9dc
Prepare versions for RC1
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-09 20:02:29 +00:00
Rick Olson
fcfcc707d4
Ensure the plugin loader only loads plugins once. Closes #10102 [haruki_zaemon]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-08 15:41:46 +00:00
Rick Olson
f1b1af88b5
Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. Closes #9795 [lazyatom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-08 05:29:44 +00:00
Michael Koziarski
19d4c212cd
Remove unneeded file that was missed by [8098]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-06 23:29:05 +00:00
David Heinemeier Hansson
4a44dbb63d
Make work with --skip-timestamps
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-06 19:21:09 +00:00
David Heinemeier Hansson
ee1ad762a4
Added --skip-timestamps to generators that produce models ( closes #10036 ) [tpope]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-04 20:30:45 +00:00
Jeremy Kemper
e17252f891
Don't eliminate the logger by default
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-01 07:57:18 +00:00
Jeremy Kemper
3ba23348de
Excise generated whitespace. Closes #10017 [Tim Pope]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-29 21:40:23 +00:00
David Heinemeier Hansson
2a74d71e49
Added db:rollback to rollback the schema one version (or multiple as specified by STEP) [Jeffrey Allan Hardy]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 21:11:07 +00:00
Michael Koziarski
985ee85f59
Remove broken require
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 02:58:24 +00:00
Michael Koziarski
2cc0cac3ef
Introduce TestCase subclasses for testing rails applications allowing tests to be DRY'd up a bit and to provide a path toward tidying up our monkeypatching of test/unit.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 02:21:21 +00:00
Jeremy Kemper
d69be7df6d
Request profiler
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-25 20:33:28 +00:00
Jeremy Kemper
a2c9c92b72
rake test aborts if tests failed. Closes #9962 [Jason Roelofs]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-23 20:08:51 +00:00
David Heinemeier Hansson
d6f49e4af1
Fixed incorrect migration number if script/generate executed outside of Rails root ( closes #7080 ) [jeremymcanally]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-18 15:54:01 +00:00
David Heinemeier Hansson
34df379467
Docfix (cloases #9832 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-18 15:49:11 +00:00
Jeremy Kemper
2e2ce1f6c9
Generated fixtures use the actual primary key instead of id. Closes #4343 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-15 04:33:45 +00:00
David Heinemeier Hansson
faff774f9d
Update versions here too
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-12 16:03:54 +00:00
David Heinemeier Hansson
c8d9a07a00
Added better documentation for generator overwrite options ( closes #9842 ) [wincet]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-11 15:15:32 +00:00
Jeremy Kemper
9929cb4ec2
config.active_record.whiny_protected_attributes. Closes #9816 [henrik]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 20:37:19 +00:00
Jeremy Kemper
1c90758889
Include ARes and Railties in rdoc. Freeze ARes gem instead of AWS.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7803 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 07:10:58 +00:00
Jeremy Kemper
e7b80cbbbc
Create layout dir it's nested. References #9272 [alancfrancis]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7784 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-08 00:54:26 +00:00
Jeremy Kemper
00d9f58f29
Use a configuration check so ActiveRecord can be omitted. References #9699 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 22:39:44 +00:00
Jeremy Kemper
84a14f2620
Raise ProtectedAttributeAssignmentError in development and test environments when mass-assigning to an attr_protected attribute. Closes #9699 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 19:43:19 +00:00
Jeremy Kemper
98f50607e1
Axe excess backtracery.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 06:09:54 +00:00