Ruby on Rails

Web development that doesn't hurt

1b9d75a2f10beeda140e2b3ab4ac7584 Software Engineer
Γ—

Welcome

This is rubyonrails.org's weblog feed.Enjoy it:-)

Γ— Riding Rails
Γ—

[ANN] Rails 4.2.4 and 4.1.13 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.4 and 4.1.13 have been released.

No regressions were found so these releases include the same changes that the release candidates.

CHANGES since 4.1.12

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.2.3

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.1.13:


$ shasum *4.1.13*

7c637fed154a152451adb8ef1ebae136e0502ebd actionmailer-4.1.13.gem
61303b7ee877aa06f16ce0ba6a7cce21ca031f42 actionpack-4.1.13.gem
39c5a4a290a5969402bf5c4ac61b99e5dcb40c3c actionview-4.1.13.gem
6d88159aa15ea48f9118ece97ec549807a504f55 activemodel-4.1.13.gem
1107470b19cc0d6608d431678c78d3871c8df229 activerecord-4.1.13.gem
f79bdfa0105c1a833069d989291ec9d23bc84d92 activesupport-4.1.13.gem
6391b4a323e0b30118ffdbad6bb5f68459920d7b rails-4.1.13.gem
fc64a4f89a3fa8f9ab2a9edd37d7338a79cb9859 railties-4.1.13.gem

Here are the checksums for 4.2.4:


$ shasum *4.2.4*

a866394bb4682afaa6d54458b1f3be0dca5e862e actionmailer-4.2.4.gem
b625e58fb8fa11185ff81630f3bef5c517e294e4 actionpack-4.2.4.gem
334ddc60724e4e1ff99e2170d2e435805d0ade0b actionview-4.2.4.gem
7bd46253f17bcff5c8ae3ba0f0938c38b0ca1e2f activejob-4.2.4.gem
d361d1e0eac7851103ac2de4c9359a556c724ab9 activemodel-4.2.4.gem
d9faecb759827fc7944558463388efbbd9f20005 activerecord-4.2.4.gem
ab4283126725e3aa9c248e2e2119548ad205732d activesupport-4.2.4.gem
67d7a12105f5389dd7b511eff5f56c6c048175d8 rails-4.2.4.gem
8e9eab180dbd97eaf7626601c55e61ea1ae68284 railties-4.2.4.gem

I'd like to thank you all, every contributor who helped with this release.


2015/08/24 18:50:00 by rafaelfranca

Γ—

πŸš‚ This week in Rails πŸš‚: Learn How These 37 Rails Contributors Improved The Entire Framework In Just One Week

Good News Everyone, This Week In Rails has been acquired by BuzzFeed!

Just kidding. This is Godfrey here. It's been a while since I get to write one of these myself and I'm very happy to be back. Without further ado, let's dive right into it!

✨ Featured ✨

❀️ Code of Conduct

The Rails team is committed to fostering a welcoming community for everyone. With the help of our community, we have added an official Code of Conduct for the project this week.

😱 37 Programmers Contributed To Rails And You Won't Believe What Happened Next

Well, their pull requests were merged and they are immortalized on the Rails Contributors website. And oh, everyone please send a warm welcome to the 10 first-time contributors this week!

πŸ“¦ Releases πŸ“¦

πŸ“’ Sprockets Has Hit Version 3.3.3, What Does That Really Mean For The Rest Of Us?

According to @schneems who is responsible for the release, this is supposed to fix an issue for those of you "who share a cache in different directories between deploys", which includes Heroku deployments.

πŸ’Ž New Stuff πŸ’Ž

πŸ’Ύ MySQL Finally Gets A Native JSON Data Type – But Is It Too Late To Save California?

MySQL has recently added a native JSON data type (perhaps inspired by its more popular cousin, PostgreSQL). Thanks to this patch, you will be ready to take advantage of that feature in Rails 5.

πŸ‘Œ Fixed πŸ‘Œ

πŸŽ‚ The One Weird Trick That Lets You Write To Files Atomically

Concurrency is hard, but Rails might have finally cracked the nut. You might not know that Active Support offers a way to write to a file atomically with File.atomic_write.

Even if you have heard about it, you probably didn't realize there is a subtle race condition in its implementation. Anyway, with this patch landing on master, those bugs will soon be behind us and we can all just sit back and enjoy the convenience it provides.

πŸ‘ Improved πŸ‘

🚨 Nobody Likes To Do Repeated Work – Here Is A Cache They Won't Tell You About

It turns out that things do not run twice as fast when you double-cache them. Who would have thought? (I wish we all wrote great commit messages like this by the way!)

βœ‚οΈ Testing Is Important, But Has Rails Gone Too Far?

Along those same lines, it turns out that testing the same thing twice doesn't provide much value either.

πŸ™ˆ Wrapping Up πŸ™ˆ

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/08/21 23:18:10 by chancancode

Γ—

This week in Rails: Rails 4.2.4 RC1, 4.1.13 RC1 and more!

