railties 3.1.0.rc6 → 3.1.0.rc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +13 -0
- data/guides/source/3_1_release_notes.textile +1 -1
- data/guides/source/action_mailer_basics.textile +26 -31
- data/guides/source/active_record_querying.textile +2 -2
- data/guides/source/asset_pipeline.textile +3 -1
- data/guides/source/getting_started.textile +1 -1
- data/guides/source/index.html.erb +1 -1
- data/guides/source/initialization.textile +1 -2
- data/guides/source/migrations.textile +1 -0
- data/guides/source/plugins.textile +2 -0
- data/guides/source/security.textile +0 -1
- data/lib/rails/application/configuration.rb +7 -5
- data/lib/rails/commands/tags +113 -0
- data/lib/rails/generators/app_base.rb +1 -1
- data/lib/rails/generators/rails/app/templates/config/application.rb +3 -3
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +6 -0
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +3 -0
- data/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +2 -2
- data/lib/rails/version.rb +1 -1
- metadata +15 -15
data/CHANGELOG
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
*Rails 3.1.0 (unreleased)*
|
2
2
|
|
3
|
+
* The default database schema file is written as UTF-8. [Aaron Patterson]
|
4
|
+
|
5
|
+
* Generated apps with --dev or --edge flags depend on git versions of
|
6
|
+
sass-rails and coffee-rails. [Santiago Pastorino]
|
7
|
+
|
8
|
+
* Rack::Sendfile middleware is used only if x_sendfile_header is present. [Santiago Pastorino]
|
9
|
+
|
10
|
+
* Add JavaScript Runtime name to the Rails Info properties. [DHH]
|
11
|
+
|
12
|
+
* Make pp enabled by default in Rails console. [Akira Matsuda]
|
13
|
+
|
14
|
+
* Add alias `r` for rails runner. [Jordi Romero]
|
15
|
+
|
3
16
|
* Make sprockets/railtie require explicit and add --skip-sprockets to app generator [José Valim]
|
4
17
|
|
5
18
|
* Added Rails.groups that automatically handles Rails.env and ENV["RAILS_GROUPS"] [José Valim]
|
@@ -115,7 +115,7 @@ h4. Action Controller
|
|
115
115
|
|
116
116
|
* URL parameters which return +nil+ for +to_param+ are now removed from the query string.
|
117
117
|
|
118
|
-
* Added <tt>ActionController::ParamsWrapper</tt> to wrap parameters into a nested hash, and will be turned on for JSON request in new applications by default. This can be customized
|
118
|
+
* Added <tt>ActionController::ParamsWrapper</tt> to wrap parameters into a nested hash, and will be turned on for JSON request in new applications by default. This can be customized in <tt>config/initializers/wrap_parameters.rb</tt>.
|
119
119
|
|
120
120
|
* Added <tt>config.action_controller.include_all_helpers</tt>. By default <tt>helper :all</tt> is done in <tt>ActionController::Base</tt>, which includes all the helpers by default. Setting +include_all_helpers+ to +false+ will result in including only application_helper and the helper corresponding to controller (like foo_helper for foo_controller).
|
121
121
|
|
@@ -8,7 +8,7 @@ WARNING. This Guide is based on Rails 3.0. Some of the code shown here will not
|
|
8
8
|
|
9
9
|
h3. Introduction
|
10
10
|
|
11
|
-
Action Mailer allows you to send emails from your application using a mailer model and views. So, in Rails, emails are used by creating mailers that inherit from +ActionMailer::Base+ and live in
|
11
|
+
Action Mailer allows you to send emails from your application using a mailer model and views. So, in Rails, emails are used by creating mailers that inherit from +ActionMailer::Base+ and live in +app/mailers+. Those mailers have associated views that appear alongside controller views in +app/views+.
|
12
12
|
|
13
13
|
h3. Sending Emails
|
14
14
|
|
@@ -48,10 +48,8 @@ class UserMailer < ActionMailer::Base
|
|
48
48
|
def welcome_email(user)
|
49
49
|
@user = user
|
50
50
|
@url = "http://example.com/login"
|
51
|
-
mail(:to => user.email,
|
52
|
-
:subject => "Welcome to My Awesome Site")
|
51
|
+
mail(:to => user.email, :subject => "Welcome to My Awesome Site")
|
53
52
|
end
|
54
|
-
|
55
53
|
end
|
56
54
|
</ruby>
|
57
55
|
|
@@ -142,17 +140,17 @@ end
|
|
142
140
|
|
143
141
|
This provides a much simpler implementation that does not require the registering of observers and the like.
|
144
142
|
|
145
|
-
The method +welcome_email+ returns a Mail::Message object which can then just be told +deliver+ to send itself out.
|
143
|
+
The method +welcome_email+ returns a <tt>Mail::Message</tt> object which can then just be told +deliver+ to send itself out.
|
146
144
|
|
147
145
|
NOTE: In previous versions of Rails, you would call +deliver_welcome_email+ or +create_welcome_email+. This has been deprecated in Rails 3.0 in favour of just calling the method name itself.
|
148
146
|
|
149
|
-
WARNING: Sending out
|
147
|
+
WARNING: Sending out an email should only take a fraction of a second, but if you are planning on sending out many emails, or you have a slow domain resolution service, you might want to investigate using a background process like Delayed Job.
|
150
148
|
|
151
149
|
h4. Auto encoding header values
|
152
150
|
|
153
151
|
Action Mailer now handles the auto encoding of multibyte characters inside of headers and bodies.
|
154
152
|
|
155
|
-
If you are using UTF-8 as your character set, you do not have to do anything special, just go ahead and send in UTF-8 data to the address fields, subject, keywords, filenames or body of the email and
|
153
|
+
If you are using UTF-8 as your character set, you do not have to do anything special, just go ahead and send in UTF-8 data to the address fields, subject, keywords, filenames or body of the email and Action Mailer will auto encode it into quoted printable for you in the case of a header field or Base64 encode any body parts that are non US-ASCII.
|
156
154
|
|
157
155
|
For more complex examples such as defining alternate character sets or self encoding text first, please refer to the Mail library.
|
158
156
|
|
@@ -213,7 +211,7 @@ NOTE: If you specify an encoding, Mail will assume that your content is already
|
|
213
211
|
|
214
212
|
h5. Making Inline Attachments
|
215
213
|
|
216
|
-
|
214
|
+
Action Mailer 3.0 makes inline attachments, which involved a lot of hacking in pre 3.0 versions, much simpler and trivial as they should be.
|
217
215
|
|
218
216
|
* Firstly, to tell Mail to turn an attachment into an inline attachment, you just call <tt>#inline</tt> on the attachments method within your Mailer:
|
219
217
|
|
@@ -245,15 +243,15 @@ h5. Sending Email To Multiple Recipients
|
|
245
243
|
It is possible to send email to one or more recipients in one email (for e.g. informing all admins of a new signup) by setting the list of emails to the <tt>:to</tt> key. The list of emails can be an array of email addresses or a single string with the addresses separated by commas.
|
246
244
|
|
247
245
|
<ruby>
|
248
|
-
|
249
|
-
|
250
|
-
|
246
|
+
class AdminMailer < ActionMailer::Base
|
247
|
+
default :to => Admin.all.map(&:email),
|
248
|
+
:from => "notification@example.com"
|
251
249
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
end
|
250
|
+
def new_registration(user)
|
251
|
+
@user = user
|
252
|
+
mail(:subject => "New User Signup: #{@user.email}")
|
256
253
|
end
|
254
|
+
end
|
257
255
|
</ruby>
|
258
256
|
|
259
257
|
The same format can be used to set carbon copy (Cc:) and blind carbon copy (Bcc:) recipients, by using the <tt>:cc</tt> and <tt>:bcc</tt> keys respectively.
|
@@ -264,12 +262,11 @@ Sometimes you wish to show the name of the person instead of just their email ad
|
|
264
262
|
to format the email address in the format <tt>"Name <email>"</tt>.
|
265
263
|
|
266
264
|
<ruby>
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
end
|
265
|
+
def welcome_email(user)
|
266
|
+
@user = user
|
267
|
+
email_with_name = "#{@user.name} <#{@user.email}>"
|
268
|
+
mail(:to => email_with_name, :subject => "Welcome to My Awesome Site")
|
269
|
+
end
|
273
270
|
</ruby>
|
274
271
|
|
275
272
|
h4. Mailer Views
|
@@ -289,9 +286,7 @@ class UserMailer < ActionMailer::Base
|
|
289
286
|
:subject => "Welcome to My Awesome Site",
|
290
287
|
:template_path => 'notifications',
|
291
288
|
:template_name => 'another')
|
292
|
-
end
|
293
289
|
end
|
294
|
-
|
295
290
|
end
|
296
291
|
</ruby>
|
297
292
|
|
@@ -461,14 +456,14 @@ h3. Action Mailer Configuration
|
|
461
456
|
|
462
457
|
The following configuration options are best made in one of the environment files (environment.rb, production.rb, etc...)
|
463
458
|
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
459
|
+
|+template_root+|Determines the base from which template references will be made.|
|
460
|
+
|+logger+|Generates information on the mailing run if available. Can be set to +nil+ for no logging. Compatible with both Ruby's own +Logger+ and +Log4r+ loggers.|
|
461
|
+
|+smtp_settings+|Allows detailed configuration for <tt>:smtp</tt> delivery method:<ul><li><tt>:address</tt> - Allows you to use a remote mail server. Just change it from its default "localhost" setting.</li><li><tt>:port</tt> - On the off chance that your mail server doesn't run on port 25, you can change it.</li><li><tt>:domain</tt> - If you need to specify a HELO domain, you can do it here.</li><li><tt>:user_name</tt> - If your mail server requires authentication, set the username in this setting.</li><li><tt>:password</tt> - If your mail server requires authentication, set the password in this setting.</li><li><tt>:authentication</tt> - If your mail server requires authentication, you need to specify the authentication type here. This is a symbol and one of <tt>:plain</tt>, <tt>:login</tt>, <tt>:cram_md5</tt>.</li></ul>|
|
462
|
+
|+sendmail_settings+|Allows you to override options for the <tt>:sendmail</tt> delivery method.<ul><li><tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.</li><li><tt>:arguments</tt> - The command line arguments to be passed to sendmail. Defaults to <tt>-i -t</tt>.</li></ul>|
|
463
|
+
|+raise_delivery_errors+|Whether or not errors should be raised if the email fails to be delivered.|
|
464
|
+
|+delivery_method+|Defines a delivery method. Possible values are <tt>:smtp</tt> (default), <tt>:sendmail</tt>, <tt>:file</tt> and <tt>:test</tt>.|
|
465
|
+
|+perform_deliveries+|Determines whether deliveries are actually carried out when the +deliver+ method is invoked on the Mail message. By default they are, but this can be turned off to help functional testing.|
|
466
|
+
|+deliveries+|Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most useful for unit and functional testing.|
|
472
467
|
|
473
468
|
h4. Example Action Mailer Configuration
|
474
469
|
|
@@ -560,6 +560,7 @@ Client.where("orders_count > 10").order(:name).reverse_order
|
|
560
560
|
</ruby>
|
561
561
|
|
562
562
|
The SQL that would be executed:
|
563
|
+
|
563
564
|
<sql>
|
564
565
|
SELECT * FROM clients WHERE orders_count > 10 ORDER BY name DESC
|
565
566
|
</sql>
|
@@ -571,6 +572,7 @@ Client.where("orders_count > 10").reverse_order
|
|
571
572
|
</ruby>
|
572
573
|
|
573
574
|
The SQL that would be executed:
|
575
|
+
|
574
576
|
<sql>
|
575
577
|
SELECT * FROM clients WHERE orders_count > 10 ORDER BY clients.id DESC
|
576
578
|
</sql>
|
@@ -621,8 +623,6 @@ You're then responsible for dealing with the conflict by rescuing the exception
|
|
621
623
|
|
622
624
|
NOTE: You must ensure that your database schema defaults the +lock_version+ column to +0+.
|
623
625
|
|
624
|
-
<br />
|
625
|
-
|
626
626
|
This behavior can be turned off by setting <tt>ActiveRecord::Base.lock_optimistically = false</tt>.
|
627
627
|
|
628
628
|
To override the name of the +lock_version+ column, +ActiveRecord::Base+ provides a class method called +set_locking_column+:
|
@@ -226,7 +226,7 @@ If any of the files in the manifest have changed between requests, the server re
|
|
226
226
|
|
227
227
|
h4. Debugging Assets
|
228
228
|
|
229
|
-
You can put +?debug_assets=true+ or +?debug_assets=1+ at the end of a URL and Sprockets expands the lines which load the assets. For example, if you had an +app/assets/javascripts/application.js+ file containing these lines:
|
229
|
+
You can put +?debug_assets=true+ or +?debug_assets=1+ at the end of a URL or set +config.assets.debug+ and Sprockets expands the lines which load the assets. For example, if you had an +app/assets/javascripts/application.js+ file containing these lines:
|
230
230
|
|
231
231
|
<plain>
|
232
232
|
//= require "projects"
|
@@ -249,6 +249,8 @@ When the +debug_assets+ parameter is set, this line is expanded out into three s
|
|
249
249
|
|
250
250
|
This allows the individual parts of an asset to be rendered and debugged separately.
|
251
251
|
|
252
|
+
NOTE. Assets debugging is turned on by default in development and test environments.
|
253
|
+
|
252
254
|
h3. In Production
|
253
255
|
|
254
256
|
In the production environment, assets are served slightly differently.
|
@@ -1892,7 +1892,7 @@ h3. Changelog
|
|
1892
1892
|
|
1893
1893
|
* April 26, 2011: Change migration code from +up+, +down+ pair to +change+ method by "Prem Sichanugrist":http://sikachu.com
|
1894
1894
|
* April 11, 2011: Change scaffold_controller generator to create format block for JSON instead of XML by "Sebastian Martinez":http://www.wyeworks.com
|
1895
|
-
* August 30, 2010: Minor editing after Rails 3 release by
|
1895
|
+
* August 30, 2010: Minor editing after Rails 3 release by Joost Baaij
|
1896
1896
|
* July 12, 2010: Fixes, editing and updating of code samples by "Jaime Iniesta":http://jaimeiniesta.com
|
1897
1897
|
* May 16, 2010: Added a section on configuration gotchas to address common encoding problems that people might have by "Yehuda Katz":http://www.yehudakatz.com
|
1898
1898
|
* April 30, 2010: Fixes, editing and updating of code samples by "Rohit Arondekar":http://rohitarondekar.com
|
@@ -124,7 +124,7 @@ Ruby on Rails Guides
|
|
124
124
|
<p>This guide covers the basic configuration settings for a Rails application.</p>
|
125
125
|
<% end %>
|
126
126
|
|
127
|
-
<%= guide("Rails Command Line Tools and Rake tasks", 'command_line.html'
|
127
|
+
<%= guide("Rails Command Line Tools and Rake tasks", 'command_line.html') do %>
|
128
128
|
<p>This guide covers the command line tools and rake tasks provided by Rails.</p>
|
129
129
|
<% end %>
|
130
130
|
|
@@ -761,7 +761,6 @@ def subclasses
|
|
761
761
|
end
|
762
762
|
</ruby>
|
763
763
|
|
764
|
-
|
765
764
|
The +config+ method used at the top of +I18n::Railtie+ is defined on +Rails::Railtie+ and is defined like this:
|
766
765
|
|
767
766
|
<ruby>
|
@@ -848,7 +847,7 @@ The +Collection+ class in +railties/lib/rails/initializable.rb+ inherits from +A
|
|
848
847
|
|
849
848
|
The +initializers_chain+ method referenced in the +initializers_for+ method is defined like this:
|
850
849
|
|
851
|
-
<
|
850
|
+
<ruby>
|
852
851
|
def initializers_chain
|
853
852
|
initializers = Collection.new
|
854
853
|
ancestors.reverse_each do | klass |
|
@@ -300,6 +300,7 @@ change_table :products do |t|
|
|
300
300
|
t.rename :upccode, :upc_code
|
301
301
|
end
|
302
302
|
</ruby>
|
303
|
+
|
303
304
|
removes the +description+ and +name+ columns, creates a +part_number+ column and adds an index on it. Finally it renames the +upccode+ column. This is the same as doing
|
304
305
|
|
305
306
|
<ruby>
|
@@ -386,6 +386,7 @@ ActiveRecord::Base.send :include, Yaffle::ActsAsYaffle
|
|
386
386
|
</ruby>
|
387
387
|
|
388
388
|
Run +rake+ one final time and you should see:
|
389
|
+
|
389
390
|
<shell>
|
390
391
|
7 tests, 7 assertions, 0 failures, 0 errors, 0 skips
|
391
392
|
</shell>
|
@@ -426,6 +427,7 @@ require 'yaffle'
|
|
426
427
|
|
427
428
|
You can test this by changing to the Rails application that you added the plugin to and starting a rails console. Once in the
|
428
429
|
console we can check to see if the String has an instance method of to_squawk.
|
430
|
+
|
429
431
|
<shell>
|
430
432
|
$ cd my_app
|
431
433
|
$ rails console
|
@@ -80,7 +80,6 @@ This will also be a good idea, if you modify the structure of an object and old
|
|
80
80
|
|
81
81
|
* _(highlight)Critical data should not be stored in session_. If the user clears his cookies or closes the browser, they will be lost. And with a client-side session storage, the user can read the data.
|
82
82
|
|
83
|
-
|
84
83
|
h4. Session Storage
|
85
84
|
|
86
85
|
-- _Rails provides several storage mechanisms for the session hashes. The most important are ActiveRecordStore and CookieStore._
|
@@ -33,11 +33,13 @@ module Rails
|
|
33
33
|
@cache_store = [ :file_store, "#{root}/tmp/cache/" ]
|
34
34
|
|
35
35
|
@assets = ActiveSupport::OrderedOptions.new
|
36
|
-
@assets.enabled
|
37
|
-
@assets.paths
|
38
|
-
@assets.precompile
|
39
|
-
@assets.prefix
|
40
|
-
@assets.version
|
36
|
+
@assets.enabled = false
|
37
|
+
@assets.paths = []
|
38
|
+
@assets.precompile = [ /\w+\.(?!js|css).+/, /application.(css|js)$/ ]
|
39
|
+
@assets.prefix = "/assets"
|
40
|
+
@assets.version = ''
|
41
|
+
@assets.debug = false
|
42
|
+
@assets.allow_debugging = false
|
41
43
|
|
42
44
|
@assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ]
|
43
45
|
@assets.js_compressor = nil
|
@@ -0,0 +1,113 @@
|
|
1
|
+
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
2
|
+
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
3
|
+
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
4
|
+
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
5
|
+
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
6
|
+
!_TAG_PROGRAM_VERSION 5.8 //
|
7
|
+
AppGenerator application.rb /^ class AppGenerator$/;" c class:Rails.Generators
|
8
|
+
Application application.rb /^ module Application$/;" m class:Rails.Commands
|
9
|
+
Commands application.rb /^ module Commands$/;" m class:Rails
|
10
|
+
Commands plugin.rb /^module Commands$/;" m
|
11
|
+
Commands runner.rb /^ module Commands$/;" m class:Rails
|
12
|
+
Console console.rb /^ class Console$/;" c class:Rails
|
13
|
+
DBConsole dbconsole.rb /^ class DBConsole$/;" c class:Rails
|
14
|
+
Generators application.rb /^ module Generators$/;" m class:Rails
|
15
|
+
Info plugin.rb /^ class Info$/;" c class:Commands
|
16
|
+
Install plugin.rb /^ class Install$/;" c class:Commands
|
17
|
+
Options server.rb /^ class Options$/;" c class:Rails.Server
|
18
|
+
Plugin plugin.rb /^ class Plugin$/;" c class:Commands
|
19
|
+
Plugin plugin.rb /^class Plugin$/;" c
|
20
|
+
Rails application.rb /^module Rails$/;" m
|
21
|
+
Rails console.rb /^module Rails$/;" m
|
22
|
+
Rails dbconsole.rb /^module Rails$/;" m
|
23
|
+
Rails runner.rb /^module Rails$/;" m
|
24
|
+
Rails server.rb /^module Rails$/;" m
|
25
|
+
RailsEnvironment plugin.rb /^class RailsEnvironment$/;" c
|
26
|
+
RecursiveHTTPFetcher plugin.rb /^class RecursiveHTTPFetcher$/;" c
|
27
|
+
Remove plugin.rb /^ class Remove$/;" c class:Commands
|
28
|
+
Runner runner.rb /^ module Runner$/;" m class:Rails.Commands
|
29
|
+
Server server.rb /^ class Server < ::Rack::Server$/;" c class:Rails
|
30
|
+
application.rb application.rb 1;" F
|
31
|
+
benchmarker.rb benchmarker.rb 1;" F
|
32
|
+
best_install_method plugin.rb /^ def best_install_method$/;" f class:RailsEnvironment
|
33
|
+
console.rb console.rb 1;" F
|
34
|
+
dbconsole.rb dbconsole.rb 1;" F
|
35
|
+
default plugin.rb /^ def self.default$/;" F class:RailsEnvironment
|
36
|
+
default plugin.rb /^ def self.default=(rails_env)$/;" F class:RailsEnvironment
|
37
|
+
default_options server.rb /^ def default_options$/;" f class:Rails.Server
|
38
|
+
destroy.rb destroy.rb 1;" F
|
39
|
+
determine_install_method plugin.rb /^ def determine_install_method$/;" f class:Commands.Install
|
40
|
+
download plugin.rb /^ def download(link)$/;" f class:RecursiveHTTPFetcher
|
41
|
+
environment= plugin.rb /^ def environment=(value)$/;" f class:Commands.Plugin
|
42
|
+
execute application.rb /^ def self.execute(app_path, argv)$/;" F class:Rails.Commands.Application
|
43
|
+
execute runner.rb /^ def self.execute(app_path, argv)$/;" F class:Rails.Commands.Runner
|
44
|
+
exit_on_failure application.rb /^ def self.exit_on_failure?$/;" F class:Rails.Generators.AppGenerator
|
45
|
+
externals plugin.rb /^ def externals$/;" f class:RailsEnvironment
|
46
|
+
externals= plugin.rb /^ def externals=(items)$/;" f class:RailsEnvironment
|
47
|
+
fetch plugin.rb /^ def fetch(links = @urls_to_fetch)$/;" f
|
48
|
+
fetch_dir plugin.rb /^ def fetch_dir(url)$/;" f
|
49
|
+
find plugin.rb /^ def self.find(dir=nil)$/;" F class:RailsEnvironment
|
50
|
+
find plugin.rb /^ def self.find(name)$/;" F class:Plugin
|
51
|
+
find_cmd dbconsole.rb /^ def find_cmd(*commands)$/;" f
|
52
|
+
generate.rb generate.rb 1;" F
|
53
|
+
git_url? plugin.rb /^ def git_url?$/;" f class:Plugin
|
54
|
+
guess_name plugin.rb /^ def guess_name(url)$/;" f
|
55
|
+
info plugin.rb /^ def info$/;" f class:Plugin
|
56
|
+
initialize console.rb /^ def initialize(app)$/;" f class:Rails.Console
|
57
|
+
initialize dbconsole.rb /^ def initialize(app)$/;" f class:Rails.DBConsole
|
58
|
+
initialize plugin.rb /^ def initialize$/;" f class:Commands.Plugin
|
59
|
+
initialize plugin.rb /^ def initialize(base_command)$/;" f class:Commands.Info
|
60
|
+
initialize plugin.rb /^ def initialize(base_command)$/;" f class:Commands.Install
|
61
|
+
initialize plugin.rb /^ def initialize(base_command)$/;" f class:Commands.Remove
|
62
|
+
initialize plugin.rb /^ def initialize(dir)$/;" f class:RailsEnvironment
|
63
|
+
initialize plugin.rb /^ def initialize(uri, name = nil)$/;" f class:Plugin
|
64
|
+
initialize plugin.rb /^ def initialize(urls_to_fetch, level = 1, cwd = ".")$/;" f class:RecursiveHTTPFetcher
|
65
|
+
initialize server.rb /^ def initialize(*)$/;" f class:Rails.Server
|
66
|
+
install plugin.rb /^ def install(method=nil, options = {})$/;" f class:Plugin
|
67
|
+
install plugin.rb /^ def install(name_uri_or_plugin)$/;" f class:RailsEnvironment
|
68
|
+
install_using_checkout plugin.rb /^ def install_using_checkout(options = {})$/;" f class:Plugin
|
69
|
+
install_using_export plugin.rb /^ def install_using_export(options = {})$/;" f class:Plugin
|
70
|
+
install_using_externals plugin.rb /^ def install_using_externals(options = {})$/;" f class:Plugin
|
71
|
+
install_using_git plugin.rb /^ def install_using_git(options = {})$/;" f
|
72
|
+
install_using_http plugin.rb /^ def install_using_http(options = {})$/;" f class:Plugin
|
73
|
+
installed? plugin.rb /^ def installed?$/;" f class:Plugin
|
74
|
+
links plugin.rb /^ def links(base_url, contents)$/;" f class:RecursiveHTTPFetcher.ls
|
75
|
+
log_path server.rb /^ def log_path$/;" f class:Rails.Server
|
76
|
+
ls plugin.rb /^ def ls$/;" f class:RecursiveHTTPFetcher
|
77
|
+
middleware server.rb /^ def middleware$/;" f class:Rails.Server
|
78
|
+
opt_parser server.rb /^ def opt_parser$/;" f class:Rails.Server
|
79
|
+
options plugin.rb /^ def options$/;" f class:Commands.Info
|
80
|
+
options plugin.rb /^ def options$/;" f class:Commands.Install
|
81
|
+
options plugin.rb /^ def options$/;" f class:Commands.Plugin
|
82
|
+
options plugin.rb /^ def options$/;" f class:Commands.Remove
|
83
|
+
parse plugin.rb /^ def self.parse!(args=ARGV)$/;" F class:Commands.Plugin
|
84
|
+
parse! plugin.rb /^ def parse!(args)$/;" f class:Commands.Info
|
85
|
+
parse! plugin.rb /^ def parse!(args)$/;" f class:Commands.Install
|
86
|
+
parse! plugin.rb /^ def parse!(args)$/;" f class:Commands.Remove
|
87
|
+
parse! plugin.rb /^ def parse!(args=ARGV)$/;" f class:Commands.Plugin
|
88
|
+
parse! server.rb /^ def parse!(args)$/;" f class:Rails.Server.Options
|
89
|
+
plugin.rb plugin.rb 1;" F
|
90
|
+
plugin_new.rb plugin_new.rb 1;" F
|
91
|
+
pop_d plugin.rb /^ def pop_d$/;" f class:RecursiveHTTPFetcher.ls
|
92
|
+
profiler.rb profiler.rb 1;" F
|
93
|
+
push_d plugin.rb /^ def push_d(dir)$/;" f class:RecursiveHTTPFetcher.ls
|
94
|
+
rails_env plugin.rb /^ def rails_env$/;" f
|
95
|
+
run_install_hook plugin.rb /^ def run_install_hook$/;" f class:Plugin
|
96
|
+
run_uninstall_hook plugin.rb /^ def run_uninstall_hook$/;" f class:Plugin
|
97
|
+
runner.rb runner.rb 1;" F
|
98
|
+
server.rb server.rb 1;" F
|
99
|
+
set_environment server.rb /^ def set_environment$/;" f class:Rails.Server
|
100
|
+
split_args plugin.rb /^ def split_args(args)$/;" f class:Commands.Plugin
|
101
|
+
start console.rb /^ def self.start(app)$/;" F class:Rails.Console
|
102
|
+
start console.rb /^ def start$/;" f class:Rails.Console
|
103
|
+
start dbconsole.rb /^ def self.start(app)$/;" F class:Rails.DBConsole
|
104
|
+
start dbconsole.rb /^ def start$/;" f class:Rails.DBConsole
|
105
|
+
start server.rb /^ def start$/;" f class:Rails.Server
|
106
|
+
svn_command plugin.rb /^ def svn_command(cmd, options = {})$/;" f
|
107
|
+
svn_url? plugin.rb /^ def svn_url?$/;" f class:Plugin
|
108
|
+
to_s plugin.rb /^ def to_s$/;" f class:Plugin
|
109
|
+
uninstall plugin.rb /^ def uninstall$/;" f class:Plugin
|
110
|
+
update.rb update.rb 1;" F
|
111
|
+
use_checkout? plugin.rb /^ def use_checkout?$/;" f class:RailsEnvironment
|
112
|
+
use_externals? plugin.rb /^ def use_externals?$/;" f class:RailsEnvironment
|
113
|
+
use_svn? plugin.rb /^ def use_svn?$/;" f class:RailsEnvironment
|
@@ -4,12 +4,12 @@ require File.expand_path('../boot', __FILE__)
|
|
4
4
|
require 'rails/all'
|
5
5
|
<% else -%>
|
6
6
|
# Pick the frameworks you want:
|
7
|
-
<%= comment_if :skip_active_record %>
|
7
|
+
<%= comment_if :skip_active_record %>require "active_record/railtie"
|
8
8
|
require "action_controller/railtie"
|
9
9
|
require "action_mailer/railtie"
|
10
10
|
require "active_resource/railtie"
|
11
|
-
<%= comment_if :skip_sprockets %>
|
12
|
-
<%= comment_if :skip_test_unit %>
|
11
|
+
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
|
12
|
+
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
|
13
13
|
<% end -%>
|
14
14
|
|
15
15
|
if defined?(Bundler)
|
@@ -24,4 +24,10 @@
|
|
24
24
|
|
25
25
|
# Do not compress assets
|
26
26
|
config.assets.compress = false
|
27
|
+
|
28
|
+
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
|
29
|
+
config.assets.allow_debugging = true
|
30
|
+
|
31
|
+
# Expands the lines which load the assets
|
32
|
+
config.assets.debug = true
|
27
33
|
end
|
@@ -8,8 +8,8 @@ require 'rails/all'
|
|
8
8
|
require "action_controller/railtie"
|
9
9
|
require "action_mailer/railtie"
|
10
10
|
require "active_resource/railtie"
|
11
|
-
<%= comment_if :skip_sprockets %>
|
12
|
-
<%= comment_if :skip_test_unit %>
|
11
|
+
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
|
12
|
+
<%= comment_if :skip_test_unit %>require "rails/test_unit/railtie"
|
13
13
|
<% end -%>
|
14
14
|
|
15
15
|
Bundler.require
|
data/lib/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 977940593
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
|
12
|
-
version: 3.1.0.rc6
|
10
|
+
- rc8
|
11
|
+
version: 3.1.0.rc8
|
13
12
|
platform: ruby
|
14
13
|
authors:
|
15
14
|
- David Heinemeier Hansson
|
@@ -17,7 +16,8 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2011-08-
|
19
|
+
date: 2011-08-29 00:00:00 -03:00
|
20
|
+
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rake
|
@@ -90,14 +90,13 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - "="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
hash:
|
93
|
+
hash: 977940593
|
94
94
|
segments:
|
95
95
|
- 3
|
96
96
|
- 1
|
97
97
|
- 0
|
98
|
-
-
|
99
|
-
|
100
|
-
version: 3.1.0.rc6
|
98
|
+
- rc8
|
99
|
+
version: 3.1.0.rc8
|
101
100
|
type: :runtime
|
102
101
|
version_requirements: *id005
|
103
102
|
- !ruby/object:Gem::Dependency
|
@@ -108,14 +107,13 @@ dependencies:
|
|
108
107
|
requirements:
|
109
108
|
- - "="
|
110
109
|
- !ruby/object:Gem::Version
|
111
|
-
hash:
|
110
|
+
hash: 977940593
|
112
111
|
segments:
|
113
112
|
- 3
|
114
113
|
- 1
|
115
114
|
- 0
|
116
|
-
-
|
117
|
-
|
118
|
-
version: 3.1.0.rc6
|
115
|
+
- rc8
|
116
|
+
version: 3.1.0.rc8
|
119
117
|
type: :runtime
|
120
118
|
version_requirements: *id006
|
121
119
|
description: "Rails internals: application bootup, plugins, generators, and rake tasks."
|
@@ -319,6 +317,7 @@ files:
|
|
319
317
|
- lib/rails/commands/profiler.rb
|
320
318
|
- lib/rails/commands/runner.rb
|
321
319
|
- lib/rails/commands/server.rb
|
320
|
+
- lib/rails/commands/tags
|
322
321
|
- lib/rails/commands/update.rb
|
323
322
|
- lib/rails/commands.rb
|
324
323
|
- lib/rails/configuration.rb
|
@@ -533,6 +532,7 @@ files:
|
|
533
532
|
- lib/rails/generators/rails/generator/templates/templates/.empty_directory
|
534
533
|
- lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory
|
535
534
|
- lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory
|
535
|
+
has_rdoc: true
|
536
536
|
homepage: http://www.rubyonrails.org
|
537
537
|
licenses: []
|
538
538
|
|
@@ -567,7 +567,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
567
567
|
requirements: []
|
568
568
|
|
569
569
|
rubyforge_project:
|
570
|
-
rubygems_version: 1.
|
570
|
+
rubygems_version: 1.3.7
|
571
571
|
signing_key:
|
572
572
|
specification_version: 3
|
573
573
|
summary: Tools for creating, working with, and running Rails applications.
|