rails 2.0.5 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails might be problematic. Click here for more details.

Files changed (84) hide show
  1. data/CHANGELOG +115 -3
  2. data/MIT-LICENSE +1 -1
  3. data/README +67 -14
  4. data/Rakefile +9 -19
  5. data/bin/dbconsole +3 -0
  6. data/bin/rails +0 -0
  7. data/builtin/rails_info/rails/info.rb +5 -5
  8. data/configs/apache.conf +0 -0
  9. data/configs/databases/frontbase.yml +2 -2
  10. data/configs/databases/mysql.yml +2 -2
  11. data/configs/databases/oracle.yml +3 -3
  12. data/configs/databases/postgresql.yml +2 -2
  13. data/configs/databases/sqlite2.yml +2 -2
  14. data/configs/databases/sqlite3.yml +2 -2
  15. data/configs/initializers/new_rails_defaults.rb +15 -0
  16. data/configs/routes.rb +6 -0
  17. data/dispatches/dispatch.fcgi +0 -0
  18. data/dispatches/dispatch.rb +0 -0
  19. data/environments/boot.rb +1 -0
  20. data/environments/development.rb +0 -1
  21. data/environments/environment.rb +15 -7
  22. data/environments/production.rb +3 -0
  23. data/environments/test.rb +1 -1
  24. data/fresh_rakefile +0 -0
  25. data/helpers/application.rb +5 -0
  26. data/html/images/rails.png +0 -0
  27. data/html/index.html +6 -9
  28. data/html/javascripts/controls.js +1 -1
  29. data/html/javascripts/dragdrop.js +1 -1
  30. data/html/javascripts/effects.js +1 -1
  31. data/lib/commands/console.rb +2 -2
  32. data/lib/commands/dbconsole.rb +65 -0
  33. data/lib/commands/generate.rb +0 -0
  34. data/lib/commands/performance/profiler.rb +1 -1
  35. data/lib/commands/performance/request.rb +0 -0
  36. data/lib/commands/plugin.rb +28 -1
  37. data/lib/commands/server.rb +2 -2
  38. data/lib/commands/servers/lighttpd.rb +1 -1
  39. data/lib/commands/servers/mongrel.rb +9 -9
  40. data/lib/commands/servers/new_mongrel.rb +16 -0
  41. data/lib/commands/servers/webrick.rb +1 -1
  42. data/lib/console_app.rb +2 -2
  43. data/lib/dispatcher.rb +1 -1
  44. data/lib/fcgi_handler.rb +32 -16
  45. data/lib/initializer.rb +273 -59
  46. data/lib/rails/gem_builder.rb +21 -0
  47. data/lib/rails/gem_dependency.rb +124 -0
  48. data/lib/rails/mongrel_server/commands.rb +342 -0
  49. data/lib/rails/mongrel_server/handler.rb +55 -0
  50. data/lib/rails/plugin.rb +42 -11
  51. data/lib/rails/plugin/loader.rb +3 -1
  52. data/lib/rails/plugin/locator.rb +22 -1
  53. data/lib/rails/version.rb +2 -2
  54. data/lib/rails_generator/base.rb +1 -1
  55. data/lib/rails_generator/commands.rb +63 -47
  56. data/lib/rails_generator/generators/applications/app/app_generator.rb +5 -7
  57. data/lib/rails_generator/generators/components/controller/templates/controller.rb +1 -4
  58. data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +1 -1
  59. data/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +1 -1
  60. data/lib/rails_generator/generators/components/mailer/mailer_generator.rb +2 -6
  61. data/lib/rails_generator/generators/components/mailer/templates/mailer.rb +8 -6
  62. data/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +1 -1
  63. data/lib/rails_generator/generators/components/migration/USAGE +4 -4
  64. data/lib/rails_generator/generators/components/model/templates/unit_test.rb +1 -1
  65. data/lib/rails_generator/generators/components/observer/templates/unit_test.rb +1 -1
  66. data/lib/rails_generator/generators/components/plugin/templates/Rakefile +0 -0
  67. data/lib/rails_generator/generators/components/resource/templates/functional_test.rb +1 -1
  68. data/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +2 -1
  69. data/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +1 -1
  70. data/lib/rails_generator/generators/components/scaffold/templates/style.css +0 -20
  71. data/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +3 -4
  72. data/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +3 -4
  73. data/lib/rails_generator/lookup.rb +6 -2
  74. data/lib/rails_generator/options.rb +7 -0
  75. data/lib/rails_generator/scripts.rb +8 -5
  76. data/lib/rails_generator/secret_key_generator.rb +12 -8
  77. data/lib/source_annotation_extractor.rb +40 -0
  78. data/lib/tasks/databases.rake +52 -27
  79. data/lib/tasks/framework.rake +22 -29
  80. data/lib/tasks/gems.rake +64 -0
  81. data/lib/tasks/misc.rake +47 -0
  82. data/lib/tasks/testing.rake +1 -1
  83. data/lib/test_help.rb +8 -0
  84. metadata +19 -15