Hello Everyone! This is Roque bringing the latest from Rails with some help from Kasper.

Featured

This Week's Rails Contributors

We had 36 awesome contributors to the Rails codebase this week. Check out the active issues over on GitHub if you'd like to see your name here.

Rails 4.2.4 RC1 and 4.1.13 RC1 have been released!

There's new release candidates, please try them and report any regressions you find, so that the Rails team can fix them before the final release.

Thank you to all contributors for these releases!

New Stuff

Active Record relations come in batches

This week Active Record got a new method that works like find_in_batches but yields relations instead of arrays. It also added a cool delegation API that lets you do something like:

People.in_batches.delete_all('age > 21')

Oh, in case you were wondering – this is pretty much how Skynet works.

Improved

i18n reloading picks up new and deleted files

This patch allows new locale YAML files to be loaded without having to restart the Rails server. It also reloads the available locales when files are deleted.

Active Job assertions returns matched job

The matched job returned by these methods can be used for advanced assertions like:


job = assert_enqueued_with(job: SomeJob) do

some_business_logic
end
assert_equal 5, job.arguments.second

Spun Off

XML serialization have been moved to a gem

As usage for XML serialization declined, it's become less of a core concern of Rails. In Rails 5, this feature will be moved to the activemodel-serializers-xml gem.

If you're still using the XML Serialization feature in your app, you will need to add this to your Gemfile when you upgrade.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/08/15 08:37:36 by repinel

Γ—

[ANN] Rails 4.2.4.rc1 and 4.1.13.rc1 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.4.rc1 and 4.1.13.rc1 have been released.

If no regressions are found expect the final release this Wednesday, on August 19, 2015.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.1.12

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.2.3

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.1.13.rc1:


$ shasum *4.1.13.rc1*

284f1eb3a000d54f07435e0b19e88f1ba80f738b actionmailer-4.1.13.rc1.gem
352ad673a18efe226ed3e1b1eb7e61818ccae1a2 actionpack-4.1.13.rc1.gem
f7e147aa4377149a7516bf23fa5892979a7ff77f actionview-4.1.13.rc1.gem
70da96abb737ef31eba8e1b57fa2cb122110bb59 activemodel-4.1.13.rc1.gem
c571e1092a3982517d353ff85fab2c5e9b3c28cc activerecord-4.1.13.rc1.gem
19e9f8f248261d6b605c62eca071e29e9c7e5a90 activesupport-4.1.13.rc1.gem
7c418986f10ff82fbb1be1b3a6c9defb80aac5eb rails-4.1.13.rc1.gem
e5ca51e2cb32fa57bd7ba18f8fe52cd3c0e2bbb9 railties-4.1.13.rc1.gem

Here are the checksums for 4.2.4.rc1:


$ shasum *4.2.4.rc1*

7f343fd97d1e41920feac65020fa487c4d0be67e actionmailer-4.2.4.rc1.gem
f815f40569f0e6b93f10c61d696d9ab06aba6531 actionpack-4.2.4.rc1.gem
bca83efa6384b88b5429f1dad1dd1a05e7c8e491 actionview-4.2.4.rc1.gem
7d8694143e23712da67606ea78919ed71605dd19 activejob-4.2.4.rc1.gem
674d0fd053f8365a1be9fe787f6fe10c5b9b3993 activemodel-4.2.4.rc1.gem
ec34623a19a136dcb62308ad3dfeba3209a5beac activerecord-4.2.4.rc1.gem
8673028f02630357ea1f086323468b4a733b00aa activesupport-4.2.4.rc1.gem
970ee741e3e2ffcaae6cbb33895ee2dc407bb5a3 rails-4.2.4.rc1.gem
69f16c95fac8739bc62e5f2cbe352bfa05746223 railties-4.2.4.rc1.gem

I'd like to thank you all, every contributor who helped with this release.


2015/08/14 15:04:06 by rafaelfranca

Γ—

This week in Rails: caching madness, Active Job improvements, and even more performance!

What's up, gang? Todd here with another edition of This Week in Rails. It was a bit of a quiet week in Railsland, but I think we've got some quality contributions here. Read on for the deets!

Featured

This Week's Rails Contributors

We had 39 awesome contributors to the Rails codebase this week. Check out the active issues over on GitHub if you'd like to see your name here.

New Stuff

Add #cache_key to ActiveRecord::Relation

This addition bakes a strategy for generating collection cache keys directly into ActiveRecord::Relation. Using #cache_key, it's now possible to automagically generate a unique key on relations for use with Rails' fragment cache.

Development Server Caching Toggle

Per a request from DHH, this change adds the ability to enable or disable caching in a development environment. There are two ways to toggle it - on server start with --[no-]dev-caching or with the dev:cache rake task.

Improved

Active Job and Locales

Active Jobs queued with #perform_later previously wouldn't honor the context's locale. This patch rectifies that by storing it on the job directly.

Even More Performance Improvements!

