Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5980 commits
Select commit Hold shift + click to select a range
b9edb0c
Update the Gemfile and CI build
Feb 1, 2010
d1eed07
Merge branch 'master' of git://github.com/rails/rails
mikel Feb 1, 2010
485f12f
Fixed --dev flag for new bundler
mikel Feb 2, 2010
5998dd7
Resolve view paths correctly on CygWin
rubys Feb 2, 2010
df8852d
Make rdoc match current API
rubys Jan 29, 2010
ab83800
Hide '/rails/info/properties' from 'rake routes' [#3793 state:resolved]
sikachu Jan 27, 2010
f16e2ae
Updating USAGE information for Mailer generator [#3801 status:resolved]
Jan 28, 2010
f4e5303
fixed migration logger bug [#3434 status:resolved]
probablycorey Oct 27, 2009
ea2cbc8
Add test case for unable to run migration if ActiveRecord::Base.logge…
sikachu Jan 26, 2010
c01014a
Modify the behavior of `radio_button_tag` to use `sanitize_to_id` for…
sikachu Jan 27, 2010
17bee0d
Change Rails::Generators::Migration protected instance methods to cla…
szimek Jan 30, 2010
101a8fa
Ensure that attr_reader methods in generators are protected.
josevalim Feb 2, 2010
ec4b18e
Get rid of deprecation warnings on config/environments/*
josevalim Feb 2, 2010
95eadb3
Configuration values should be on AV::Base.
josevalim Feb 2, 2010
afdf524
Routing Mapper with % interpolation on Ruby 1.9.1 fixed [#3837 status…
Feb 1, 2010
ff2d04a
Revert "failing tests in multibyte_chars_test.rb fixed". The bug is i…
josevalim Feb 2, 2010
2c97816
Fix invocation of system commands in ci script
thewoolleyman Feb 2, 2010
144f41e
Use bundler 0.9.0.pre4 when running CI
Feb 2, 2010
d236827
Removed all the default commands in script/* and replaced them with s…
Feb 2, 2010
08fd9a6
Remove the generated gemfile in railties tests since the rails gemfil…
Feb 2, 2010
9f22406
Boot path has already been required, dont need it again
Feb 2, 2010
d537496
Add a reminder that you should use "rails" not "script/rails" when ru…
Feb 2, 2010
7840ea2
Added "rake about" as a replacement for script/about [DHH]
Feb 3, 2010
68ca336
Fix rails server
Feb 3, 2010
ea59177
Wups, need the application command in there too
Feb 3, 2010
9a83bd5
Rename usage path to command to just the command name
Feb 3, 2010
76d5428
Updating index.html to remove script/generate and making railties tes…
mikel Feb 3, 2010
80e4935
Updating index.html to remove script/generate and making railties tes…
mikel Feb 3, 2010
fbdef7a
Made rake db:create also create the test database if you are in devel…
mikel Feb 3, 2010
9d65390
Added encoding qery support for SQLite3 to make rake db:charset work …
mikel Feb 3, 2010
38d13f9
Deprecated freeze rake tasks and cleaned up annotations.rake
mikel Feb 3, 2010
f390ead
Adding 'db' as a shortcut for dbconsole to the rails command
mikel Feb 3, 2010
b135043
Merge remote branch 'mikel/master'
josevalim Feb 3, 2010
836cbe5
Add method and path to AC notifications.
josevalim Feb 3, 2010
622e3dd
No more vendored thor.
josevalim Feb 3, 2010
391f254
Properly show middlewares on rake about.
josevalim Feb 3, 2010
efa8505
Make bin/rails call rails/commands/application, fix generators usage …
josevalim Feb 3, 2010
7701587
Removing submodule hacks
Feb 4, 2010
f497e7a
Update rails to use the latest bundler
Feb 4, 2010
02ef8d2
Adding guard to make sure test database declarations exist before try…
mikel Feb 3, 2010
1ae543a
-v and --version params now work on rails script in or our of an app
mikel Feb 4, 2010
639e044
removing , from ,= statement in WrappedDatabaseException constructor
subbarao Feb 1, 2010
9b033d1
Merge remote branch 'mikel/master'
jeremy Feb 4, 2010
36e6daa
Copy over latest release notes from docrails
Feb 4, 2010
ddb512c
Simplify description
Feb 4, 2010
79817aa
Move to 3.0.0.beta
Feb 4, 2010
dd13874
Merge
Feb 4, 2010
e71825d
remove arel directory, breaks 'git submodule init', which breaks ci b…
thewoolleyman Feb 4, 2010
031139b
Homogenize gemspecs and remove the deprecated autorequire
Feb 4, 2010
db15e49
Autorequire bundled libraries by default
jeremy Feb 4, 2010
b636430
Bump bundler dep to 0.9.1.pre1
jeremy Feb 4, 2010
c9ec28b
Use a normal gem source url instead of a magic symbol
jeremy Feb 4, 2010
31248fe
Remove instrument! and require thread from AS::Notifications.
josevalim Feb 4, 2010
ab14e3f
Merge branch 'master' of gitproxy:rails/rails
josevalim Feb 4, 2010
79376e3
Update Gemfile to use latest bundler config.
josevalim Feb 4, 2010
d0f9842
Automatically require rubygems when --dev flag is given.
josevalim Feb 4, 2010
6d6e610
require 'action_controller' added on a test that uses it
Feb 3, 2010
06860dc
Remove duplicated version check.
josevalim Feb 4, 2010
25b6b95
Make RAILS_* give deprecation warning just once
lifo Feb 4, 2010
6b3fb38
Updated the database.yml file generated for ibm_db to the latest vers…
acangiano Feb 4, 2010
5c07c33
Move framework requires and Bundler.require from boot.rb to app.rb. C…
jeremy Feb 4, 2010
23ad1ef
Rationalize railtie dependencies: AC uses AV; AR uses AMo; and Rails …
jeremy Feb 4, 2010
2faf94a
Use the correct environment.rb path
jeremy Feb 4, 2010
6154278
Fix broken autorequires
jeremy Feb 4, 2010
358451c
Rails script commands load the application rather than just boot
jeremy Feb 4, 2010
ca273d1
Revert "Rails script commands load the application rather than just b…
jeremy Feb 4, 2010
293fd9d
server command loads the application
jeremy Feb 4, 2010
a871b1a
Depend on bundler >= 0.9.1
jeremy Feb 4, 2010
a74ed0c
Autorequire default libs and those in groups named after the current …
jeremy Feb 4, 2010
c697974
Bump to bundler 0.9.2
jeremy Feb 4, 2010
2036268
Link to main Arel repository
brynary Feb 4, 2010
127e534
Ensure javascripts are pulled in so UJS can hook the Delete link
jeremy Feb 4, 2010
78de17c
Expose CSRF tag for UJS adapters
jeremy Feb 4, 2010
09a88a3
fix rubygems/bundler install in ci build script
thewoolleyman Feb 4, 2010
2191aa4
Expose CSRF param name also
jeremy Feb 4, 2010
3062bc7
HTML-escape csrf meta contents
jeremy Feb 5, 2010
358968c
Update prototype-ujs for data-confirm
jeremy Feb 5, 2010
6bf79f0
Revert dumb test
jeremy Feb 5, 2010
7b1d3a0
Add prototype ujs handler for data-method
jeremy Feb 5, 2010
31f8a59
Test that csrf meta content is html-escaped, too
jeremy Feb 5, 2010
c1785f3
Release using gemcutter gem:push tasks
jeremy Feb 5, 2010
657ffed
Need gemcutter here too
Feb 5, 2010
ed6e72a
No sense bundling sense it's not available in Rakefile. Also, actuall…
jeremy Feb 5, 2010
7b81f59
Fix task defines
jeremy Feb 5, 2010
b1f30ef
Kill default require_path
jeremy Feb 5, 2010
ae4cb06
Add the dummy rails3b gemspec that pulls in non-prerelease deps
jeremy Feb 5, 2010
459ecaf
Submarine the rake-gemcutter dep in Rakefiles
jeremy Feb 5, 2010
363a752
install ActionController::UrlFor before environment is parsed, to pro…
Feb 5, 2010
f1e5642
Revert "Link to main Arel repository"
jeremy Feb 5, 2010
a81a2a2
Bump arel dep
jeremy Feb 5, 2010
c548e21
Bump git versions to 3.0.0.beta1 since we've released
jeremy Feb 5, 2010
a96bf4a
Add yajl-ruby as a JSON parsing backend
brianmario Jan 26, 2010
63bb955
Automatically prefer Yajl or JSON backend over Yaml, if available
jeremy Feb 5, 2010
fd56778
Make UrlWriter includable in a Module
jeremy Feb 5, 2010
293c53a
Fixed html_safe test cases which weren't testing correctly
Feb 3, 2010
c65f4b1
Making SafeBuffer << an alias for concat method
spastorino Feb 4, 2010
e115eb0
More html_safe strings now use the safe_concat method
Feb 4, 2010
44c4655
test_validates_acceptance_of_as_database_column fixed
spastorino Feb 1, 2010
a9620ab
method_missing errors on activeresource tests, mocha is not required …
spastorino Jan 31, 2010
86df107
CI: add missing isolated tests
jeremy Feb 6, 2010
47db62b
CI: show bundled gems
jeremy Feb 6, 2010
6201abe
New style for path references
Feb 6, 2010
0ce9c80
Path approach shouldnt specify version
Feb 6, 2010
cbb0b2f
Simplify conditions for --dev and --edge
Feb 6, 2010
33a90f5
Not a fan of the double ##
Feb 6, 2010
c76df7a
Cleanup comments
Feb 6, 2010
59d8a2b
Lookup the status code and rework the Completed line a bit
Feb 6, 2010
b392c81
Fixes test fail
Feb 6, 2010
5384df5
Updates subscriber test for new output
Feb 6, 2010
4d177d4
Routes should not swallow all NameErrors [#3862 status:resolved].
josevalim Feb 6, 2010
22c0390
Add a test which ensures namespaced roots.
josevalim Feb 6, 2010
95b63c6
Fix 'rails server -h' double help banner. Correct its usage line. [#3…
henrik Feb 6, 2010
1d9d9d2
Fix tiny version number from '3.0.0beta' to '3.0.0.beta1', so 'rake i…
sikachu Feb 6, 2010
6958eac
Add config.generators.templates to provide alternative paths for temp…
josevalim Feb 6, 2010
299ab1f
removes Kernel#daemonize, which is no longer used
fxn Feb 6, 2010
bd5cb05
rack debugger needs active_support/core_ext/kernel/requires for requi…
fxn Feb 6, 2010
f44a0b1
fix usage examples and more to use new invocations
romdi Feb 6, 2010
3caca40
remove trailing whitespace
romdi Feb 6, 2010
9423c2a
Merge remote branch 'fxn/master'
jeremy Feb 6, 2010
28fe0c3
Silenced "SHOW FIELDS" and "SET SQL_AUTO_IS_NULL=0" statements from t…
Feb 6, 2010
5995482
Merge branch 'master' of github.com:rails/rails
Feb 6, 2010
9f3ea45
CI: set env after sudo
jeremy Feb 7, 2010
03b192d
CI: sudo unnecessary. Bump bundler dep to 0.9.3.
jeremy Feb 7, 2010
a4c3289
remove all sudo references from CI build script
thewoolleyman Feb 7, 2010
bb55bbd
Fixing actionmailer tests for CI
mikel Feb 7, 2010
ca1879b
Added newline to appended gem config in Gemfile
dkubb Feb 7, 2010
de69c79
Fix nested attributes with specified collection.
josevalim Feb 6, 2010
345e0b2
Add backtrace cleaner on test unit railtie.
josevalim Feb 7, 2010
d6ae930
fix ambiguous example for new invocation method
romdi Feb 7, 2010
518b4ff
Check if Test::Unit is defined before adding backtrace filter.
josevalim Feb 7, 2010
a1a6e54
Fix doc typo and update fast_xs URL. Thanks to Dmitrii Golub.
jeremy Feb 7, 2010
b235af7
Fix pluralization for numbers formatted like '1.00'
gabrielmansour Jan 30, 2010
afd2e19
removes Module#included_in_classes, which is no longer used
fxn Feb 7, 2010
cf9a52a
removes Module#as_load_path, which is no longer used
fxn Feb 7, 2010
5fe3dc4
Adding ruby version spec to all gemspec files to at least 1.8.7
mikel Feb 8, 2010
17b4518
Updating Prototype to 1.6.1 and script.aculo.us to 1.8.3
mikel Feb 8, 2010
7f7dfd2
Take into account gem versions (so script/rails server can work outsi…
josevalim Feb 8, 2010
ad98f21
Merge remote branch 'fxn/master'
jeremy Feb 8, 2010
6f24734
Fix failing spec
Feb 8, 2010
39ebd6e
rails runner loads environment after parsing command-line options
jeremy Feb 9, 2010
834a45d
Suggest Mongrel and Capistrano in the default bundle
Feb 10, 2010
fa2ff95
Its not a deprecation if you actually just ignore the call
Feb 10, 2010
d193895
Reinstate Object.subclasses_of and Class#descendents for plugin compat.
jeremy Feb 10, 2010
f84b4b4
Reinstate object/extending require too for Object.subclasses_of
jeremy Feb 10, 2010
7d76474
Debrittlize tests somewhat - fix for CI build
mikel Feb 10, 2010
af22c5b
Add missing -h/--help flag to several rails command [#3909 status:res…
sikachu Feb 9, 2010
f337ebc
Add default values to output of 'rails server -h', hardcoded as Rack:…
sikachu Feb 9, 2010
cafe882
Fix server environment [#3877 status:resolved]
sniemela Feb 9, 2010
9c65474
Fixes unescaped version passthrough of generator 'gem' command. [#390…
Feb 8, 2010
97650bf
Fix a couple failing tests.
josevalim Feb 10, 2010
9fd9e5d
fixes doc generation
fxn Feb 10, 2010
bea38d6
Don't rely on @message in Error classes being available for use
Feb 10, 2010
ff7db40
No need to emulate default Ruby behavior in initialize
Feb 10, 2010
a3eaaf6
Fix a JSON ordering issue
Feb 10, 2010
77f630d
Since require_dependency cannot be cleared, remove the dependencies
Feb 10, 2010
523002f
Fix isolated test fail due to missing mocha
jeremy Feb 11, 2010
8afcd33
Resolve test/unit load ordering by removing backtrace filter from boo…
jeremy Feb 11, 2010
2a2d187
CI: use minitest on 1.9 again.
jeremy Feb 11, 2010
eea28b0
Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.d…
Feb 11, 2010
b8bb54a
defines Module#anonymous?
fxn Feb 11, 2010
aa82bdf
moves Class#reachable? to Module#reachable?, bases implementation on …
fxn Feb 11, 2010
a506bac
fixes Module#anonymous? for 1.9
fxn Feb 11, 2010
2b874f8
Merge remote branch 'fxn/master'
jeremy Feb 11, 2010
9b14b13
Bump rack-mount dep to 0.5.3
jeremy Feb 12, 2010
86a696f
Wups, rack-mount 0.5.0
jeremy Feb 12, 2010
3d3e086
Force 0.4.7 for 3.0.0.beta. Bump to ~> 0.5.0 for beta1.
jeremy Feb 12, 2010
7b663e2
CI: blow away bundle path between runs to solve 1.8/1.9 binary incompat
jeremy Feb 12, 2010
5188c11
Revert to rack-mount 0.4.7
jeremy Feb 12, 2010
dc3cc6c
Move batch finders to Relation
lifo Feb 12, 2010
325fa58
Safely concat the ending tag to simple_format or it will be escaped
Feb 13, 2010
d68f8ba
simple_format returns a safe buffer escaping unsafe input [Santiago P…
Feb 13, 2010
4da4506
Simplify dependencies.rb some. Remove alias of Kernel::Foo to Object:…
Feb 14, 2010
f7db067
adds a few missing requires in AS object.rb and module.rb
fxn Feb 14, 2010
b68f5f7
name.blank? -> anonymous? in a few places
fxn Feb 12, 2010
a1b6069
Missing require
Feb 14, 2010
8e4363d
Save off Module's const_missing, not Class'
Feb 14, 2010
411c15e
require Strings, not Symbols
Feb 14, 2010
f86421f
content_tag should escape its input
nono Feb 13, 2010
9f1900e
html_escape mail_to when encode javascript and not hex
Feb 13, 2010
98a5bf8
Explicit html_escape removed when not needed
Feb 14, 2010
38eb2f1
Right.
Feb 14, 2010
7cff54f
name.blank? -> anonymous?
fxn Feb 14, 2010
eec2d30
Fix test load paths for those not using bundler
josh Feb 15, 2010
4419497
Make sure AS test env doesn't have duplicate libs in load path
josh Feb 15, 2010
546e319
CI has a bunch of duplicate load paths
josh Feb 15, 2010
3cecc44
rack-mount 0.5 support
josh Feb 15, 2010
2b323b4
adds rdoc dependency to generate the API
fxn Feb 15, 2010
ac956c4
Update AP to start locking down a public API. This work is parallel t…
Feb 16, 2010
f0523f7
Rename Rails::Subscriber to Rails::LogSubscriber
sikachu Feb 15, 2010
01cd9d6
Subscriber should not explode if a non namespaced instrumentation is …
josevalim Feb 16, 2010
72cb0bf
Do not swallow controller loading errors unless required.
josevalim Feb 16, 2010
19787e6
Should allow symbols in :only and :except in routes.
josevalim Feb 16, 2010
47a236e
AD::TestProcess relies on request.flash, so let's load it.
josevalim Feb 16, 2010
b1edd09
Ensure render :text => resource first tries to invoke :to_text on it
josevalim Feb 16, 2010
762088a
Clear the attribute after done
Feb 16, 2010
e8ef12e
Make Railties tests green again.
josevalim Feb 16, 2010
23fd1f1
Show deprecation message for rails/init.rb in plugins.
josevalim Feb 16, 2010
d4e008f
Invalid namespace on app generation raises an error
fizx Feb 12, 2010
3f948a0
Merge master.
josevalim Feb 16, 2010
e195b48
Have CI use the current version of bundler
Feb 17, 2010
d0454e5
Add readme as method in Rails::Generators::Actions (as we had in 2.3)
josevalim Feb 17, 2010
7189e3c
Rename router internal option :namespace to :controller_namespace whi…
josevalim Feb 17, 2010
1477a61
Fix called_from under Windows so engines works properly
aaronchi Feb 18, 2010
a5684df
Ensure config.after_initializer is executed before building the middl…
josevalim Feb 18, 2010
cc852e2
Use FileUtils.mv instead of rename to copy in case of cross-device links
jeremy Feb 18, 2010
8a1f057
Update Renderer
Feb 18, 2010
98c299f
Don't constantize possible module names when looking for new constant…
Feb 18, 2010
ae8c384
Avoid calling triggering const_missing if const_missing is private wh…
Feb 19, 2010
af05420
i18n translate with arrays issue solved
spastorino Feb 19, 2010
e6ce856
Git fail
Feb 19, 2010
e280692
ruby 1.9 array.to_s returns a string representing an escaped array
spastorino Feb 19, 2010
e49f94d
Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ens…
josevalim Feb 19, 2010
be35a15
Allow to choose the template path and template name used in implicit …
josevalim Feb 19, 2010
7d7f9cc
Reinstate pending tests that were supposed to be fixed before the
josh Feb 19, 2010
2f98032
Fix a problem where nil was appearing in the list
Feb 19, 2010
2f821a0
Fix test ordering bug related to introducing masked Name class
Feb 19, 2010
7ad2c5c
warning: instance variable @_const_missing not initialized fixed
spastorino Feb 19, 2010
a0a01d0
Remove empty line and trailing hash, breaks documentation generation
dbussink Feb 19, 2010
e4b910f
require publicize_conversion_method to ensure to_date and to_datetime…
spastorino Feb 19, 2010
e7055e5
i18n translate with arrays issue solved
spastorino Feb 19, 2010
bf8898b
Revert "i18n translate with arrays issue solved"
Feb 19, 2010
a3c6ad7
Fix a bunch of pending tests by providing an introspection mode for t…
Feb 20, 2010
9acd686
Adds #key and #to_param to the AMo interface
snusnu Feb 20, 2010
fed72b5
Rename engines_load_path to railties_load_path.
josevalim Feb 20, 2010
f81c6bc
AMo #key is now #to_key and CI is probably happy
snusnu Feb 21, 2010
9dd67fc
Add to_key and to_param methods to ActiveModel::Conversion.
josevalim Feb 21, 2010
250c809
Require persisted? in ActiveModel::Lint and remove new_record? and de…
josevalim Feb 21, 2010
8f97e9d
Add validators reflection so you can do 'Person.validators' and 'Pers…
sikachu Feb 18, 2010
7fe4ca3
Add a test for default_url_options in AM.
josevalim Feb 21, 2010
4477bcc
Also check if application is a valid constant in rake rails:update.
josevalim Feb 21, 2010
87a011d
Make install appear on rake -T.
josevalim Feb 21, 2010
55ae903
Store compiled parameter filters so we don't have to compile them in …
josevalim Feb 21, 2010
a7b78e8
Add a tests which ensures filtered_parameters does not raise an error…
josevalim Feb 21, 2010
4cdfe98
Typo
MSch Feb 21, 2010
6bc24d4
Use ActionDispatch::Routing everywhere
MSch Feb 21, 2010
6fa2bbf
Fix AMo isolated tests.
josevalim Feb 22, 2010
a6684ee
don't set @expected.date in generated mailer test
dchelimsky Feb 21, 2010
cefc136
Adding options to register observers and interceptors through ActionM…
mikel Feb 22, 2010
d92e855
Include missing modules.
josevalim Feb 22, 2010
35e0975
Rename erubis_implementation to erb_implementation.
josevalim Feb 22, 2010
ca92e92
avoid active not initialized warning
spastorino Feb 20, 2010
2b43021
avoid @transaction_joinable not initialized warning
spastorino Feb 22, 2010
ee54104
avoid @lock_value not initialized warning
spastorino Feb 22, 2010
3345af6
Fix streaming by having it create a File object, which can be handled…
Feb 23, 2010
a73f682
Make AD::Response correctly handle bodies that respond_to?(:to_path) …
Feb 24, 2010
5e2bd08
Makes send_file work again by deferring to Rack::Sendfile.
Feb 24, 2010
24ab566
Revert "Fix test load paths for those not using bundler"
Feb 24, 2010
47498a7
Woops, forgot to actually add active_support/core_ext/file/path.rb
Feb 24, 2010
ae933a0
Fix render :file => "#{Rails.root}/public/404.html", :status => :not_…
Feb 24, 2010
1a72ee6
Remove whitespace [Gun.io WhitespaceBot]
Oct 28, 2011
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 16 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
debug.log
doc/rdoc
activemodel/doc
activeresource/doc
activerecord/doc
actionpack/doc
actionmailer/doc
activesupport/doc
railties/doc
activeresource/pkg
activerecord/pkg
actionpack/pkg
actionmailer/pkg
activesupport/pkg
railties/pkg
*.rbc
activemodel/test/fixtures/fixture_database.sqlite3
actionpack/test/tmp
activesupport/test/fixtures/isolation_test
railties/test/500.html
railties/test/fixtures/tmp
railties/test/initializer/root/log
railties/doc/guides/html/images
railties/doc/guides/html/stylesheets
railties/guides/output
railties/tmp
bin
.bundle
pkg
*.gem
34 changes: 34 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
path File.dirname(__FILE__)
source 'http://gemcutter.org'

gem "rails", "3.0.0.beta1"

gem "rake", ">= 0.8.7"
gem "mocha", ">= 0.9.8"

if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
end

# AR
gem "sqlite3-ruby", ">= 1.2.5", :require => 'sqlite3'

group :test do
gem "pg", ">= 0.8.0"
gem "mysql", ">= 2.8.1"
end

# AP
gem "rack-test", "0.5.3", :require => 'rack/test'
gem "RedCloth", ">= 4.2.2"

group :documentation do
gem 'rdoc', '2.1'
end

if ENV['CI']
gem "nokogiri", ">= 1.4.0"

# fcgi gem doesn't compile on 1.9
gem "fcgi", ">= 0.8.7" if RUBY_VERSION < '1.9.0'
end
114 changes: 110 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,127 @@
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'

env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']

PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
PROJECTS = %w(activesupport activemodel actionpack actionmailer activeresource activerecord railties)

Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
require version_path
end

desc 'Run all tests by default'
task :default => :test
task :default => %w(test test:isolated)

%w(test rdoc package pgem release).each do |task_name|
%w(test test:isolated rdoc pgem package gem gemspec).each do |task_name|
desc "Run #{task_name} task for all projects"
task task_name do
errors = []
PROJECTS.each do |project|
system %(cd #{project} && #{env} #{$0} #{task_name})
system(%(cd #{project} && #{env} #{$0} #{task_name})) || errors << project
end
fail("Errors in #{errors.join(', ')}") unless errors.empty?
end
end

desc "Smoke-test all projects"
task :smoke do
(PROJECTS - %w(activerecord)).each do |project|
system %(cd #{project} && #{env} #{$0} test:isolated)
end
system %(cd activerecord && #{env} #{$0} sqlite3:isolated_test)
end

spec = eval(File.read('rails.gemspec'))
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end

desc "Release all gems to gemcutter. Package rails, package & push components, then push rails"
task :release => :release_projects do
require 'rake/gemcutter'
Rake::Gemcutter::Tasks.new(spec).define
Rake::Task['gem:push'].invoke
end

desc "Release all components to gemcutter."
task :release_projects => :package do
errors = []
PROJECTS.each do |project|
system(%(cd #{project} && #{env} #{$0} release)) || errors << project
end
fail("Errors in #{errors.join(', ')}") unless errors.empty?
end

desc "Install gems for all projects."
task :install => :gem do
(PROJECTS - ["railties"]).each do |project|
puts "INSTALLING #{project}"
system("gem install #{project}/pkg/#{project}-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
end
system("gem install railties/pkg/railties-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
system("gem install pkg/rails-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
end

desc "Generate documentation for the Rails framework"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.title = "Ruby on Rails Documentation"

rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '-A cattr_accessor=object'
rdoc.options << '--charset' << 'utf-8'

rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : './doc/template/horo'

rdoc.rdoc_files.include('railties/CHANGELOG')
rdoc.rdoc_files.include('railties/MIT-LICENSE')
rdoc.rdoc_files.include('railties/README')
rdoc.rdoc_files.include('railties/lib/{*.rb,commands/*.rb,rails/*.rb,generators/*.rb}')
rdoc.rdoc_files.exclude('railties/lib/vendor/*')

rdoc.rdoc_files.include('activerecord/README')
rdoc.rdoc_files.include('activerecord/CHANGELOG')
rdoc.rdoc_files.include('activerecord/lib/active_record/**/*.rb')
rdoc.rdoc_files.exclude('activerecord/lib/active_record/vendor/*')

rdoc.rdoc_files.include('activeresource/README')
rdoc.rdoc_files.include('activeresource/CHANGELOG')
rdoc.rdoc_files.include('activeresource/lib/active_resource.rb')
rdoc.rdoc_files.include('activeresource/lib/active_resource/*')

rdoc.rdoc_files.include('actionpack/README')
rdoc.rdoc_files.include('actionpack/CHANGELOG')
rdoc.rdoc_files.include('actionpack/lib/action_controller/**/*.rb')
rdoc.rdoc_files.include('actionpack/lib/action_view/**/*.rb')
rdoc.rdoc_files.exclude('actionpack/lib/action_controller/vendor/*')

rdoc.rdoc_files.include('actionmailer/README')
rdoc.rdoc_files.include('actionmailer/CHANGELOG')
rdoc.rdoc_files.include('actionmailer/lib/action_mailer/base.rb')
rdoc.rdoc_files.exclude('actionmailer/lib/action_mailer/vendor/*')

rdoc.rdoc_files.include('activesupport/README')
rdoc.rdoc_files.include('activesupport/CHANGELOG')
rdoc.rdoc_files.include('activesupport/lib/active_support/**/*.rb')
rdoc.rdoc_files.exclude('activesupport/lib/active_support/vendor/*')

rdoc.rdoc_files.include('activemodel/README')
rdoc.rdoc_files.include('activemodel/CHANGELOG')
rdoc.rdoc_files.include('activemodel/lib/active_model/**/*.rb')
end

# Enhance rdoc task to copy referenced images also
task :rdoc do
FileUtils.mkdir_p "doc/rdoc/files/examples/"
FileUtils.copy "activerecord/examples/associations.png", "doc/rdoc/files/examples/associations.png"
end

desc "Publish API docs for Rails as a whole and for each component"
task :pdoc => :rdoc do
require 'rake/contrib/sshpublisher'
Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/api", "doc/rdoc").upload
PROJECTS.each do |project|
system %(cd #{project} && #{env} #{$0} pdoc)
end
end
70 changes: 59 additions & 11 deletions actionmailer/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,10 +1,58 @@
*Rails 3.0 (pending)*

* Whole new API added with tests. See base.rb for full details. Old API is deprecated.

* The Mail::Message class has helped methods for all the field types that return 'common' defaults for the common use case, so to get the subject, mail.subject will give you a string, mail.date will give you a DateTime object, mail.from will give you an array of address specs (mikel@test.lindsaar.net) etc. If you want to access the field object itself, call mail[:field_name] which will return the field object you want, which you can then chain, like mail[:from].formatted

* Mail#content_type now returns the content_type field as a string. If you want the mime type of a mail, then you call Mail#mime_type (eg, text/plain), if you want the parameters of the content type field, you call Mail#content_type_parameters which gives you a hash, eg {'format' => 'flowed', 'charset' => 'utf-8'}

* ActionMailer::Base :default_implicit_parts_order now is in the sequence of the order you want, no reversing of ordering takes place. The default order now is text/plain, then text/enriched, then text/html and then any other part that is not one of these three.

* Mail does not have "quoted_body", "quoted_subject" etc. All of these are accessed via body.encoded, subject.encoded etc

* Every object in a Mail object returns an object, never a string. So Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
* Mail::Message#set_content_type does not exist, it is simply Mail::Message#content_type

* Every mail message gets a unique message_id unless you specify one, had to change all the tests that check for equality with expected.encoded == actual.encoded to first replace their message_ids with control values

* Mail now has a proper concept of parts, remove the ActionMailer::Part and ActionMailer::PartContainer classes

* Calling #encoded on any object returns it as a string ready to go into the output stream of an email, this means it includes the \r\n at the end of the lines and the object is pre-wrapped with \r\n\t if it is a header field. Also, the "encoded" value includes the field name if it is a header field.

* Attachments are only the actual attachment, with filename etc. A part contains an attachment. The part has the content_type etc. So attachments.last.content_type is invalid. But parts.last.content_type

* There is no idea of a "sub_head" in Mail. A part is just a Message with some extra functionality, so it just has a "header" like a normal mail message


*2.3.2 [Final] (March 15, 2009)*

* Fixed that ActionMailer should send correctly formatted Return-Path in MAIL FROM for SMTP #1842 [Matt Jones]

* Fixed RFC-2045 quoted-printable bug #1421 [squadette]

* Fixed that no body charset would be set when there are attachments present #740 [Paweł Kondzior]


*2.2.1 [RC2] (November 14th, 2008)*

* Turn on STARTTLS if it is available in Net::SMTP (added in Ruby 1.8.7) and the SMTP server supports it (This is required for Gmail's SMTP server) #1336 [Grant Hollingworth]


*2.2.0 [RC1] (October 24th, 2008)*

* Add layout functionality to mailers [Pratik Naik]

Mailer layouts behaves just like controller layouts, except layout names need to
have '_mailer' postfix for them to be automatically picked up.


*2.1.0 (May 31st, 2008)*

* Fixed that a return-path header would be ignored #7572 [joost]

* Less verbose mail logging: just recipients for :info log level; the whole email for :debug only. #8000 [iaddict, Tarmo Tänav]

* Updated TMail to version 1.2.1 [raasdnil]
* Updated TMail to version 1.2.1 [Mikel Lindsaar]

* Fixed that you don't have to call super in ActionMailer::TestCase#setup #10406 [jamesgolick]

Expand All @@ -16,7 +64,7 @@

*2.0.1* (December 7th, 2007)

* Update ActionMailer so it treats ActionView the same way that ActionController does. Closes #10244 [rick]
* Update ActionMailer so it treats ActionView the same way that ActionController does. Closes #10244 [Rick Olson]

* Pass the template_root as an array as ActionView's view_path
* Request templates with the "#{mailer_name}/#{action}" as opposed to just "#{action}"
Expand All @@ -25,11 +73,11 @@

* Update README to use new smtp settings configuration API. Closes #10060 [psq]

* Allow ActionMailer subclasses to individually set their delivery method (so two subclasses can have different delivery methods) #10033 [zdennis]
* Allow ActionMailer subclasses to individually set their delivery method (so two subclasses can have different delivery methods) #10033 [Zach Dennis]

* Update TMail to v1.1.0. Use an updated version of TMail if available. [mikel]
* Update TMail to v1.1.0. Use an updated version of TMail if available. [Mikel Lindsaar]

* Introduce a new base test class for testing Mailers. ActionMailer::TestCase [Koz]
* Introduce a new base test class for testing Mailers. ActionMailer::TestCase [Michael Koziarski]

* Fix silent failure of rxml templates. #9879 [jstewart]

Expand Down Expand Up @@ -64,7 +112,7 @@

*1.3.2* (February 5th, 2007)

* Deprecate server_settings renaming it to smtp_settings, add sendmail_settings to allow you to override the arguments to and location of the sendmail executable. [Koz]
* Deprecate server_settings renaming it to smtp_settings, add sendmail_settings to allow you to override the arguments to and location of the sendmail executable. [Michael Koziarski]


*1.3.1* (January 16th, 2007)
Expand All @@ -84,7 +132,7 @@

* Tighten rescue clauses. #5985 [james@grayproductions.net]

* Automatically included ActionController::UrlWriter, such that URL generation can happen within ActionMailer controllers. [DHH]
* Automatically included ActionController::UrlWriter, such that URL generation can happen within ActionMailer controllers. [David Heinemeier Hansson]

* Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]

Expand All @@ -94,7 +142,7 @@

* ActionMailer::Base documentation rewrite. Closes #4991 [Kevin Clark, Marcel Molina Jr.]

* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]

* Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]

Expand Down Expand Up @@ -240,7 +288,7 @@

* Added that deliver_* will now return the email that was sent

* Added that quoting to UTF-8 only happens if the characters used are in that range #955 [Jamis Buck]
* Added that quoting to UTF-8 only happens if the characters used are in that range #955 [Jamis Buck]

* Fixed quoting for all address headers, not just to #955 [Jamis Buck]

Expand Down Expand Up @@ -279,7 +327,7 @@
@body = "Nothing to see here."
@charset = "iso-8859-1"
end

def unencoded_subject(recipient)
@recipients = recipient
@subject = "testing unencoded subject"
Expand All @@ -288,7 +336,7 @@
@encode_subject = false
@charset = "iso-8859-1"
end


*0.6.1* (January 18th, 2005)

Expand Down
2 changes: 1 addition & 1 deletion actionmailer/MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2004-2008 David Heinemeier Hansson
Copyright (c) 2004-2010 David Heinemeier Hansson

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
Loading