Commit Graph

21778 Commits

Author SHA1 Message Date
José Valim
3b0f917b1d Test explicit skip. 2011-04-18 14:27:49 +02:00
José Valim
07fde1a3d3 Just define the controller if fibers are defined. 2011-04-18 14:27:49 +02:00
David Heinemeier Hansson
3e33592316 Add description to assets:precompile such that it shows up in rake -T 2011-04-18 11:18:37 +02:00
David Heinemeier Hansson
39372964d2 Add String#inquiry as a convenience method for turning a string into a StringInquirer object [DHH] 2011-04-18 10:57:38 +02:00
José Valim
389d15ef13 Body... wanna *stream* my body? Body... such a thrill my body!
Added stream as class level method to make it explicit when to stream.
Render also accepts :stream as option.
2011-04-18 08:55:41 +02:00
José Valim
7a152ab012 Rename it to DataStreaming. 2011-04-18 08:17:47 +02:00
José Valim
944b4d5796 Add missing dependency. 2011-04-18 08:13:28 +02:00
José Valim
4f044528c0 Slightly reorganize rendering stack. 2011-04-18 08:12:51 +02:00
Jon Leighton
b839d40933 Fix test_load_save in test/cases/binary_test.rb (thanks @tenderlove for actually working out how to fix it) 2011-04-17 22:30:27 +01:00
Jon Leighton
2a5e317951 Fix test_associate_existing in has_many_through_associations_test on mysql and postgresql 2011-04-17 21:58:47 +01:00
José Valim
daf7a8c0db What a lovely surprise, controller_generator_test was also failing. 2011-04-17 22:10:08 +02:00
José Valim
60547391c9 Fix more generator tests. 2011-04-17 22:08:21 +02:00
Jon Leighton
28146378d3 Bring back some bits of documentation for scopes which were removed as part of the reversion in 256b363 2011-04-17 20:55:24 +01:00
Jon Leighton
256b363eee Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead."
This reverts commit f0e198bfa1e3f9689e0cde1d194a44027fc90b3c.

Conflicts:

	activerecord/test/models/post.rb
2011-04-17 20:47:52 +01:00
Arun Agrawal
d1f10e74ca Test failing with Jruby "uninitialized constant TestJSONEncoding::JSON"
activesupport/test/json/encoding_test.rb need Json to pass against with Jruby
2011-04-17 12:00:55 -07:00
Aaron Patterson
da80d87f4d Merge branch 'identity_map' of https://github.com/jasoncodes/rails into jasoncodes-identity_map
* 'identity_map' of https://github.com/jasoncodes/rails:
  Bypass IdentityMap in PostgreSQL geometric tests.
2011-04-17 11:49:52 -07:00
Aaron Patterson
3dc4d543f1 make our constructor signature match the superclass 2011-04-17 11:49:25 -07:00
Jason Weathered
0fd0d68962 Bypass IdentityMap in PostgreSQL geometric tests.
The identity map cache prevents us from seeing the DB formatted strings.
2011-04-17 23:51:20 +10:00
José Valim
b6843f22ac Lazily load sprockets. 2011-04-17 11:50:19 +02:00
José Valim
a9a2035722 Fix assets generators. 2011-04-17 11:48:15 +02:00
José Valim
3a68aec1a1 Make generators more modular, add hooks and improve test suite. 2011-04-17 11:44:52 +02:00
José Valim
8f75c3abcd Move app initializers to sprockets railtie. 2011-04-17 10:51:07 +02:00
José Valim
16b9547a88 Move controller configs to sprockets own railtie. 2011-04-17 10:26:32 +02:00
José Valim
eb75f15a1a Generate app/* stubs directories for full plugins to show ththat it is possible to extend them. 2011-04-17 10:23:07 +02:00
Piotr Sarnacki
5952d4f860 Fix plugin new generator to work with new javascript/stylesheets conventions 2011-04-16 19:59:21 +02:00
Mikel Lindsaar
1a1e4d484a Updating mail to 2.2.16 2011-04-16 23:30:21 +10:00
José Valim
0114dc38d5 Fix CI test on 1.8 2011-04-16 12:25:21 +02:00
José Valim
2bf0d9b06a Class docs. 2011-04-16 12:13:29 +02:00
José Valim
eec5d5db5d Docs. 2011-04-16 11:42:02 +02:00
José Valim
ab105e6072 content_for should work with provide. 2011-04-16 11:34:07 +02:00
José Valim
3e0aedba90 Add more tests, ensure we never yield outside the fiber context and that we swap buffers when moving from parent to child. 2011-04-16 11:22:36 +02:00
José Valim
29078ff8f1 Basic tests for streaming. Basic tests for provide. 2011-04-16 10:50:33 +02:00
José Valim
62668cccb9 The magic medicine worked. 2011-04-16 10:31:55 +02:00
José Valim
e30ca001ef Yo dawg, I heard you like streaming. So I put a fiber, inside a block, inside a body, so you can stream. 2011-04-16 10:28:47 +02:00
José Valim
2dd43c3f80 Buffer should be an option passed down to template rendering. 2011-04-16 02:10:36 +02:00
José Valim
fad214b9e1 Initial work on fibered layout. 2011-04-16 01:10:13 +02:00
Aaron Patterson
c630750fa5 switch to using comments to comment things 2011-04-15 14:13:46 -07:00
José Valim
2c54fde54d Fix generator tests. 2011-04-15 22:01:06 +02:00
José Valim
9982b5af94 Fix missing test_helper. 2011-04-15 21:32:36 +02:00
José Valim
d6bd606bdd render :once, YAGNI. 2011-04-15 21:11:54 +02:00
José Valim
d5ad92ced1 Make static faster as we don't have to serve multiple paths anymore. 2011-04-15 20:09:39 +02:00
José Valim
afc828828f Remove the ability for engines to serve assets from the public directory. 2011-04-15 19:57:52 +02:00
José Valim
d84b2f37d0 Fix tests. 2011-04-15 19:17:58 +02:00
José Valim
2fe70c1803 Booya, sprockets now works from Engines. 2011-04-15 18:43:22 +02:00
José Valim
8e5ff7d0a7 Add some very simple docs. 2011-04-15 18:43:21 +02:00
José Valim
ae13cb1523 Remove rescue as it was clobbering the real error. 2011-04-15 18:43:21 +02:00
Jon Leighton
7dea4b57a4 Merge branch 'master' of github.com:rails/rails 2011-04-15 13:30:21 +01:00
Jon Leighton
65469a6e5e Return nil from read_attribute(:foo) if 'foo' is not present in the @attributes hash, but the _foo method has been defined. This brings the behaviour into line with the 3-0-stable branch and the master branch before 93641ed6c8c684f6b4db02b6c8a22fa9bc7f0eaf (there were previously no assertions about this which is why the change slipped through). Note that actually calling the 'foo' method will still raise an error if the attribute is not present. 2011-04-15 13:27:08 +01:00
Jon Leighton
e01dfb27fc Undo performances regressions I introduced in bbe0a507f287c20ab4ae8a244fbfc810665deda5 and add test for an edge case. Add comments to explain the intent of the code. 2011-04-15 13:09:12 +01:00
José Valim
dd90f3923c attribute should be attributes 2011-04-14 23:40:56 -07:00