By using #start_with? instead of matching on a regex, 765.5 ms have been shaved off of the total aggregate request time per 1000 requests. In conjunction with other performance work recently completed, this knocks a whopping 1.5 seconds off over the course of 1000 requests.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/08/07 21:42:05 by toddbealmear

Γ—

This week in Rails: wildcard template dependencies and more performance!

Happy Friday Everyone!

This is Greg with the latest news about Rails. We had a quiet week so this issue will be a short one.

Featured

This week's Rails contributors

This week 23 awesome people helped to make Rails even better. If you are interested in becoming a contributor, you can have a look at the issues list.

New Stuff

Wildcard template dependencies

You can define your template dependencies with a wildcard and do more with less code!

Plugin generator for API applications

This pull requests adds an --api option in order to generate plugins that can be added inside API applications.

Improved

Performance improvements

By reducing the number of object allocations, this giant patch helps reduce memory usage and also brings you some significant speed improvement (as a benchmark, codetriage.com ran about 10% faster).

Fixed

Uniqueness validator fix

This commit fixes an issue when using the uniqueness validator against a custom primary key.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/07/31 23:27:36 by gregmolnar

Γ—

This week in Rails: goodbye Rack::Lock, concurrent-ruby, better AC::Parameters and more

Hello Everyone!

This is Vipul from Pune, waiting to enjoy some sweet Sheer khurma, and delicious Biryani with my friends, since Eid is just around the corner.

Hmm, Yum.

Featured

This week's Rails contributors

This week 28 people helped make Rails even more awesome than before. Big thank you to all these amazing people! If you'd like to chip in, there's always something you could help work on!

New Stuff

Remove Rack::Lock

This is one of the many concurrency-related work that went into Rails this week.

Instead of forcing Rack::Lock when eager_load and cache_classes are off, this change just prevents actual race conditions.

It is achieved by means of a (reentrant) shared-exclusive lock. This allows multiple concurrent requests but ensures any code-loading activity gets performed in isolation.

Improved

Replace ActiveSupport::Concurrency::Latch with Concurrent::CountDownLatch from concurrent-ruby

ActiveSupport::Concurrency::Latch was replaced with Concurrent::CountDownLatch from the concurrent-ruby gem.

This replaces concurrency related code cluttered in AS and offloads it to concurrent-ruby gem, which has many concurrency utilities with runtime-specific optimizations.

Deprecate force association reload by passing true

This is to simplify the association API, as we can call reload on the association proxy or the parent object to get the same result.

So now to reload one would call @user.posts.reload instead of @user.posts(true) for collections and @user.reload.profile instead of @user.profile(true) for singular associations.

See also this mailing list thread for more background information.

Fixed

Test runner now works correctly inside Engines

The bin/rails test has now been extended to work properly instead engines, where previously we needed to do rake test.

ActionController::Parameters no longer inherits from HashWithIndifferentAccess

Inheriting from HashWithIndifferentAccess allowed users to call any enumerable methods on Parameters object, resulting in a risk of losing the permitted? status or even getting back a pure Hash object instead of a Parameters object with proper sanitization.

This change fixes this behavior and makes sure all the methods defined on Parameters will return a Parameters object with the correct permitted? flag.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/07/17 22:25:27 by vipulnsward

Γ—

This week in Rails: Action Cable, collection caching and more

Hi This is Prathamesh bringing together all the latest happenings from the Rails world.

Featured

Action Cable alpha is out!

Action Cable is out in wild as promised by DHH in his Railsconf keynote. There is flurry of activity happening with it right now. It's still in alpha mode and will get production ready with Rails 5.

This week's Rails contributors

Meet the 21 lovely people who contributed to Rails this week, the community can't thank you all enough!

New Stuff

Explicit collection caching directive

Now we can explicitly specify collection caching using a special directive # Template Collection. The partials which do not start with <% cache do %> calls will get benefitted by this feature.

Improved

Filter params based on parent keys

Do you have nested params with same child key and different parent keys? Do you want to filter the child keys for only some of the parent keys? Now you can! Params can be filtered based on parent key using a simple config.

Fixed

Fix inconsistent behavior of HWIA with default_proc

Thanks to this fix, behavior of HWIA is now in sync with Ruby's built-in Hash when a default_proc is set on the instance and it is duped.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/07/11 00:40:57 by _cha1tanya

Γ—

This week in Rails: SQL colors, reversible column defaults and more!

Hello? This is your captain Kasper speaking.

We're just about ready to take to the skies for our weekly cruise through the news. I took a flight course once, and walked away from the crash in flying colors. If my instructor had made it out, I'm sure he would be proud too.

Look at us, we're already taking off - hey, is that light supposed to be blinking?

Featured

This Week's Rails Contributors

26 daring pilots brimmed the horizon with their commits this week. There were loops and barrel rolls galore - you should have been there! Oh, but you can. See the last item if you feel the need for speed (and contributing).

When SQL Output met Rainbows