data/CHANGELOG CHANGED
@@ -1,16 +1,128 @@
1
- *2.0.5* (October 19th, 2008)
1
+ *2.1.0 (May 31st, 2008)*
2
2
 
3
- * Security fixes for Active Record and Action Pack
3
+ * script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
4
4
 
5
+ * Fix bug where plugin init.rb files from frozen gem specs weren't being run. (pjb3) [#122 state:resolved]
5
6
 
6
- *2.0.4* (2nd September 2008)
7
+ * Made the location of the routes file configurable with config.routes_configuration_file (Scott Fleckenstein) [#88]
8
+
9
+ * Rails Edge info returns the latest git commit hash [Francesc Esplugas]
10
+
11
+ * Added Rails.public_path to control where HTML and assets are expected to be loaded from (defaults to Rails.root + "/public") #11581 [nicksieger]
12
+
13
+ * rake time:zones:local finds correct base utc offset for zones in the Southern Hemisphere [Geoff Buesing]
14
+
15
+ * Don't require rails/gem_builder during rails initialization, it's only needed for the gems:build task. [rick]
16
+
17
+ * script/performance/profiler compatibility with the ruby-prof >= 0.5.0. Closes #9176. [Catfish]
18
+
19
+ * Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for native extensions. #11513 [ddollar]
20
+
21
+ rake gems:unpack # unpacks all gems
22
+ rake gems:unpack GEM=mygem # unpacks only the gem 'mygem'
23
+
24
+ rake gems:build # builds all unpacked gems
25
+ rake gems:build GEM=mygem # builds only the gem 'mygem'
26
+
27
+ * Add config.active_support for future configuration options. Also, add more new Rails 3 config settings to new_rails_defaults.rb [rick]
28
+
29
+ * Add Rails.logger, Rails.root, Rails.env and Rails.cache shortcuts for RAILS_* constants [pratik]
30
+
31
+ * Allow files in plugins to be reloaded like the rest of the application. [rick]
32
+
33
+ Enables or disables plugin reloading.
34
+
35
+ config.reload_plugins = true
36
+
37
+ You can get around this setting per plugin.
38
+ If #reload_plugins? == false (DEFAULT), add this to your plugin's init.rb to make it reloadable:
39
+
40
+ Dependencies.load_once_paths.delete lib_path
41
+
42
+ If #reload_plugins? == true, add this to your plugin's init.rb to only load it once:
43
+
44
+ Dependencies.load_once_paths << lib_path
45
+
46
+ * Small tweak to allow plugins to specify gem dependencies. [rick]
47
+
48
+ # OLD open_id_authentication plugin init.rb
49
+ require 'yadis'
50
+ require 'openid'
51
+ ActionController::Base.send :include, OpenIdAuthentication
52
+
53
+ # NEW
54
+ config.gem "ruby-openid", :lib => "openid", :version => "1.1.4"
55
+ config.gem "ruby-yadis", :lib => "yadis", :version => "0.3.4"
56
+
57
+ config.after_initialize do
58
+ ActionController::Base.send :include, OpenIdAuthentication
59
+ end
60
+
61
+ * Added config.gem for specifying which gems are required by the application, as well as rake tasks for installing and freezing gems. [rick]
62
+
63
+ Rails::Initializer.run do |config|
64
+ config.gem "bj"
65
+ config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
66
+ config.gem "aws-s3", :lib => "aws/s3"
67
+ end
68
+
69
+ # List required gems.
70
+ rake gems
71
+
72
+ # Install all required gems:
73
+ rake gems:install
74
+
75
+ # Unpack specified gem to vendor/gems/gem_name-x.x.x
76
+ rake gems:unpack GEM=bj
77
+
78
+ * Removed the default .htaccess configuration as there are so many good deployment options now (kept it as an example in README) [DHH]
79
+
80
+ * config.time_zone accepts TZInfo::Timezone identifiers as well as Rails TimeZone identifiers [Geoff Buesing]
81
+
82
+ * 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 [Geoff Buesing]
83
+
84
+ * Stop adding the antiquated test/mocks/* directories and only add them to the path if they're still there for legacy reasons [DHH]
85
+
86
+ * Added that gems can now be plugins if they include rails/init.rb #11444 [jbarnette]
87
+
88
+ * Added Plugin#about method to programmatically access the about.yml in a plugin #10979 [lazyatom]
89
+
90
+ plugin = Rails::Plugin.new(path_to_my_plugin)
91
+ plugin.about["author"] # => "James Adam"
92
+ plugin.about["url"] # => "http://interblah.net"
93
+
94
+ * Improve documentation. [Radar, Jan De Poorter, chuyeow, xaviershay, danger, miloops, Xavier Noria, Sunny Ripert]
95
+
96
+ * Added config.time_zone = 'UTC' in the default environment.rb [Geoff Buesing]
97
+
98
+ * Added rake tasks time:zones:all, time:zones:us and time:zones:local for finding time zone names for config.time_zone option [Geoff Buesing]
99
+
100
+ * Add config.time_zone for configuring the default Time.zone value. #10982 [Geoff Buesing]
101
+
102
+ * Added support for installing plugins hosted at git repositories #11294 [danger]
103
+
104
+ * Fixed that script/generate would not look for plugin generators in plugin_paths #11000 [glv]
105
+
106
+ * Fixed database rake tasks to work with charset/collation and show proper error messages on failure. Closes #11301 [matt]
107
+
108
+ * Added a -e/--export to script/plugin install, uses svn export. #10847 [jon@blankpad.net)]
109
+
110
+ * Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick]
111
+
112
+ * Git support for script/generate. #10690 [ssoroka]
113
+
114
+ * Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3]
7
115
 
8
116
  * Resurrect WordNet synonym lookups. #10710 [tom./, matt]
9
117
 
118
+ * 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]
119
+
10
120
  * Added that rails:update is run when you do rails:freeze:edge to ensure you also get the latest JS and config files #10565 [jeff]
11
121
 
12
122
  * SQLite: db:drop:all doesn't fail silently if the database is already open. #10577 [Cheah Chu Yeow, mrichman]
13
123
 
124
+ * Introduce native mongrel handler and push mutex into dispatcher. [Jeremy Kemper]
125
+
14
126
  * Ruby 1.9 compatibility. #1689, #10546 [Cheah Chu Yeow, frederico]
15
127
 
16
128
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2004-2007 David Heinemeier Hansson
1
+ Copyright (c) 2004-2008 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README CHANGED
@@ -1,14 +1,14 @@
1
1
  == Welcome to Rails
2
2
 
3
- Rails is a web-application and persistence framework that includes everything
4
- needed to create database-backed web-applications according to the
5
- Model-View-Control pattern of separation. This pattern splits the view (also
6
- called the presentation) into "dumb" templates that are primarily responsible
7
- for inserting pre-built data in between HTML tags. The model contains the
8
- "smart" domain objects (such as Account, Product, Person, Post) that holds all
9
- the business logic and knows how to persist themselves to a database. The
10
- controller handles the incoming requests (such as Save New Account, Update
11
- Product, Show Post) by manipulating the model and directing data to the view.
3
+ Rails is a web-application framework that includes everything needed to create
4
+ database-backed web applications according to the Model-View-Control pattern.
5
+
6
+ This pattern splits the view (also called the presentation) into "dumb" templates
7
+ that are primarily responsible for inserting pre-built data in between HTML tags.
8
+ The model contains the "smart" domain objects (such as Account, Product, Person,
9
+ Post) that holds all the business logic and knows how to persist themselves to
10
+ a database. The controller handles the incoming requests (such as Save New Account,
11
+ Update Product, Show Post) by manipulating the model and directing data to the view.
12
12
 
13
13
  In Rails, the model is handled by what's called an object-relational mapping
14
14
  layer entitled Active Record. This layer allows you to present the data from
@@ -29,9 +29,8 @@ link:files/vendor/rails/actionpack/README.html.
29
29
 
30
30
  1. At the command prompt, start a new Rails application using the <tt>rails</tt> command
31
31
  and your application name. Ex: rails myapp
32
- (If you've downloaded Rails in a complete tgz or zip, this step is already done)
33
32
  2. Change directory into myapp and start the web server: <tt>script/server</tt> (run with --help for options)
34
- 3. Go to http://localhost:3000/ and get "Welcome aboard: Youre riding the Rails!"
33
+ 3. Go to http://localhost:3000/ and get "Welcome aboard: You're riding the Rails!"
35
34
  4. Follow the guidelines to start developing your application
36
35
 
37
36
 
@@ -62,6 +61,50 @@ Apache, LiteSpeed, IIS are just a few. For more information on FCGI,
62
61
  please visit: http://wiki.rubyonrails.com/rails/pages/FastCGI
63
62
 
64
63
 
64
+ == Apache .htaccess example
65
+
66
+ # General Apache options
67
+ AddHandler fastcgi-script .fcgi
68
+ AddHandler cgi-script .cgi
69
+ Options +FollowSymLinks +ExecCGI
70
+
71
+ # If you don't want Rails to look in certain directories,
72
+ # use the following rewrite rules so that Apache won't rewrite certain requests
73
+ #
74
+ # Example:
75
+ # RewriteCond %{REQUEST_URI} ^/notrails.*
76
+ # RewriteRule .* - [L]
77
+
78
+ # Redirect all requests not available on the filesystem to Rails
79
+ # By default the cgi dispatcher is used which is very slow
80
+ #
81
+ # For better performance replace the dispatcher with the fastcgi one
82
+ #
83
+ # Example:
84
+ # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
85
+ RewriteEngine On
86
+
87
+ # If your Rails application is accessed via an Alias directive,
88
+ # then you MUST also set the RewriteBase in this htaccess file.
89
+ #
90
+ # Example:
91
+ # Alias /myrailsapp /path/to/myrailsapp/public
92
+ # RewriteBase /myrailsapp
93
+
94
+ RewriteRule ^$ index.html [QSA]
95
+ RewriteRule ^([^.]+)$ $1.html [QSA]
96
+ RewriteCond %{REQUEST_FILENAME} !-f
97
+ RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
98
+
99
+ # In case Rails experiences terminal errors
100
+ # Instead of displaying this message you can supply a file here which will be rendered instead
101
+ #
102
+ # Example:
103
+ # ErrorDocument 500 /500.html
104
+
105
+ ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
106
+
107
+
65
108
  == Debugging Rails
66
109
 
67
110
  Sometimes your application goes wrong. Fortunately there are a lot of tools that
@@ -102,7 +145,9 @@ and also on programming in general.
102
145
 
103
146
  Debugger support is available through the debugger command when you start your Mongrel or
104
147
  Webrick server with --debugger. This means that you can break out of execution at any point
105
- in the code, investigate and change the model, AND then resume execution! Example:
148
+ in the code, investigate and change the model, AND then resume execution!
149
+ You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
150
+ Example:
106
151
 
107
152
  class WeblogController < ActionController::Base
108
153
  def index
@@ -140,6 +185,13 @@ Passing an argument will specify a different environment, like <tt>script/consol
140
185
 
141
186
  To reload your controllers and models after launching the console run <tt>reload!</tt>
142
187
 
188
+ == dbconsole
189
+
190
+ You can go to the command line of your database directly through <tt>script/dbconsole</tt>.
191
+ You would be connected to the database with the credentials defined in database.yml.
192
+ Starting the script without arguments will connect you to the development database. Passing an
193
+ argument will connect you to a different database, like <tt>script/dbconsole production</tt>.
194
+ Currently works for mysql, postgresql and sqlite.
143
195
 
144
196
  == Description of Contents
145
197
 
@@ -157,13 +209,13 @@ app/models
157
209
 
158
210
  app/views
159
211
  Holds the template files for the view that should be named like
160
- weblogs/index.erb for the WeblogsController#index action. All views use eRuby
212
+ weblogs/index.html.erb for the WeblogsController#index action. All views use eRuby
161
213
  syntax.
162
214
 
163
215
  app/views/layouts
164
216
  Holds the template files for layouts to be used with views. This models the common
165
217
  header/footer method of wrapping views. In your views, define a layout using the
166
- <tt>layout :default</tt> and create a file named default.erb. Inside default.erb,
218
+ <tt>layout :default</tt> and create a file named default.html.erb. Inside default.html.erb,
167
219
  call <% yield %> to render the view using this layout.
168
220
 
169
221
  app/helpers
@@ -200,4 +252,5 @@ test
200
252
 
201
253
  vendor
202
254
  External libraries that the application depends on. Also includes the plugins subdirectory.
255
+ If the app has frozen rails, those gems also go here, under vendor/rails/.
203
256
  This directory is in the load path.
data/Rakefile CHANGED
@@ -2,7 +2,6 @@ require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
4
  require 'rake/gempackagetask'
5
- require 'rake/contrib/sshpublisher'
6
5
  require 'rake/contrib/rubyforgepublisher'
7
6
 
8
7
  require 'date'
@@ -29,7 +28,7 @@ task :default => :test
29
28
  ## we can see the failures
30
29
  task :test do
31
30
  Dir['test/**/*_test.rb'].all? do |file|
32
- system("ruby #{file}")
31
+ system("ruby -Itest #{file}")
33
32
  end or raise "Failures"
34
33
  end
35
34
 
@@ -161,7 +160,6 @@ end
161
160
 
162
161
  # Copy Ties Content -----------------------------------------------------------------------
163
162
 
164
- # :link_apache_config
165
163
  desc "Make copies of all the default content of ties"
166
164
  task :copy_ties_content => [
167
165
  :copy_rootfiles, :copy_dispatches, :copy_html_files, :copy_application,
@@ -198,8 +196,6 @@ task :copy_configs do
198
196
 
199
197
  cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
200
198
 
201
- cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
202
-
203
199
  cp "configs/initializers/inflections.rb", "#{PKG_DESTINATION}/config/initializers/inflections.rb"
204
200
  cp "configs/initializers/mime_types.rb", "#{PKG_DESTINATION}/config/initializers/mime_types.rb"
205
201
 
@@ -232,12 +228,6 @@ task :copy_app_doc_readme do
232
228
  cp "doc/README_FOR_APP", "#{PKG_DESTINATION}/doc/README_FOR_APP"
233
229
  end
234
230
 
235
- task :link_apache_config do
236
- chdir(File.join(PKG_DESTINATION, 'config')) {
237
- ln_s "../public/.htaccess", "apache.conf"
238
- }
239
- end
240
-
241
231
  def copy_with_rewritten_ruby_path(src_file, dest_file)
242
232
  ruby = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
243
233
 
@@ -313,12 +303,12 @@ spec = Gem::Specification.new do |s|
313
303
  on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.
314
304
  EOF
315
305
 
316
- s.add_dependency('rake', '>= 0.7.2')
317
- s.add_dependency('activesupport', '= 2.0.5' + PKG_BUILD)
318
- s.add_dependency('activerecord', '= 2.0.5' + PKG_BUILD)
319
- s.add_dependency('actionpack', '= 2.0.5' + PKG_BUILD)
320
- s.add_dependency('actionmailer', '= 2.0.5' + PKG_BUILD)
321
- s.add_dependency('activeresource', '= 2.0.5' + PKG_BUILD)
306
+ s.add_dependency('rake', '>= 0.8.1')
307
+ s.add_dependency('activesupport', '= 2.1.0' + PKG_BUILD)
308
+ s.add_dependency('activerecord', '= 2.1.0' + PKG_BUILD)
309
+ s.add_dependency('actionpack', '= 2.1.0' + PKG_BUILD)
310
+ s.add_dependency('actionmailer', '= 2.1.0' + PKG_BUILD)
311
+ s.add_dependency('activeresource', '= 2.1.0' + PKG_BUILD)
322
312
 
323
313
  s.rdoc_options << '--exclude' << '.'
324
314
  s.has_rdoc = false
@@ -343,8 +333,8 @@ end
343
333
  # Publishing -------------------------------------------------------
344
334
  desc "Publish the API documentation"
345
335
  task :pgem => [:gem] do
346
- Rake::SshFilePublisher.new("david@greed.loudthinking.com", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
347
- `ssh david@greed.loudthinking.com '/u/sites/gems/gemupdate.sh'`
336
+ Rake::SshFilePublisher.new("davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
337
+ `ssh davidhh@wrath.rubyonrails.org './gemupdate.sh'`
348
338
  end
349
339
 
350
340
  desc "Publish the release files to RubyForge."
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'
data/bin/rails CHANGED
File without changes
@@ -29,8 +29,8 @@ module Rails
29
29
  "#{component.classify}::VERSION::STRING".constantize
30
30
  end
31
31
 
32
- def edge_rails_revision(info = svn_info)
33
- info[/^Revision: (\d+)/, 1] || freeze_edge_version
32
+ def edge_rails_revision(info = git_info)
33
+ info[/commit ([a-z0-9-]+)/, 1] || freeze_edge_version
34
34
  end
35
35
 
36
36
  def freeze_edge_version
@@ -67,10 +67,10 @@ module Rails
67
67
  @rails_vendor_root ||= "#{RAILS_ROOT}/vendor/rails"
68
68
  end
69
69
 
70
- def svn_info
70
+ def git_info
71
71
  env_lang, ENV['LC_ALL'] = ENV['LC_ALL'], 'C'
72
72
  Dir.chdir(rails_vendor_root) do
73
- silence_stderr { `svn info` }
73
+ silence_stderr { `git log -n 1` }
74
74
  end
75
75
  ensure
76
76
  ENV['LC_ALL'] = env_lang
@@ -98,7 +98,7 @@ module Rails
98
98
  end
99
99
  end
100
100
 
101
- # The Rails SVN revision, if it's checked out into vendor/rails.
101
+ # The Rails Git revision, if it's checked out into vendor/rails.
102
102
  property 'Edge Rails revision' do
103
103
  edge_rails_revision
104
104
  end
File without changes
@@ -10,8 +10,8 @@ development:
10
10
  username: <%= app_name %>
11
11
  password: ''
12
12
 
13
- # Warning: The database defined as 'test' will be erased and
14
- # re-generated from your development database when you run 'rake'.
13
+ # Warning: The database defined as "test" will be erased and
14
+ # re-generated from your development database when you run "rake".
15
15
  # Do not set this db to the same as development or production.
16
16
  test:
17
17
  adapter: frontbase
@@ -26,8 +26,8 @@ development:
26
26
  host: localhost
27
27
  <% end -%>
28
28
 
29
- # Warning: The database defined as 'test' will be erased and
30
- # re-generated from your development database when you run 'rake'.
29
+ # Warning: The database defined as "test" will be erased and
30
+ # re-generated from your development database when you run "rake".
31
31
  # Do not set this db to the same as development or production.
32
32
  test:
33
33
  adapter: mysql
@@ -4,7 +4,7 @@
4
4
  # http://rubyforge.org/projects/ruby-oci8/
5
5
  #
6
6
  # Specify your database using any valid connection syntax, such as a
7
- # tnsnames.ora service name, or a sql connect url string of the form:
7
+ # tnsnames.ora service name, or a SQL connect url string of the form:
8
8
  #
9
9
  # //host:[port][/service name]
10
10
  #
@@ -23,8 +23,8 @@ development:
23
23
  username: <%= app_name %>
24
24
  password:
25
25
 
26
- # Warning: The database defined as 'test' will be erased and
27
- # re-generated from your development database when you run 'rake'.
26
+ # Warning: The database defined as "test" will be erased and
27
+ # re-generated from your development database when you run "rake".
28
28
  # Do not set this db to the same as development or production.
29
29
  test:
30
30
  adapter: oracle
@@ -30,8 +30,8 @@ development:
30
30
  # The server defaults to notice.
31
31
  #min_messages: warning
32
32
 
33
- # Warning: The database defined as 'test' will be erased and
34
- # re-generated from your development database when you run 'rake'.
33
+ # Warning: The database defined as "test" will be erased and
34
+ # re-generated from your development database when you run "rake".
35
35
  # Do not set this db to the same as development or production.
36
36
  test:
37
37
  adapter: postgresql
@@ -4,8 +4,8 @@ development:
4
4
  adapter: sqlite
5
5
  database: db/development.sqlite2
6
6
 
7
- # Warning: The database defined as 'test' will be erased and
8
- # re-generated from your development database when you run 'rake'.
7
+ # Warning: The database defined as "test" will be erased and
8
+ # re-generated from your development database when you run "rake".
9
9
  # Do not set this db to the same as development or production.
10
10
  test:
11
11
  adapter: sqlite