Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix date_select [3-2-stable] #4640

Closed
wants to merge 253 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
253 commits
Select commit Hold shift + click to select a range
2305a98
Check if source is encoding aware.
josevalim Dec 20, 2011
e97aa2c
remove warnings about @variable_for_layout
lest Dec 20, 2011
f29b4a0
Add a test case for layout nil.
josevalim Dec 20, 2011
51e8adb
Depend on 3-2-stable.
josevalim Dec 20, 2011
e149d50
Improve doc for ActiveRecord::Base.unscoped.
htanata Dec 18, 2011
fec2999
Fix reference to old :sql schema_format location
atambo Dec 19, 2011
437f1e0
Merge pull request #4064 from nashby/date-helper-field-error-proc
josevalim Dec 20, 2011
490c00b
It should be README.rdoc fixes #4067
arunagw Dec 20, 2011
cf2d31a
Merge pull request #4069 from arunagw/issue_4067
spastorino Dec 20, 2011
bd89946
Ensure option for select helper responds to `#first` before comparison.
Dec 20, 2011
a1b2dbd
Check for response to `#last` instead of `#first`.
Dec 20, 2011
a2f5df5
Merge pull request #4080 from heimidal/3-2-stable
josevalim Dec 20, 2011
efb75f7
Doc fixes on Rails::Generators::Base.hook_for.
htanata Dec 21, 2011
e854848
Rails::SubTestTask warns on test failure and moves on. Renamed from T…
jeremy Dec 21, 2011
79778ff
caches should not be global, so no need to clear in the teardown
tenderlove Dec 21, 2011
d5ccb5c
adding integration test for journey #7
tenderlove Dec 21, 2011
108e344
Move SubTestTask. Soften up tests.
jeremy Dec 21, 2011
2d07c60
added failing tests for has_many, has_one and belongs_to associations…
Dec 21, 2011
b5bb3f8
raises an ArgumentError if no valid options are given to TemplateRend…
lucasmazza Dec 21, 2011
476dce4
append puts the routes after the default, which causes a 404. instead…
tenderlove Dec 21, 2011
1945baf
just require things once
tenderlove Dec 21, 2011
8dc8926
[docs] added missing "}" fixes #4126
arunagw Dec 22, 2011
278a72e
Merge pull request #4128 from arunagw/doc_fixes_3_2-stable
drogus Dec 22, 2011
c0563ce
Revert "Added Enumerable#pluck to wrap the common pattern of collect(…
tenderlove Dec 22, 2011
89e2647
Merge branch '3-2-stable' of github.com:rails/rails into 3-2-stable
tenderlove Dec 22, 2011
7edade3
Make read_attribute code path accessible at the class level
jonleighton Dec 22, 2011
e46e491
Make ActiveRecord::Relation#pluck work with serialized attributes
jonleighton Dec 22, 2011
585e291
refactoring routing tests
tenderlove Dec 22, 2011
6758941
Use sass-rails >= 3.2.2 for new apps
spastorino Dec 22, 2011
2bc3f81
rack bodies should be a list
tenderlove Dec 22, 2011
f2e65b7
Merge branch '3-2-stable' of github.com:rails/rails into 3-2-stable
tenderlove Dec 22, 2011
a32d3d0
Adding an integration test. Fixes #4136
tenderlove Dec 23, 2011
5f2bfce
adding an integration test for splat regexp substitutions. fixes #4138
tenderlove Dec 23, 2011
96c38ec
Fix build when IM=true
jonleighton Dec 22, 2011
35ded6f
Merge pull request #4141 from arunagw/fix_build
josevalim Dec 23, 2011
824334c
removes Enumerable#pluck from the AS guide
fxn Dec 23, 2011
6b9ab88
serialize fails on subclass
alvarobp Dec 21, 2011
7bb754e
Fix #4046.
jonleighton Dec 23, 2011
9d9440f
Doh, remove debugging line
jonleighton Dec 23, 2011
4a86708
Rails 3.2 Release Notes
vijaydev Dec 23, 2011
0a2e379
Fix situation where id method didn't get defined causing postgres to …
jonleighton Dec 23, 2011
684448b
Remove broken #compute_source_path
jeremy Dec 24, 2011
754823d
Gzip files on page caching
ai Dec 23, 2011
ba86892
Provide a class optin for page_cache_compression.
josevalim Dec 24, 2011
c4ef3d3
Remove unecessary config_accessors.
josevalim Dec 24, 2011
7f5b516
added ability to specify from cli when generating a model/migration w…
Aug 17, 2011
557014d
Tidy up migration types.
josevalim Dec 24, 2011
fc42998
Update CHANGELOGs.
josevalim Dec 24, 2011
1db5f4e
Fix regexp intervals.
josevalim Dec 24, 2011
853439c
minor edits in caching guide
vijaydev Dec 24, 2011
929bfb8
add latest changes to 3.2 release notes
vijaydev Dec 24, 2011
0e8cbbe
assert_not_match -> assert_no_match.
josevalim Dec 24, 2011
b590fe4
delegating and deprecating logger#silence. fixes #4159
tenderlove Dec 24, 2011
a410a9c
avoid deprecation warnings when running AR tests
tenderlove Dec 24, 2011
bea3524
Last attempt to fix 1.8.7 tests.
josevalim Dec 24, 2011
69cc645
(draft) guides for the Kindle and Kindle apps [Mip Earson & Xavier No…
fxn Dec 25, 2011
38bc917
Reconnect to the first database after db:create
kuroda Dec 25, 2011
0daf80a
Merge pull request #4175 from kuroda/3-2-stable
tenderlove Dec 25, 2011
4ae1cdd
guides generation for the Kindle looking good now [Mip Earson & Xavie…
fxn Dec 25, 2011
d6d561e
download guides for the Kindle and Kindle apps from the home page
fxn Dec 25, 2011
7ec8473
registers guide generation for the Kindle and Kindle apps in the Chan…
fxn Dec 25, 2011
51fd3f3
Mip Earson -> Michael Pearson in changelog.
mipearson Dec 25, 2011
7a3121b
fix kindle apps link in edge guides index
vijaydev Dec 25, 2011
68564eb
Some fixes in rails guides generation
vijaydev Dec 25, 2011
4cf40d0
add back the version info to the title in guides index page
vijaydev Dec 25, 2011
d7cfb63
Correctly display rack apps with dynamic constraints in RoutesInspector
drogus Dec 26, 2011
f7b1906
Safe getting value from cache entry
gazay Dec 27, 2011
b3490d8
Closes #4208
tapajos Dec 27, 2011
d547761
Merge pull request #4210 from tapajos/patch-1
josevalim Dec 28, 2011
7767159
Remove empty line.
tapajos Dec 28, 2011
40cab62
Merge pull request #4217 from tapajos/patch-2
fxn Dec 28, 2011
520918a
Further simplify singleton_class checking in class_attribute
bensie Dec 28, 2011
2004a13
Bump to rack 1.4.0
spastorino Dec 28, 2011
a0fd9fb
Add CHANGELOG entry
spastorino Dec 28, 2011
df37018
Merge pull request #4196 from gazay/3-2-stable-marshalling
tenderlove Dec 28, 2011
bbafe73
Revert "Further simplify singleton_class checking in class_attribute"
jonleighton Dec 28, 2011
7a80ac0
app code in general wants Time.current, not Time.now
fxn Dec 28, 2011
50af25b
last named route wins. fixes #4164
tenderlove Dec 29, 2011
80f2eeb
Revert "Merge pull request #4196 from gazay/3-2-stable-marshalling"
tenderlove Dec 29, 2011
f423bdc
Merge pull request #4216 from edgecase/master_fix_reorder_with_limite…
tenderlove Dec 29, 2011
b815676
Backward compatibility with 3.1 cache storing
gazay Dec 29, 2011
bea4f9a
Remove unnecessary comma.
ugisozols Dec 26, 2011
d8a43e2
Document that index names are made up of all columns, not just the fi…
joliss Dec 27, 2011
5f57d2a
Fixed formatting of code examples in form_tag_helper.rb
fuzzyalej Dec 28, 2011
2e533e3
Documented about using :path option for resources
kevmoo Dec 28, 2011
63c6fee
revise some doc changes
vijaydev Dec 29, 2011
766eda3
fixing typo. Thanks Vijay!
tenderlove Dec 29, 2011
71f59b7
refactor Range#include? to handle ranges with floats
lest Dec 29, 2011
0814e74
adds a comments that clarifies why Range#include? chooses the compari…
fxn Dec 30, 2011
f12d904
Merge pull request #4227 from gazay/3-2-stable-marshalling
tenderlove Dec 30, 2011
0a048f3
remove wiki link
vijaydev Dec 30, 2011
ba19837
fix a couple of formatting issues
vijaydev Dec 30, 2011
003d0ff
Minor readability improvements
sumbach Dec 30, 2011
95a83cc
SCSS processor is provided by the sass gem
sumbach Dec 30, 2011
8be9d92
Fixed documentation error in code examples from form_tag_helper.rb
fuzzyalej Dec 30, 2011
6e9cd38
DRY up guides index page
vijaydev Dec 31, 2011
5f09414
deprecate ActiveSupport::Base64
lest Jan 2, 2012
7bdfbac
Merge pull request #4267 from lest/3-2-deprecate-activesupport-base64
fxn Jan 2, 2012
4f440a3
fix base64 requires
lest Jan 2, 2012
e369c4e
Merge pull request #4268 from lest/3-2-deprecate-activesupport-base64
fxn Jan 2, 2012
0b5cda7
use pg 0.11.0 under ruby 1.8.7
lest Jan 3, 2012
2535898
Merge pull request #4273 from lest/fix-pg-version
josevalim Jan 3, 2012
853de2b
Deprecate Rails::Plugin in favor of gems
spastorino Jan 3, 2012
1fc53df
deprecate AS::Base64 methods without DeprecatedConstantProxy
lest Jan 3, 2012
c032ff6
Merge pull request #4275 from lest/3-2-deprecate-activesupport-base64
josevalim Jan 3, 2012
ca24ee7
Merge pull request #4278 from kennyj/fix_rdoc_generating_problem
spastorino Jan 3, 2012
eafdf6c
Merge pull request #4279 from lest/fix-log
tenderlove Jan 3, 2012
0d7d3a6
Add font_path helper method
spastorino Jan 3, 2012
9f8f4c2
AS::Callbacks: improve __define_runner perfomance
bogdan Dec 25, 2011
4e8286f
AS::Callbacks: improved __define_runner performance
bogdan Dec 25, 2011
5b8d270
Refactor AS::Callbacks
bogdan Dec 28, 2011
40c8aa7
AS::Callbacks: remove __define_runner
bogdan Dec 30, 2011
d38dac8
Override respond_to? since we are also overriding method_missing.
josevalim Jan 3, 2012
124536e
Merge pull request #4280 from lest/3-2-backport-callbacks
josevalim Jan 3, 2012
8c129f1
Pass extensions to javascript_path and stylesheet_path helpers. Close…
spastorino Jan 3, 2012
337ac05
add CHANGELOG entry for AS::Base64 deprecation
lest Jan 3, 2012
caa6cde
Merge pull request #4281 from lest/3-2-changelog
spastorino Jan 3, 2012
c4a29de
Merge pull request #4283 from lest/fix-singleton-checking
tenderlove Jan 3, 2012
e912211
Revert "Named Routes shouldn't override existing ones (currently rout…
tenderlove Jan 3, 2012
63f7a61
When generating routes, the last defined named route wins. This is in
tenderlove Jan 3, 2012
6012970
Fix GH #4285. Remove options when we record calling creat_table
kennyj Jan 4, 2012
a10f309
Merge pull request #4288 from kennyj/fix_4285-2
josevalim Jan 4, 2012
6bcc1b8
Final grammar checkup on 3.2 release notes.
Dec 23, 2011
bc36613
updates to 3.2 release notes
vijaydev Jan 4, 2012
20a4258
General editing pass over assets pipeline guide
Jan 1, 2012
00a27c5
improve doc in number helper options
elpic Jan 2, 2012
4b2b595
copy edits
vijaydev Jan 4, 2012
3fb32cf
Revert "use pg 0.11.0 under ruby 1.8.7"
spastorino Jan 4, 2012
f8df37b
Use sass-rails 3.2.3
spastorino Jan 4, 2012
d22592a
Merge pull request #4282 from edgecase/order_after_reorder
tenderlove Jan 4, 2012
d9e0c4a
Clarify vendor/plugins deprecation warning
jeremy Jan 4, 2012
49a1017
Add release notes URL to vendor/plugins deprecation warning. Update C…
jeremy Jan 4, 2012
0b24dc9
Revert "AS::Callbacks: remove __define_runner"
josevalim Jan 4, 2012
d268ef2
Bump to rc2
spastorino Jan 4, 2012
22f901c
Infer currency negative format from positive one.
kuroda Jan 4, 2012
867a792
Merge pull request #4311 from kuroda/3-2-negative_format
tenderlove Jan 5, 2012
6005736
Depend on coffee-rails 3.2.1
spastorino Jan 5, 2012
2056744
Don't fork a process when assets:precompile:nondigest is invoked in a…
kennyj Jan 5, 2012
a579d4b
Merge pull request #4352 from kennyj/improve_3694-2
josevalim Jan 6, 2012
63305da
Add ORIGINAL_FULLPATH to env
drogus Dec 20, 2011
79b12a0
Add original_fullpath and original_url methods to Request
drogus Dec 20, 2011
d65b766
Fix http digest authentication with trailing '/' or '?' (fixes #4038 …
drogus Dec 20, 2011
3375a09
Rails initialization with initialize_on_precompile = false should set…
spastorino Jan 10, 2012
6f48fb3
Add CHANGELOG entry
spastorino Jan 10, 2012
bda0ae7
Remove dead code
spastorino Jan 10, 2012
ae14b71
Remove duplicated test line which was causing Ci failures on 1.8.7.
josevalim Jan 10, 2012
03f6275
Add "What to update in your apps" section to the release notes guide
spastorino Jan 10, 2012
5e04884
deprecate the subdirectories parameter to `migrations`
tenderlove Jan 10, 2012
77785c7
FFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUU :bomb:
tenderlove Jan 10, 2012
7be7710
Edits to spastorino's additions in 3.2 Release Notes
rizwanreza Jan 11, 2012
9c88005
Merge pull request #4404 from rizwanreza/edits-to-spastorino-upgrade-…
spastorino Jan 11, 2012
bb78804
Merge pull request #4408 from tomstuart/read-and-write-attribute-aliases
spastorino Jan 11, 2012
96d4da1
Made an example a little more realistic
codesnik Jan 6, 2012
d0915ac
add documentation explaining reorder behavior
al2o3cr Jan 9, 2012
2609990
Some revisions to the release notes guide
vijaydev Jan 11, 2012
9e94e26
Merge pull request #4412 from kennyj/fix_3743
spastorino Jan 11, 2012
ffc8e59
add some missing formats in the release guide
vijaydev Jan 11, 2012
fc74a51
on and ON are type casted to a true boolean column
spastorino Jan 12, 2012
3f16f5b
Add CHANGELOG entry
spastorino Jan 12, 2012
8ff8ca7
minor revision in 3.2 release guide
vijaydev Jan 12, 2012
e6b5943
fixes in api docs
vijaydev Jan 11, 2012
03a7198
minor edits
vijaydev Jan 12, 2012
040c9e4
add 3.2 release notes to the guides index
vijaydev Jan 12, 2012
6dac17f
depend on journey 1.0.0
tenderlove Jan 12, 2012
1d74af6
moving to arel 3.0.0
tenderlove Jan 12, 2012
ddfd2cf
remove hidden link in guides layout
vijaydev Jan 12, 2012
ac153fe
prepare for 3.2 guides release :)
vijaydev Jan 12, 2012
0d1df72
Fix table_name in ActiveRecord with more than one abstract ancestors
drogus Jan 12, 2012
e4c7ebe
add info about kindle guides in the release guide [ci skip]
vijaydev Jan 12, 2012
a6dce45
Added note about [ci skip] tag to contributing guide
drogus Jan 12, 2012
700f778
fix rails binary path when using --dev [ci skip]
vijaydev Jan 12, 2012
01c1127
warns against using temporary subscribers
fxn Jan 12, 2012
05367e6
Update Railties section of 3.2 release notes
guilleiguaran Jan 13, 2012
70631e7
Merge pull request #4451 from guilleiguaran/add-therubyracer-commented
josevalim Jan 13, 2012
b745fe1
config.force_ssl should mark the session as secure.
josevalim Jan 12, 2012
4ca3592
No AS::TestCase here.
josevalim Jan 13, 2012
c159b01
Use a BodyProxy instead of including a Module that responds to close.
spastorino Jan 13, 2012
70b762d
Fix race condition :bomb:
jonleighton Jan 13, 2012
78ef738
Add begin/ensure block since we are returning.
josevalim Jan 14, 2012
d696f8d
Pass a symbol instead of a block. This is faster and more concise.
semaperepelitsa Jan 15, 2012
fce3afa
Merge pull request #4471 from semaperepelitsa/enum_sum
tenderlove Jan 15, 2012
95027d2
Upgrade mail dependency to 2.4.0
Jan 15, 2012
dee595c
Fix stack level too deep when model does not have attributes method.
drogus Jan 15, 2012
666f931
Don't hardcode assets route skipped in route inspector
guilleiguaran Jan 14, 2012
4215935
Merge pull request #4474 from guilleiguaran/fix-route-inspector-3-2-s…
josevalim Jan 15, 2012
3430647
Add ActiveModel::Errors#delete, which was not available after move to…
drogus Jan 16, 2012
30782e4
Getting Started Guide: Update reference about JavaScript runtimes
guilleiguaran Jan 13, 2012
7b8e6d5
Improve description of :allow_destroy option for nested attributes in…
carlosantoniodasilva Jan 15, 2012
951d70d
change class to id per scaffold change
Jan 15, 2012
96e5d10
[docs] Update pipeline asset organization section.
Jan 15, 2012
39d4878
copy editing asset pipeline changes
vijaydev Jan 16, 2012
48f9835
minor edits in getting started guide
vijaydev Jan 16, 2012
90aae07
Apparently asssert_empty is not available in 1.8.7
drogus Jan 16, 2012
f9275e5
Merge pull request #4462 from spohlenz/fix-routing-tests
tenderlove Jan 16, 2012
7021184
Fix ActiveModel::Errors#dup
pkondzior Jan 17, 2012
ed35f37
Merge pull request #4492 from pkondzior/3-2-stable
drogus Jan 17, 2012
c4c6beb
Add option to configure Sprockets logger
rafaelfranca Jan 17, 2012
5812c35
Merge pull request #4501 from rafaelfranca/assets-logger-3-2
josevalim Jan 17, 2012
57f73a6
Merge pull request #4487 from sarenji/fix-reset-counters
tenderlove Jan 17, 2012
20baeec
Add some deprecations for logic being removed in 4.0
carlosantoniodasilva Jan 16, 2012
57be2cf
Deprecate default_charset= at controller level
carlosantoniodasilva Jan 17, 2012
9d4fd61
Add default charset config to ActionDispatch
carlosantoniodasilva Jan 17, 2012
e5e8704
Deprecate AC::UnknownError and AC::DoubleRenderError
carlosantoniodasilva Jan 17, 2012
786a0b7
Remove duplicated constant definition
carlosantoniodasilva Jan 17, 2012
ed0f0ad
Update changelog
carlosantoniodasilva Jan 17, 2012
2f52bd3
Merge pull request #4498 from carlosantoniodasilva/action-controller-…
josevalim Jan 17, 2012
02e4d7f
Silent Sprockets logger when config.assets.logger is set to false
guilleiguaran Jan 18, 2012
ae7037e
Update CHANGELOG and docs for config.assets.logger
guilleiguaran Jan 18, 2012
f74afd9
Merge pull request #4518 from guilleiguaran/silent-sprockets-logger-3…
josevalim Jan 18, 2012
0960eb9
updates to 3.2 release notes
vijaydev Jan 18, 2012
939a84a
Update AM CHANGELOG
guilleiguaran Jan 18, 2012
619731f
ActionController::UrlEncodedPairParser is deprecated. Replaced the ur…
makoto Jan 16, 2012
f2af2ac
Merge pull request #4525 from guilleiguaran/am-changelog-3-2-stable
vijaydev Jan 18, 2012
6838549
Update Release Notes: sprockets-rails section should be inside of Act…
guilleiguaran Jan 18, 2012
3bfbc45
Adding Action Mailer section to 3.2 release notes
guilleiguaran Jan 18, 2012
2e6ca53
revise wording [ci skip]
vijaydev Jan 18, 2012
c8b584f
select doesn't take multiple arguments - fixes #4539 [ci skip]
vijaydev Jan 19, 2012
ead04ee
update release note: timestamps is non-null as default
Jan 19, 2012
c450833
revising release notes [ci skip]
vijaydev Jan 19, 2012
0055456
Fix small typo in mail_to docs in url_helper.rb
simonbaird Jan 19, 2012
4c5b73f
Merge pull request #4531 from exviva/pessimistic_with_lock
tenderlove Jan 19, 2012
6e311b9
update the getting_started guide code [ci skip]
vijaydev Jan 19, 2012
a0e439f
document AR::Base#with_lock in release notes [ci skip]
vijaydev Jan 19, 2012
b259bf9
fix duplicate ids for the headers [ci skip]
vijaydev Jan 19, 2012
ff813dc
add uglifier version info in the 'what to update' section
vijaydev Jan 19, 2012
08d6eb6
Do not deprecate performed?
josevalim Jan 19, 2012
5b90635
Update CHANGELOG
josevalim Jan 19, 2012
6c65676
update release notes [ci skip]
vijaydev Jan 19, 2012
f36dcaf
Preparing for 3.2.0 release
dhh Jan 20, 2012
fab664a
Fix another race condition.
jonleighton Jan 20, 2012
c701358
document `:raise` option support for several helpers [ci skip]
Jan 20, 2012
caf7856
Fix GH #4580. Rails 3.2: uninitialized constant ActiveSupport::Tagged…
kennyj Jan 21, 2012
a720e34
Merge pull request #4582 from kennyj/fix_4580
josevalim Jan 21, 2012
892c670
Remove deprecation warning from console output when running
waseem Jan 21, 2012
d5dde37
Merge pull request #4586 from waseem/assert_with_no_deprecation_warnings
josevalim Jan 21, 2012
9ab2904
Fix `$rails_rake_task` global variable warning without replacing the …
jviney Jan 21, 2012
d246da1
Add missing require to Array#wrap in generators action methods
carlosantoniodasilva Jan 22, 2012
c6dcc35
Allow form.select to accept ranges.
iHiD Jan 22, 2012
334e5ca
Merge pull request #4604 from ihid/3-2-stable
josevalim Jan 22, 2012
ede01ce
Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fi…
josevalim Jan 22, 2012
44319ef
The deprecated ActiveSupport::Base64.decode64 method should call ::Ba…
jviney Jan 23, 2012
70d81b3
Merge pull request #4611 from jviney/3-2-stable
vijaydev Jan 23, 2012
912f144
test base64 encode and decode
vijaydev Jan 23, 2012
b840461
Merge pull request #4601 from carlosantoniodasilva/patch-1
josevalim Jan 23, 2012
3913b51
Added custom regexps to ASTs that have literal nodes on either side of
tenderlove Jan 24, 2012
1a56a76
work against 1-0-stable until a new journey is released
tenderlove Jan 24, 2012
dc826f9
Fix GH #4344. A defined callback in extended module is called too.
kennyj Jan 21, 2012
d4cfc4c
Add failing test for date_select
indrekj Jan 20, 2012
d92b5fe
Fix date_select nil and blank and order case
indrekj Jan 20, 2012
c4b7ca0
Fix date_select with discard_month and discard_year options
rafaelfranca Jan 24, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -14,7 +14,7 @@ gem 'jquery-rails'
if ENV['JOURNEY']
gem 'journey', :path => ENV['JOURNEY']
else
gem 'journey'
gem 'journey', :git => 'git://github.com/rails/journey.git', :branch => '1-0-stable'
end

# This needs to be with require false to avoid
Expand Down
2 changes: 1 addition & 1 deletion RAILS_VERSION
@@ -1 +1 @@
3.2.0.rc1
3.2.0
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -94,7 +94,7 @@ RDoc::Task.new do |rdoc|

rdoc.options << '-f' << 'sdoc'
rdoc.options << '-T' << 'rails'
rdoc.options << '-c' << 'utf-8'
rdoc.options << '-e' << 'UTF-8'
rdoc.options << '-g' # SDoc flag, link methods to GitHub
rdoc.options << '-m' << RDOC_MAIN

Expand Down
9 changes: 8 additions & 1 deletion actionmailer/CHANGELOG.md
@@ -1,3 +1,10 @@
## Rails 3.2.0 (January 20, 2012) ##

* Upgrade mail version to 2.4.0 *ML*

* Remove Old ActionMailer API *Josh Kalderimis*


## Rails 3.1.0 (August 30, 2011) ##

* No changes
Expand All @@ -8,7 +15,7 @@
* remove AM delegating register_observer and register_interceptor to Mail *Josh Kalderimis*


* Rails 3.0.6 (April 5, 2011)
## Rails 3.0.6 (April 5, 2011) ##

* Don't allow i18n to change the minor version, version now set to ~> 0.5.0 *Santiago Pastorino*

Expand Down
2 changes: 1 addition & 1 deletion actionmailer/actionmailer.gemspec
Expand Up @@ -17,5 +17,5 @@ Gem::Specification.new do |s|
s.requirements << 'none'

s.add_dependency('actionpack', version)
s.add_dependency('mail', '~> 2.3.0')
s.add_dependency('mail', '~> 2.4.0')
end
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/version.rb
Expand Up @@ -3,7 +3,7 @@ module VERSION #:nodoc:
MAJOR = 3
MINOR = 2
TINY = 0
PRE = "rc1"
PRE = nil

STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
end
Expand Down
33 changes: 31 additions & 2 deletions actionpack/CHANGELOG.md
@@ -1,4 +1,33 @@
## Rails 3.2.0 (unreleased) ##
## Rails 3.2.0 (January 20, 2012) ##

* Setting config.assets.logger to false turn off Sprockets logger *Guillermo Iguaran*

* Add `config.action_dispatch.default_charset` to configure default charset for ActionDispatch::Response. *Carlos Antonio da Silva*

* Deprecate setting default charset at controller level, use the new `config.action_dispatch.default_charset` instead. *Carlos Antonio da Silva*

* Deprecate ActionController::UnknownAction in favour of AbstractController::ActionNotFound. *Carlos Antonio da Silva*

* Deprecate ActionController::DoubleRenderError in favour of AbstractController::DoubleRenderError. *Carlos Antonio da Silva*

* Deprecate method_missing handling for not found actions, use action_missing instead. *Carlos Antonio da Silva*

* Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
These methods were not being used internally anymore and are going to be removed in Rails 4. *Carlos Antonio da Silva*

* Add config.assets.logger to configure Sprockets logger *Rafael França*

* Use a BodyProxy instead of including a Module that responds to
close. Closes #4441 if Active Record is disabled assets are delivered
correctly *Santiago Pastorino*

* Rails initialization with initialize_on_precompile = false should set assets_dir *Santiago Pastorino*

* Add font_path helper method *Santiago Pastorino*

* Depends on rack ~> 1.4.0 *Santiago Pastorino*

* Add :gzip option to `caches_page`. The default option can be configured globally using `page_cache_compression` *Andrey Sitnik*

* The ShowExceptions middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in `env["action_dispatch.exception"]` and with the PATH_INFO rewritten to the status code. *José Valim*

Expand All @@ -12,7 +41,7 @@
<%= f.button %>
<% end %>

* Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values.
* Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values.
For example, this is useful for displaying ISO8601-style dates such as '2011-08-01'. *Lennart Fridén and Kim Persson*

* Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
Expand Down
5 changes: 2 additions & 3 deletions actionpack/actionpack.gemspec
Expand Up @@ -20,10 +20,9 @@ Gem::Specification.new do |s|
s.add_dependency('activemodel', version)
s.add_dependency('rack-cache', '~> 1.1')
s.add_dependency('builder', '~> 3.0.0')
s.add_dependency('i18n', '~> 0.6')
s.add_dependency('rack', '~> 1.3.5')
s.add_dependency('rack', '~> 1.4.0')
s.add_dependency('rack-test', '~> 0.6.1')
s.add_dependency('journey', '~> 1.0.0.rc1')
s.add_dependency('journey', '~> 1.0.0')
s.add_dependency('sprockets', '~> 2.1.2')
s.add_dependency('erubis', '~> 2.7.0')

Expand Down
3 changes: 2 additions & 1 deletion actionpack/lib/abstract_controller/layouts.rb
Expand Up @@ -241,6 +241,7 @@ def conditional_layout?
# the template name
# false:: There is no layout
# true:: raise an ArgumentError
# nil:: Force default layout behavior with inheritance
#
# ==== Parameters
# * <tt>layout</tt> - The layout to use.
Expand All @@ -254,7 +255,7 @@ def layout(layout, conditions = {})
conditions.each {|k, v| conditions[k] = Array(v).map {|a| a.to_s} }
self._layout_conditions = conditions

@_layout = layout || false # Converts nil to false
@_layout = layout
_write_layout_method
end

Expand Down
8 changes: 1 addition & 7 deletions actionpack/lib/abstract_controller/rendering.rb
Expand Up @@ -35,7 +35,7 @@ module Rendering
include AbstractController::ViewPaths

included do
config_accessor :protected_instance_variables, :instance_reader => false
class_attribute :protected_instance_variables
self.protected_instance_variables = []
end

Expand All @@ -59,12 +59,6 @@ def view_context_class

attr_internal_writer :view_context_class

# Explicitly define protected_instance_variables so it can be
# inherited and overwritten by other modules if needed.
def protected_instance_variables
config.protected_instance_variables
end

def view_context_class
@_view_context_class ||= self.class.view_context_class
end
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/base.rb
Expand Up @@ -121,7 +121,7 @@ module ActionController
#
# def search
# @results = Search.find(params[:query])
# case @results
# case @results.count
# when 0 then render :action => "no_results"
# when 1 then render :action => "show"
# when 2..10 then render :action => "show_many"
Expand Down
51 changes: 39 additions & 12 deletions actionpack/lib/action_controller/caching/pages.rb
Expand Up @@ -16,7 +16,7 @@ module Caching
# caches_page :show, :new
# end
#
# This will generate cache files such as <tt>weblog/show/5.html</tt> and <tt>weblog/new.html</tt>, which match the URLs used
# This will generate cache files such as <tt>weblog/show/5.html</tt> and <tt>weblog/new.html</tt>, which match the URLs used
# that would normally trigger dynamic page generation. Page caching works by configuring a web server to first check for the
# existence of files on disk, and to serve them directly when found, without passing the request through to Action Pack.
# This is much faster than handling the full dynamic request in the usual way.
Expand All @@ -38,23 +38,25 @@ module Pages
extend ActiveSupport::Concern

included do
##
# :singleton-method:
# The cache directory should be the document root for the web server and is set using <tt>Base.page_cache_directory = "/document/root"</tt>.
# For Rails, this directory has already been set to Rails.public_path (which is usually set to <tt>Rails.root + "/public"</tt>). Changing
# this setting can be useful to avoid naming conflicts with files in <tt>public/</tt>, but doing so will likely require configuring your
# web server to look in the new location for cached files.
config_accessor :page_cache_directory
class_attribute :page_cache_directory
self.page_cache_directory ||= ''

##
# :singleton-method:
# Most Rails requests do not have an extension, such as <tt>/weblog/new</tt>. In these cases, the page caching mechanism will add one in
# order to make it easy for the cached files to be picked up properly by the web server. By default, this cache extension is <tt>.html</tt>.
# If you want something else, like <tt>.php</tt> or <tt>.shtml</tt>, just set Base.page_cache_extension. In cases where a request already has an
# extension, such as <tt>.xml</tt> or <tt>.rss</tt>, page caching will not add an extension. This allows it to work well with RESTful apps.
config_accessor :page_cache_extension
class_attribute :page_cache_extension
self.page_cache_extension ||= '.html'

# The compression used for gzip. If false (default), the page is not compressed.
# If can be a symbol showing the ZLib compression method, for example, :best_compression
# or :best_speed or an integer configuring the compression level.
class_attribute :page_cache_compression
self.page_cache_compression ||= false
end

module ClassMethods
Expand All @@ -66,35 +68,60 @@ def expire_page(path)

instrument_page_cache :expire_page, path do
File.delete(path) if File.exist?(path)
File.delete(path + '.gz') if File.exist?(path + '.gz')
end
end

# Manually cache the +content+ in the key determined by +path+. Example:
# cache_page "I'm the cached content", "/lists/show"
def cache_page(content, path, extension = nil)
def cache_page(content, path, extension = nil, gzip = Zlib::BEST_COMPRESSION)
return unless perform_caching
path = page_cache_path(path, extension)

instrument_page_cache :write_page, path do
FileUtils.makedirs(File.dirname(path))
File.open(path, "wb+") { |f| f.write(content) }
if gzip
Zlib::GzipWriter.open(path + '.gz', gzip) { |f| f.write(content) }
end
end
end

# Caches the +actions+ using the page-caching approach that'll store the cache in a path within the page_cache_directory that
# Caches the +actions+ using the page-caching approach that'll store
# the cache in a path within the page_cache_directory that
# matches the triggering url.
#
# You can also pass a :gzip option to override the class configuration one.
#
# Usage:
#
# # cache the index action
# caches_page :index
#
# # cache the index action except for JSON requests
# caches_page :index, :if => Proc.new { |c| !c.request.format.json? }
#
# # don't gzip images
# caches_page :image, :gzip => false
def caches_page(*actions)
return unless perform_caching
options = actions.extract_options!
after_filter({:only => actions}.merge(options)) { |c| c.cache_page }

gzip_level = options.fetch(:gzip, page_cache_compression)
gzip_level = case gzip_level
when Symbol
Zlib.const_get(gzip_level.to_s.upcase)
when Fixnum
gzip_level
when false
nil
else
Zlib::BEST_COMPRESSION
end

after_filter({:only => actions}.merge(options)) do |c|
c.cache_page(nil, nil, gzip_level)
end
end

private
Expand Down Expand Up @@ -136,7 +163,7 @@ def expire_page(options = {})
# Manually cache the +content+ in the key determined by +options+. If no content is provided, the contents of response.body is used.
# If no options are provided, the url of the current request being handled is used. Example:
# cache_page "I'm the cached content", :controller => "lists", :action => "show"
def cache_page(content = nil, options = nil)
def cache_page(content = nil, options = nil, gzip = Zlib::BEST_COMPRESSION)
return unless self.class.perform_caching && caching_allowed?

path = case options
Expand All @@ -152,7 +179,7 @@ def cache_page(content = nil, options = nil)
extension = ".#{type_symbol}"
end

self.class.cache_page(content || response.body, path, extension)
self.class.cache_page(content || response.body, path, extension, gzip)
end

end
Expand Down
4 changes: 4 additions & 0 deletions actionpack/lib/action_controller/metal.rb
Expand Up @@ -192,6 +192,10 @@ def response_body=(val)
super body
end

def performed?
response_body
end

def dispatch(name, request) #:nodoc:
@_request = request
@_env = request.env
Expand Down
32 changes: 19 additions & 13 deletions actionpack/lib/action_controller/metal/compatibility.rb
@@ -1,21 +1,22 @@
require 'active_support/deprecation'

module ActionController
module Compatibility
extend ActiveSupport::Concern

class ::ActionController::ActionControllerError < StandardError #:nodoc:
end

# Temporary hax
included do
::ActionController::UnknownAction = ::AbstractController::ActionNotFound
::ActionController::DoubleRenderError = ::AbstractController::DoubleRenderError
::ActionController::UnknownAction = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('ActionController::UnknownAction', '::AbstractController::ActionNotFound')
::ActionController::DoubleRenderError = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('ActionController::DoubleRenderError', '::AbstractController::DoubleRenderError')

# ROUTES TODO: This should be handled by a middleware and route generation
# should be able to handle SCRIPT_NAME
self.config.relative_url_root = ENV['RAILS_RELATIVE_URL_ROOT']

class << self
delegate :default_charset=, :to => "ActionDispatch::Response"
def self.default_charset=(new_charset)
ActiveSupport::Deprecation.warn "Setting default charset at controller level" \
" is deprecated, please use `config.action_dispatch.default_charset` instead", caller
ActionDispatch::Response.default_charset = new_charset
end

self.protected_instance_variables = %w(
Expand All @@ -24,13 +25,19 @@ class << self
)

def rescue_action(env)
ActiveSupport::Deprecation.warn "Calling `rescue_action` is deprecated and will be removed in Rails 4.0.", caller
raise env["action_dispatch.rescue.exception"]
end
end

# For old tests
def initialize_template_class(*) end
def assign_shortcuts(*) end
def initialize_template_class(*)
ActiveSupport::Deprecation.warn "Calling `initialize_template_class` is deprecated and has no effect anymore.", caller
end

def assign_shortcuts(*)
ActiveSupport::Deprecation.warn "Calling `assign_shortcuts` is deprecated and has no effect anymore.", caller
end

def _normalize_options(options)
options[:text] = nil if options.delete(:nothing) == true
Expand All @@ -44,15 +51,14 @@ def render_to_body(options)
end

def _handle_method_missing
ActiveSupport::Deprecation.warn "Using `method_missing` to handle non" \
" existing actions is deprecated and will be removed in Rails 4.0, " \
" please use `action_missing` instead.", caller
method_missing(@_action_name.to_sym)
end

def method_for_action(action_name)
super || (respond_to?(:method_missing) && "_handle_method_missing")
end

def performed?
response_body
end
end
end
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal/helpers.rb
Expand Up @@ -56,7 +56,7 @@ module Helpers
include AbstractController::Helpers

included do
config_accessor :helpers_path, :include_all_helpers
class_attribute :helpers_path, :include_all_helpers
self.helpers_path ||= []
self.include_all_helpers = true
end
Expand Down