In Rails 5 you'll see your SQL has gotten a fresh coat of paint - several in fact. Now common SQL statements appear in color when sprouting up in your logs. Check the link for the color map.

change\_column\_default Gains Reversible Syntax

Gone are the thrills of remembering past defaults, when you changed it for a column. Both from and to can be passed now: change_column_default(:posts, :state, from: nil, to: "draft")

If all your life's ROFLMAO'ing have left you with ass left to laugh off, you'll be ready to migrate and roll back on the floor laughing the remainder of your rear right off over this.

Improved

Windows Users Needs the Latest Development Kit

If you're a Windows user and witness to the horror of rails new failing with native gems not being able to be installed - rejoice! You need the latest Development Kit version, which our getting started guide will now tell you.

Fixed

where with Association Names are Closer to 4.2

To prevent ambiguity and potential collisions, association names in where are assumed to reference the table name.

default\_render Can Yield When Template is Missing

When a Rails 5 controller action have no corresponding template, Rails renders head :no_content. Before libraries were hooking into the missing template exception being thrown. Now default_render takes a block and the hook is back.

One More Thingβ„’

Feel the need to contribute?

From time to time DHH opens issues on Rails about stuff he'd like implemented. As long as someone hasn't laid claim to it in the comments (or is assigned) it's yours to take a stab at.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/07/03 21:48:01 by kaspth

Γ—

This week in Rails: Rails 4.2.3, Rails 4.1.12 and more!

Hey there!

This is Claudio, celebrating a historical moment on the road to a better framework for everyone.

Featured

This week's Rails contributors

28 people contributed to the framework by having their commits merged into rails/rails this week. Thanks and keep up the good work!

Rails 4.2.3 and 4.1.12 have been released!

What are you waiting for? Run bundle update rails and get four months of updates in your codebases!

New Stuff

Integrate protected_attributes with strong parameters

Are you still on Rails 3? Do you wish you could use strong parameters? Check out this commit to protected_attributes… it might just make your day.

Sprockets 4.0 is coming

The development of rails/sprockets moves on and… needs your help! If you'd like to contribute to its next version, don't hesitate to contact any Rails core team member.

Fixed

Raise the proper error on namespaced-association type mismatch

Assigning a wrong value to a namespaced association used to raise NameError, but will now correctly raise ActiveRecord::AssociationTypeMismatch

One More Thingβ„’

Kasper Timm Hansen is a Rails Committer team member

Kasper started contributing one year ago and has not stopped (240 commits and counting)! Thanks for being awesome and for your wonderful blog posts.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/06/26 23:27:25 by claudiob

Γ—

[ANN] Rails 4.2.3 and 4.1.12 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.3 and 4.1.12 have been released.

No regressions were found so these releases include the same changes that the release candidates.

CHANGES since 4.1.11

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.2.2

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.1.12:


$ shasum *4.1.12*

c4f8aebcd59011e47d373a99413dad210e3d4bbd actionmailer-4.1.12.gem
ce8868972769ad56b93b7b98585d64804d6d8174 actionpack-4.1.12.gem
2d6e6c6212bff10993394c63b56ce434342c9a47 actionview-4.1.12.gem
9a462b3ad2cfaf5f7914869efd5e8c62e54064b0 activemodel-4.1.12.gem
c0d65ed4f79115f7a9901d60201e720a7f556335 activerecord-4.1.12.gem
97fd3230896d900923dc650e788ccaaf3b06d692 activesupport-4.1.12.gem
9f6db196328b302c4c3a7ff3a1c7cd1a191221cc rails-4.1.12.gem
8c7c04045df2eebc69e54c8426def69eca0f8bf6 railties-4.1.12.gem

Here are the checksums for 4.2.3:


$ shasum *4.2.3*

f02da8c3896d4c8cd208b7c555c2c2235e44ce0e actionmailer-4.2.3.gem
d824941013ba3616aa643d4c5016d00bf2dc028f actionpack-4.2.3.gem
53982ad7579069c2a5de4939bb8c689550bdd2ab actionview-4.2.3.gem
280e774caf7335aba1b50441b4890803d18a666c activejob-4.2.3.gem
0d2160b37223703d167cfd5a8cb358029ccbacd9 activemodel-4.2.3.gem
8799d638cc5cdbd59296392f0f1014a051378517 activerecord-4.2.3.gem
1dc5e9cba144dc9794bc4ebed19a8528b7287a76 activesupport-4.2.3.gem
0ef8f13382996c3480d09900e34988aae85f0886 rails-4.2.3.gem
0fa6b51c3e9f70f0ce9fb1d1977169537d19ae86 railties-4.2.3.gem

I'd like to thank you all, every contributor who helped with this release.


2015/06/26 14:04:06 by rafaelfranca

Γ—

[ANN] Rails 4.2.3.rc1 and 4.1.12.rc1 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.3.rc1 and 4.1.12.rc1 have been released.

If no regressions are found expect the final release this Thursday, on June 25, 2015.
If you find one, please open an issue on GitHub
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

CHANGES since 4.1.11

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

CHANGES since 4.2.2

To view the changes for each gem, please read the changelogs on GitHub:

Full listing

To see the full list of changes, check out all the commits on
GitHub
.

SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.1.12.rc1:


$ shasum *4.1.12.rc1*

5309022944d12fcf015f8993db2c69f66d0fa9c4 actionmailer-4.1.12.rc1.gem
7e66207c9bd27bd07966a93e4a14abbf792920d7 actionpack-4.1.12.rc1.gem
17a9c55edf3988a28af2017f901bcbcc7257c99a actionview-4.1.12.rc1.gem
78a04199bb509617d672e62076a704849b90650d activemodel-4.1.12.rc1.gem
b7ffcf6ac2c9929d18e406dfb9fd6b9858d3d893 activerecord-4.1.12.rc1.gem
c8bbbc325547bd3707b445e79c95406e057037c2 activesupport-4.1.12.rc1.gem
a3307e12472796620e1e7b3b71ce1e0c6a112854 rails-4.1.12.rc1.gem
dfd11e7529f6b21049644c16b62e53d898ce4013 railties-4.1.12.rc1.gem

Here are the checksums for 4.2.3.rc1:


$ shasum *4.2.3.rc1*

3af2c0a834e8f6c26656720419bedc2935df4424 actionmailer-4.2.3.rc1.gem
bdf102b742a963d3b1697e4e876900c1644fe502 actionpack-4.2.3.rc1.gem
94020ee0a2372d601de8c2e62a672ea35d1548cd actionview-4.2.3.rc1.gem
f9429285835d11a9de31f51349d35f75bf242a02 activejob-4.2.3.rc1.gem
92cedde54d1c3951ed431825b36e6868b5c79142 activemodel-4.2.3.rc1.gem
9cafdd1bd85ca8a61c73f2cb31973cc4074c252f activerecord-4.2.3.rc1.gem
8c2740af13ff4e664edef95f49a1e7536168e8fa activesupport-4.2.3.rc1.gem
a1eeaaa8e7bb3a2f9ee29bf5525eaea54313a4a6 rails-4.2.3.rc1.gem
8aa764a9befa9ecad476bb7d07403da4ceea67a6 railties-4.2.3.rc1.gem

I'd like to thank you all, every contributor who helped with this release.


2015/06/22 15:04:06 by rafaelfranca

Γ—

This week in Rails: Security Releases, Enumerable Relations and more!

Hey there!

I'm just glad we all made to this Friday. This is Washington again pulling together a few stories for our weekly newsletter on Rails.

Featured

This week's Rails contributors

Keeping our tradition let's start with the 32 splendid contributors that made their commits to rails/rails this week. Keep in mind a ton other people also helped by creating issues and helping the core team with PR reviews.

Rails security releases 3.2.22, 4.1.11 and 4.2.2

Time to upgrade your applications. Five announcements landed on Rails security mailing list this week. Consider joining that list as well if you haven't yet.

Improved

Include Enumerable in ActiveRecord::Relation

After a couple years Rails core team seems to have changed its mind and Enumerable is finally included into active record relations. Things change and I believe that's fine.

Fixed

Autoload ActiveRecord::RecordInvalid

Thanks to the awesome open source community it was noted ActiveRecord::RecordInvalid was not being eager loaded as expected. The fix was backported to all supported branches.

Deprecated

Remove ContentLength middleware from the defaults

As per an old change on Rack spec Rails 5 will no longer ship with ContentLength middlleware by default.

Passing hash as first parameter into ActionController::Head is deprecated

The way to go now is to explicitly pass the status first then pass the options hash as a second parameter.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/06/20 04:44:42 by huoxito

Γ—

Rails 3.2.22, 4.1.11 and 4.2.2 have been released and more

Hi everyone!

Rails 3.2.22, 4.1.11 and 4.2.2 have been released, along with web console and jquery-rails plugins
and Rack 1.5.4 and 1.6.2.

These releases contain security fixes, so please upgrade as soon as possible!

The security fixes for 4.1.11 and 4.2.2 are:

In order to make upgrading as smooth as possible, we've only included commits directly related
to each security issue.

The security fix for 3.2.22 is:

Differently from the Rails 4 releases, Rails 3.2.22 includes all the commits from the 3-2-stable
branch. This mean that now Rails 3.2 supports Ruby 2.2.

The commits for 3.2.22 can be found here,
the commits for 4.1.11 can be found here,
and the commits for 4.2.2 can be found here.

Web Console

We are also releasing Web Console 2.1.3 that contains the fix for the following issue:

The commits can be found here.

jquery-ujs and jquery-rails

We are also releasing jquery-ujs 1.0.4 and jquery-rails 3.1.3 and 4.0.4 that includes fix for the
following issue:

The commits for jquery-rails 3.1.3 can be found here,
the commits for jquery-rails 4.0.4 can be found here,
and the commits for jquery-ujs 1.0.4 can be found here.

Rack

Rack 1.5.4 and Rack 1.6.2 have also been released, which include fixes for the
following issue:

The commits for rack 1.5.4 can be found here,
and the commits for rack 1.6.2 can be found here.

SHA-1

Here are the checksums for Rails 3.2.22:


$ shasum *3.2.22*

cc56be2f49baeeccc0da87b740f23d0ac7bd2d24 actionmailer-3.2.22.gem
d20fd24d9049fad99ea5405a265ca7c9690af378 actionpack-3.2.22.gem
0454b4bd49a1a423e1ef6231a5cb510ca48e0cb8 activemodel-3.2.22.gem
d9e51980eb4892089a29531c1fea69cabe9511e4 activerecord-3.2.22.gem
3754c63826f09b6b10bd0ca749646f76fbe195c6 activeresource-3.2.22.gem
4da01bbf6e03326c24c261c3d65a8c0b563f8663 activesupport-3.2.22.gem
0386d4d55b52d1348e024cb237e3b81126ce6c46 rails-3.2.22.gem
56575ff805b432be10fa79080c25c790947999f2 railties-3.2.22.gem

Here are the checksums for Rails 4.1.11:


$ shasum *4.1.11*

154856eb9c940e8fb5c999b08c748ce82e8a1197 actionmailer-4.1.11.gem
fa9a8271d8c19af89f8cf46c9a5bfd0b3ece1226 actionpack-4.1.11.gem
340678573b91ad305b9c2b07844d0628dbcf6a8d actionview-4.1.11.gem
c56dc176a7ac0690d4f59472f28b36a664221d5c activemodel-4.1.11.gem
711334da9e88d8d2606b4e12df115b093fb3a1b1 activerecord-4.1.11.gem
b714633af191481332797ed09f62fdd784363fb1 activesupport-4.1.11.gem
9fc1c823457ffe51cc6f52de2960035149621e15 rails-4.1.11.gem
1640674035171d0eb36ff91da9ea8d86f2137261 railties-4.1.11.gem

Here are the checksums for Rails 4.2.2:


$ shasum *4.2.2*

a093bdd43d732416f02b1cc39edc4f839b27cc69 actionmailer-4.2.2.gem
51dc701f026f3a84a779287459996f36023877f9 actionpack-4.2.2.gem
6ae3231fa1e6bbd07b4d1bf7b124654b39f3e048 actionview-4.2.2.gem
16e607a30b41d000bae2e848c11ef472264a5d94 activejob-4.2.2.gem
e667fb6dee998be2d1d01086467fa3fe2ca58dff activemodel-4.2.2.gem
394cc4d39e8c84c2aed5b25c352cd6b2903ab686 activerecord-4.2.2.gem
b4b91de89a8c6f223bed5c01a7e578956d4a2bf7 activesupport-4.2.2.gem
a9e286e6799bde99e1449706854b910b5c466302 rails-4.2.2.gem
dd46d7f599fb883c1d3fd6b5ec8fcfd61628b869 railties-4.2.2.gem

Here is the checksum for Web Console 2.1.3:


$ shasum web-console-2.1.3*

60aed82466891904d7348583d67ec7dabce3a176 web-console-2.1.3.gem

Here are the checksums for jquery-rails 3.1.3 and 4.0.4:


$ shasum jquery-rails*.gem

691b6ec57ee08f8ef80bae3e8c09a4442d2f7d5c jquery-rails-3.1.3.gem
159b4127ebbaba708cbed2921d1d1b00134ee834 jquery-rails-4.0.4.gem

Here are the checksums for Rack 1.5.4 and 1.6.2:


$ shasum rack-*.gem

d71ea9c90d7ef2a0787722f233da8fcbfb5e55d5 rack-1.5.4.gem
85d34dbf068cda5cf36432984da8ccf81c3d1be5 rack-1.6.2.gem


2015/06/16 17:02:42 by rafaelfranca

Γ—

This week in Rails: Rails API, fun with minitest and more!

Howdy folks!

My name is Todd and I'll be your guide through the land of Rails this week. Straight from the comfort of my couch with awful lumbar support, I proudly present bad posture and the highlights from This Week in Rails.

Featured

This week's Rails Contributors

42 people made Rails even more awesome this week.

Rails API has landed on master!

After 52 days, lots of great comments, and a ton of incredible work by Santiago and Jorge, Rails API has been merged into master and will be released as part of Rails 5!

New Stuff

Optional scaffold.css

If you've ever wanted the ability to avoid generating scaffold.css when performing a scaffold, you're in luck. Simply use the --no-scaffold-stylesheet switch and you're good to go!

Improved

Better minitest integration for Rails' test runner

The new Rails test runner has been modified to take better advantage of minitest's extension system.

Added a Point object for Postgres point types

Rails 5 will deprecate the current behavior for Postgres point types. Moving forward, the Postgres adapter will return a Point object instead of an Array.

Reversible remove_foreign_key

Migrations using remove_foreign_key can now be automatically reverted with rake db:rollback without manually defining the down operations.

Fixed

Prefix and suffix options for enums

This allows you to add a prefix or suffix to enum's auto-generated methods. Useful if you have multiple enums with the same values.

Fixed ignore_blank for required select fields

This change will now cause an ArgumentError to be raised in the event ignore_blank is set to false on a required select field.

Fixed abstract class fixtures with belongs_to

Fixes an issue where using belongs_to in abstract classes would result in a crash when loading test fixtures.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/06/12 20:51:37 by toddbealmear

Γ—

This week in Rails: DateTime vs Time, summer student projects and more!

Hello everyone!

This is Marcel making my 'initial commit' with awesome help from Kasper, your friendly ghost editor. Ten minutes from the lovely Jamaican shores, here are the headlines from This Week in Rails.

Featured

This week's Rails Contributors

56 people helped make Rails even more awesome this week.

When should you use DateTime?

Ever wondered what is the difference between DateTime and Time? Checkout this enlightening gist on when you would use each which also landed in the ruby documentation.

Google Summer of Code – Web Console

Follow one of our Google Summer of Code student Hiroyuki on his thoughts, experiments and progress with the web-console browser extension project.

Rails Girls Summer of Code

Meet the 16 official teams that will be participating in the 2015 Rails Girls Summer of Code. We wish them the best of luck.

New Stuff

Custom configurations can be required

Sometimes there's a configuration your app simply needs to function. Now that important client secret can raise if it hasn't been set. Just go out with a bang: Rails.application.kitty_litter_supreme.client_secret!

Action Mailer queue name is configurable

Currently all mails sent with deliver_later are put in the mailers queue. This patch keeps that default but allows the queue name to be configured globally via config.action_mailer.deliver_later_queue_name. See also related documentation commit.

Improved

Use inline Gemfile when reporting bugs

No longer do you need to write a physical Gemfile when submitting bug reports, as Bundler 1.10.3 now supports inline gems. Of note, when an inline Gemfile is used, bundle exec is not supported.

Use block variable instead of global

As it turns out using a block variable instead of a "magic" global variable is not only faster but easier to read.

Enumerable#pluck supports multiple attributes

This allows easier integration with Active Record, such that ActiveRecord::Base#pluck will now use Enumerable#pluck if the relation is loaded, without needing to hit the database.

Deprecated

Remove assert_template and assigns()

In order to discourage ties in the controller tests to the internal structure of how your views are organized, assigns and assert_template have both been removed and extracted to the gem rails-controller-testing.

Fixed

Apply Active Record suppression to all saves

Active Record's suppress is now being applied to non-bang save and update methods. It was also missing from create_* methods provided by singular associations. See gist for more details.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but you're scared of putting yourself out there? Don't worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.


2015/06/06 00:24:47 by marcelmorgan

Γ—

This week in Rails: Enumerable#pluck, SQLite Collation and lots more

Hello everyone!

This is Vipul , happily reporting from a Simmering Summer 😎. Pour yourself a drink 🍹, sit back, relax and enjoy, as we go through these hot off the press changes.

Featured

This week's Rails Contributors

43 people helped make Rails even awesome this week. Checkout the pulse page for more details.

New Stuff

Enumerable#pluck

Enumerable#pluck has just landed on master, providing similar functionality as Active Record's #pluck.

This allows for something like
[{ name: "David" }, { name: "Rafael" }, { name: "Aaron" }].pluck(:name) to get everyone's names. Pretty handy!

Improved

Collation support in SQLite

Active Record now supports specifying a collation function for SQLite string columns.

Default procs in Attributes API

With the new Attributes API, it is now possible to specify a proc as the default values for an attribute, which allows for runtime-generated default values such as attribute :year, :integer, default: -> { Time.now.year }. See also these related changes.

Preserve MySQL's sql\_mode with strict: :default

By default, Rails overrides MySQL's sql_mode setting with sql_mode=STRICT_ALL_TABLES to prevent silent data loss. While this is helpful, it has the unfortunate side-effect of overriding any user customizations.

If you prefer to manage this yourself, you can now specify strict: :default in your connection's config and Rails will leave your sql_mode alone. (STRICT_ALL_TABLES is still highly recommended though!)

Deprecated

Deprecate render nothing: true

If you are using render nothing: true, you should start replacing it with head :ok, which does the same thing and is more semantic. This option will go away permanently in Rails 5.1.

Deprecate Relation#uniq

The superficial similarity between Relation#uniq and Array#uniq has been a source of confusion, which led to the addition of Relation#distinct which better communicates what is happening under the hood.

The recent discussion on #20198 put the final nail in the coffin for Relation#uniq and its friends, #uniq! and #uniq_value. These methods are deprecated and scheduled for removal in Rails 5.1, so you might want to start using #distinct, #distinct! and #distinct_value soon.

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don't hesitate to contact Godfrey – there're a lot of ways you could help make this newsletter more awesome!


2015/05/30 07:02:36 by vipulnsward

Γ—

This week in Rails: try'ing with Delegator, schema cache and a lot more

Hey everyone, this is Prathamesh. Back with latest spells and bindings from magical world of Rails. Keep your wands ready!

Featured

This week's Rails Contributors

39 people got commits into rails/rails this week. And 7 of them made their first patch in this week! Checkout the pulse page for more details.

New Stuff

Support for try with Delegator

Delegator will now respond to try rather than delegating it to the underlying object. Phew! The surprising behavior when using try with normal objects and delegators is gone finally.

Improved

Copy schema cache to new connection pool after fork

Active Record does all the heavy lifting of maintaining and creating connection pools. It just got better. Thanks to this patch, it will copy the schema cache of old connections pools to the new ones if one already exists.

Fixed

Quoted sequence names now work with serial?

Quoted sequence names in PostgreSQL will work properly now with serial? method. Before this patch, the serial? method would return false if the sequence name was quoted. Finally it's fixed.

One More Thingβ„’

Integer#positive? and Integer#negative? in Ruby core

Last week Integer#positive? and Integer#negative? were added to Rails and this week they became part of Ruby core. Hooray!

That's a wrap

That's all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don't hesitate to contact Godfrey – there're a lot of ways you could help make this newsletter more awesome!


2015/05/22 20:21:56 by _cha1tanya

Γ—

This week in Rails: Connection Pool, Responsive Site, Oh my!

Hey everyone, cough this is cough Kasper.

I've been cough sick most of the week and am cough-ing my way through this.

Feel free to insert cough's through the rest of this, as long as you remember not to snooze on a sneeze or two too.

Alright, cough 'em up.

Featured

This Week's Rails Contributors

Look at these 31 people and how they've hammered away at their keyboards, as if possessed by a different sickness. One of radness that is, my duderinos and duderinas.

Active Record: Connection Pool is More Concurrent

Active Record keeps a pool of database connections. To keep the pool safe from people trying to cannonball queries at once we need to lock it. The pull request slims down what happens when locking, so you can quicker release the lock. Basically more people can go splash, because the diving board is free earlier.

Holy Ruby on Rails on Responsive Website, Batman!

Are you on your phone? Are you on your watch? Are you on the toi... eh, anyway, the Rails website is now responsive.

Just to tide you over until the website redesign will be revealed. That'll surely be a royal flush.

New Stuff

The Tragoedia and Comoedia of Integers

This week integers gained introspection methods that makes a select a tad easier to read. They are the gangbuster team of negative? and positive?. And hopefully the polarity shockwaves will rock the Ruby world too.

Fixed

Don't Add to Local Assigns without an Object

If you rendered a partial like <%= render partial: 'spruce_goose' %>, Rails would spruce up local_assigns with the name of the partial. That goose chase ended this week.

One More Thingβ„’

One More Chance to Review Rails API

The option to generate API only Rails apps is almost done. But there's still a chance to help out by reviewing it. Give it a shot of love!

That's a wrap

That's all for This week in Rails. As always, there are more changes than we have room to cover here, but feel free to check them out yourself!

P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don't hesitate to contact Godfrey – there're a lot of ways you could help make this newsletter more awesome!


2015/05/15 21:17:09 by kaspth

Γ—

This week in Rails: Job IDs, inline images preview and more

Hi there!! Washington here again.

Glad we all made to another Friday. A lot of small patches around Rails repository this week. So we had another relatively calm week after the major announcements on RailsConf. The talks list is getting bigger on confreaks by the way. You might want to watch some of those this weekend.

Featured

This Week's Contributors

38 people made it to the Rails repository this week. Check out the pulse page on github too for the full list of recent issues and PRs.

New Stuff

Keeping original job IDs with ActiveJob#provider_job_id

ActiveJob will be able to report the original adapter job ID in Rails 5. The patch started targeting Delayed Job then Sidekiq and Que got their own about a week later. Great team work.

Mailer previews support inline images

This commit adds a preview interceptor to search for inline cid: urls in src attributes and convert them to data urls. P.S. I had to look up the cid protocol myself to get this one.

Deprecated

Removed assigns from functional test templates

Rails is moving towards deprecating the assigns helper on controller tests. The main motivation is that it's asserting against the internals of the implementation which we shouldn't care about in a unit test.

See some comments from DHH about that and a couple other test helpers.

Improved

Allow custom response messages on authentication methods

This adds the same functionality already provided in Digest to the HTTPAuth Basic and Token modules.

Apply schema cache dump when creating connections

Quite interesting patch on improving the set up for database connection pools. The schema cache dump will now be applied to every connection as they are created to avoid querying the database for its schema.

That's a wrap

That's all for This week in Rails. As always, there are more changes than we have room to cover here, but feel free to check them out yourself!

P.S. If you enjoyed this newsletter, why not share it with your friends? :) If you wish to be part of this project please don't hesitate to contact Godfrey – there're a lot of ways you could help make this newsletter more awesome!


2015/05/10 19:05:08 by huoxito