Ruby on Rails

Web development that doesn't hurt

1b9d75a2f10beeda140e2b3ab4ac7584 Software Engineer
×

Welcome

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

× Riding Rails
×

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

×

This week in Rails: recovering from RailsConf

Happy Friday! It’s Claudio with the latest updates on Rails. Overall, this has been a relaxed week. Many documentation fixes have made their way into master while features uncovered at RailsConf (like the integration of Rails API) are being heavily discussed on GitHub.

Featured

This Week's Contributors

This week 31 people helped Rails out. Six people had their first commit merged into rails/rails. Hooray!

RailsConf 2015 videos

One by one, all the presentations of RailsConf are being uploaded. Lots of great talks to fill your weekend!

GSoC students announced!

We are proud to announce that 8 students will be working on improving Rails as part of the Google Summer of Code 2015. Congratulations and welcome to Rails!

Improved

Better docs for minitest assertions

Rails ships with minitest by default but has different naming conventions for inverse assertion methods. The new guides clarify this difference. And give us a great excuse to link to Ruby on Rails on Minitest.

Toward a better "Caching with Rails" guide

Everyone can help make Rails better by improving its guides. "Caching with Rails" is an awesome place to start. If you think you can improve it, don’t hesitate to submit a pull request!

Remove use of mocha in the named-base tests

Some tests in the Rails codebase use the mocha library and can be faster by using minitest/mock instead. This commit fixes one of those tests; you are all invited to do the same for the remaining ones.

Fixed

Rake routes not showing right format when nested

The rake routes command was not properly showing nested routes with a scope constraint for the format override by a resource… but that just got fixed!

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/02 01:27:52 by claudiob

×

Welcome to Google Summer of Code 2015!

Google has announced the list of accepted projects for this year's Google Summer of
Code
(GSoC). Rails has been granted 8 slots, here's a brief introduction to the projects and
the people behind them.

Performance Enhancements for the Asset Pipeline

Student: Martha de Luque

Mentors: Guillermo Iguaran and Josh Peek

Martha will be profiling, benchmarking and updating parts of our asset compilation process to
improve our asset [re]generation speed. The initial scope of this project covers CoffeeScript, Sass and
our Uglifier, but benchmarks will be guiding this effort to work where we can get the biggest
benefits in these four months.

Evented File System Monitoring

Student: Puneet Agarwal

Mentors: Xavier Noria and Matthew Draper

ActiveSupport::FileUpdateChecker, the
system we use for detecting changes in files (mostly for reloading purposes) has served us well over the years, but we're done with
polling. Puneet will be replacing our current design with a event-based approach that relies
on existing third-party monitors (e.g. inotify or FSEvent).

Asset Pipeline Support for Source Maps

Student: Andrei Istratii

Mentors: Rafael França and Arthur Nogueira Neves

The goal of Andrei's project is to give you good inspecting and debugging capabilities in environments
where your code goes through various transformations (e.g. your CoffeeScript file being compiled to
Javascript and then minified in your staging environment). With source maps you can use the existing
tools your browser provides to do things like reading the CoffeeScript source or setting breakpoints
on it.

Refactoring Action View and Active Support

Student: Islam Wazery

Mentors: Kir Shatrov and Carlos Antonio da Silva

Islam is adding some of the things we should already have in Rails, liked adding named arguments
for Action View helpers (goodbye counting commas!). He will also be researching how to improve some of our core abstractions like
ActionController::Parameters
and
ActionView::OutputBuffer
to enable better security and performance.

Web Console Browser Extensions

Student: Hiroyuki Sano

Mentor: Genadi Samokovarov

Following up on the work of previous GSoC projects, Hiroyuki will be creating browser extensions for
the Rails web console. Like the Source Maps project, this one will give you a better live
debugging experience using standard tools that everyone has available already.

Test Failure Prediction

Student: Genki Sugimoto

Mentors: Robin Dupret and Josh Kalderimis

Aaron Patterson has touched upon some interesting ideas on
predicting test
failures
using the
experimental Coverage feature
available in recent Ruby versions. Genki will be experimenting with this to see if we can make it a
part of the Rails testing ecosystem.

Refactoring Cookies

Student: Siddharth Bhatore

Mentors: Kasper Timm Hansen and Prem Sichanugrist

Rails cookie handling is pretty basic, and although it works in most use cases, we can improve
it. Siddarth will be adding server-side expiration mechanisms and purpose fields to our existing
cookie jar, allowing us to have better control and security over our systems.

Improving RubyBench.org

Student: Kasif Gilbert

Mentors: Sam Saffron

In case you're not familiar with it, RubyBench is an amazing effort to keep
long running benchmarks for Ruby and related projects (like
Rails). As you can see, our own benchmarks could use
some love, so Kasif will be taking care of this. If everything goes well, JRuby support in
RubyBench would be the next step for this project.


Fun Fact: 4 of the 14 mentors we have this year participated as GSoC students in previous years. Today they're all
active contributors around the Ruby/Rails ecosystem!

We hope to keep you up on important updates during the summer, but if you're interested in staying
up to date (or maybe lending a hand?) please make sure to subscribe to our mailing list.

Finally, we want to thank José Valim/The Pragmatic Programmers,
Pat Shaughnessy/No Starch Press and
O'Reilly for donating copies of Crafting Rails
Applications
, Ruby Under the
Microscope
and offering discounts on
O'Reilly products to our students.

PS: In case you missed it, Ruby and SciRuby will also be part of this year's GSoC! You can learn
more in the Ruby GSoC and SciRuby
Development
mailing list announcements.


2015/05/02 01:00:00 by febuiles

×

This week in Rails: RailsConf 2015 Edition

ZOMG! Hello everyone, it is Godfrey here (it's been a while!), delivering the latest news from Rails to your inbox. This happens to be RailsConf week, so we have lots to cover; lets get to it!

Note: The links to the RailsConf videos are the unedited live-stream versions, and they might be removed later. Also, only talks from the keynote room are available at the moment, but don't worry – the full set of talks will eventually be made available to everyone. Follow @railsconf to stay in the loop!

Rails Conf 2015

Day 1: DHH keynote, Sara Chipps keynote

David Heinemeier Hansson kicked off the conference by announcing a few new features in Rails 5: Rails API, turbolinks 3, a native mobile wrapper and web sockets support (a.k.a. Action Cable).

The amazing Sara Chipps wrapped up the day by sharing her experience teaching kids to code.

Check the schedule for a full list of talks from Room 202. Shameless plug: yours truly gave a talk following the DHH keynote ;)

Day 2: Aaron Patterson keynote, lightning talks

Aaron Patterson started the second day with a punishing amount of word play jokes. In between trolling other keynote speakers and rebooting his computer, he also dropped an incredible amount of performance knowledge.

Don't forget to catch the lightning talks towards the end of the stream!

Day 3: Ruby heroes, core team panel, Kent Beck closing keynote

The Ruby heroes awards were given on the third day, followed by a panel discussion featuring some members from the Rails core team.

Kent Beck, aka the creator of XP (not to be confused with the other XP) wrapped up the conference with a focus on the human elements of programming.

Featured

This week's Rails contributors

Just because it is Rails Conf, it doesn't mean contributions to the Rails codebase will see any slow down. In fact, 37 contributors made their mark on Rails this week, with 11 first-time contributors!

Rails API

As mentioned in David's keynote, Rails API will be part of Rails 5. Follow the pull request to track the progress and chime in on the discussion. (Please avoid leaving +1 comments!)

New Stuff

Generic bug report template

Joining the existing bug report templates, this new template will be handy for reproducing small bugs with a minimal setup. Check the contributing guide for details.

[attr_name]_previously_changed?

With this patch, you can easily check if a single attribute has previously changed and react to those changes appropriately.

That's a wrap

It's been quite a week! We didn't have room to cover everything that happened in Rails, so head over and take a look for yourself.

Thank you for your continued support for the newsletter. (I am very glad to have met a few of you at RailsConf!) As always, feel free to share this with your friends. If you have any comments or would like to help, drop me a line!


2015/04/25 18:16:57 by chancancode

×

This week in Rails: Ruby 2.2.2, RailsConf and more!

Hey reader, Kasper here.

I'm sole jammin' and grand slammin' words into your inbox.

But before the Rails juice, a quick story spruce: At my company we have a coworker we look up to, because she's doing a cross country trek.

She's our heroine and she just crossed the border.

Oh right, you were looking for Rails news.

Featured

This Week's Contributors

This week 42 people helped Rails out. Rails 5 comes closer everyday and it's only possible because of all your help. Keep it up and it'll be the best version of Rails yet.

prepend Primed to Dethrone alias_method_chain

Remember when we said alias_method_chain had been deprecated? Well, if the method being overriden called super, you'd be stuck in an infinite recursion - like that friend who didn't graduate kindergarten. This week prepend became the successor Rails needs. And how is that possible?

Rails 5 Requires Ruby 2.2.2

Well, I'm glad you kept reading, because Ruby 2.2.2 has a fix for prepend. The new version is mainly a security release - with some bug fixes squeezed in there - so no procrastinating the upgrade, okay? You want to be ready to hit the lab next week too.

New Stuff

Controllers With Default Form Builders

There's a new default_form_builder method you can override in controllers. Then form_for and friends will use the passed builder class to architect the view.

A new Action Pack XML Parser Release

Hey, there's a new version of this thing out.                                                  

Improved

Railties Uses Bundler's exe Convention

You've probably been prepending bin when running rake or rails like a good samaritan. Those are binstubs in action. But bin is for executables in general and not just those stubs. Not anymore, as Bundler reserves bin for binstubs and exe for executables. This week Railties executed that convention.

One More Thing™

Meet Us at RailsConf

A few of us are going to the big peach next week. So after you've seen DHH reveal the really big stuff coming in Rails 5, you can mingle with us at RailsConf. Both Godfrey and Claudio will be speaking. ...and I guess I'm there too.

That's a wrap

Another week in Rails went by - and so swiftly. There's more changes in this tailored link.

Lastly, either pluck in a few of your friends' emails here or ask Godfrey how you can get to write these things too.


2015/04/18 01:17:44 by kaspth

×

This week in Rails: batch touching, default controller response and more!

Hey there, this is Washington. It's finally Friday again!!!

A lot of bug fixing and a couple great improvements going on the Rails environment this week. Read on for more details.

Featured

This week's Rails contributors

31 contributors have helped improve Rails this week. Consider taking some time next week to make a contribution to an open-source project :) (I keep telling that to myself every day)

Improved

Batch touch parent records

YAY! I bet many projects have been looking forward to this improvement. After a couple discussions and experiments touching is finally limited to the fewest possible number of queries.

Controller actions default to head :no_content if no template exists

After all these years DHH is still pushing for better defaults on Rails. Next major version will assume everything went fine if a controller action has no template. I can't see why not.

Fixed

Non-ascii characters in URLs on Windows

We are a few months into 2015, but these encoding-related problems are still haunting us! With this fix, Windows apps will stop blowing up on strange URLs. Yet another example of how awesome the Ruby and Rails community can be.

Error when defining callbacks named run

An apparently nice performance improvement has caused a regression on the callback system. Plus according to new benchmarks it seems the original performance improvement is no longer relevant.

force_ssl without session_store

config.force_ssl = true now works properly even when you have disabled the session store.

Uniqueness validations and out-of-range integers on PostgreSQL

Another patch to make Active Record API rock solid.

One More Thing™

Redcarpet 3.2.2 has an XSS vulnerability

I haven't seen much noise about this vulnerability on the interwebs but just in case. If you have this markdown parser on any of your projects you should probably bump it whenever you have a chance.

Wrapping up

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/04/11 03:32:39 by huoxito

×

This week in Rails

Happy Good Friday Everyone!

Here comes the gist of last week's interesting commits from Rails. Stay tuned!

Featured

This week's Rails contributors

We had 30 amazing contributors this week, big thanks to all them!

New Stuff

Explicit base class for Active Job jobs

It is recommended to not change settings on ActiveJob::Base directly so from now on every generated Job will inherit from ApplicationJob and you can tweak that for your needs.

Rails uses Sprockets 3 now!

Sprockets 3 will be released soon and the Rails team decided to give the release candidate a try.

Deprecated

Deprecate the :tokenizer option in validates_length_of

This option only served an extremely specific use case hence became deprecated. If you rely on this functionality, you can implement it with a plain Ruby method.

Improved

Only coerce time in comparison if necessary

In the development environment ActiveSupport::FileUpdateChecker#max_mtim triggers many time comparison and there were many unnecessary to_time calls. With this patch Rails saves around 100ms per request!

Reduce memory usage when loading types in Postgres

The PG::Result object were never cleared when the application queries the types. By clearing that object Rails use less memory.

Fixed

Return super in ActionController::Parameters.const_missing

With this pull request ActionController::Parameters.const_missing's super is always returned whereas before it was only called and its return value was mistakenly discarded.

Wrapping up

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/04/03 23:15:25 by gregmolnar

×

This week in Rails: Goodbye alias_method_chain, PostgreSQL typecasting and more

Hey all!

This is Prathamesh with this week's recap from Rails. Lets see which issues got fixed, which features got added. Ready, steady, go!

Featured

This week's Rails contributors

This week 40 people contributed to Rails, 7 out of them are new. Do you also want to help? Check out the issue tracker and start making Rails better.

By the way, Xavier and Kasper added the permalink feature to the link of weekly contributors. So each weekly contributors link is forever to stay!

New Stuff

Warning if the query fetches more than fixed number of records

Faced problem with queries fetching thousands of records and slowing everything? Now you will get a nice warning if the query fetches more number of records than configured value by using active_record.warn_on_records_fetched_greater_than config option.

Deprecated

Deprecate alias_method_chain in favor of Module#prepend

Do you remember the old friend alias_method_chain? It had a good run. But now it will be deprecated in Rails 5 in favor of Module#prepend which was introduced in Ruby 2.0.

Improved

Moving type casting for PostgreSQL out of Active Record

We just got two steps closer to moving type casting of various data types for PostgreSQL from Active Record to PostgreSQL adapter.

Friendlier access to request variants

With this patch, you can now check the current request's variant using request.variant.phone?, request.variant.tablet? and so on.

Fixed

Pass name of the wrapped job class to Sidekiq for logging

If you were missing your job class in the Sidekiq logs and instead seeing some weird ActiveJob::JobWrapper, don't worry. Now you will get your job class back in the logs because ActiveJob will pass the wrapped class name back to Sidekiq.

Use actual table name while joining tables with has_many :through

Previously, while joining tables having has_many :through association, Active Record was not using the actual table name. It was generating wrong SQL and resulting into ActiveRecord::InvalidStatement error when used with calculation methods like #count. No need to worry, its fixed now!

Generate fixture file with singular name for singular tables

Previously if the table name was made singular using ActiveRecord::Base.pluaralize_table_names = false, name of the fixture file getting generated was still pluralized. No longer true! Get singular fixture file for singular table name now onwards.

Summer Opportunity

Rails Girls Summer of Code

Checkout Rails Girls summer of code. You can submit your open source project to be included. Also you can help fund the campaign.

Wrapping up

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/03/27 22:13:15 by _cha1tanya

×

This week in Rails: 4.2.1, 4.1.10, new test runner and more!

Hello Everyone!

This is Vipul from Pune, where it's the Gudi-Padwa – or the Marathi New Year!
Surrounded by garlands of sweets, lets head on to see, whats exciting this week.

P.S. Happy New Year!

P.P.S. Isn't it a New Year, everyday somewhere around the World?

Featured

This week's Rails contributors

36 people contributed to make Rails awesome this week. If you haven't already, go ahead and watch Rails on GitHub to follow the discussions and find your first opprtunity to help out!

Rails 4.2.1 and 4.1.10 have been released!

After four release candidates, Rails 4.2.1 and 4.1.10 have finally been released! Thanks to all the contributors, for tons of fixes. Check out the full changes for 4.2.1 and 4.1.10 respectively.

New Stuff

bin/rails test runner

A new test runner – bin/rails test – has landed on master. This is the successor to the rake-based test runner, and includes a few rspec-inspired features that are not part of minitest, like running by line number, rerun snippets, or logs displayed with unicorns filled with rainbow colors.

Added rake initializers

Need to see all those initializers scattered in you application? Worry no more. Just run rake initializers! Did I mention they are sorted?

Improved

Use fullpath from Rack request

In Rack, request#fullpath returns the full path including the query string. This change uses fullpath from rack to avoid doing the same thing again in Rails. As a result, we also reduced some object allocations!

Fixed

Materialize subqueries by adding DISTINCT to suport MySQL 5.7.6+

In MySQL 5.7.6+, the default value for optimizer_switch has changed to derived_merge=on, which causes some issue with the subqueries generated by Rails. This change fixes that by adding a DISTINCT to the subqueries.

Don't cast nil to string in postgres enums

Previously, nil values in PostgreSQL enums were casted to an empty string, which causes an error somewhere down the chain. But worry no more – this has now been fixed!

Summer Opportunities

Google Summer of Code 2015

Are you a student, or know someone who would love to contribute to Rails? Our GSoC students application is now open! Check out our ideas page and join us on the mailing list for discussion.

Rails Girls Summer of Code

Rails Girls Summer of Code is also accepting application! You can also consider submiting your open-source project to be included.

Wrapping up

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/03/21 00:22:00 by vipulnsward

×

[ANN] Rails 4.2.1 and 4.1.10 have been released!

Hi everyone,

I am happy to announce that after four release candidates the final versions
for Rails 4.2.1 and 4.1.10 have been released.

CHANGES since 4.1.9

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.0

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-256

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

Here are the checksums for 4.1.10:


$ shasum -a 256 *4.1.10*

4d771e1042dc40148f7d13e9776bd3df4d7a1f116c7991b33b3ee5ade2771edf actionmailer-4.1.10.gem
383fbbc9db04529b15765d4b3236980b8f0c7e050128a467c2dece76b9dea29e actionpack-4.1.10.gem
4c72eca866e4a80b3a56760aeb859e26bbe221fc2c06c13bc8d3220284900330 actionview-4.1.10.gem
277d3fd1736ef1c4043592f482e6dea5cf4cc7d50c706b8be4971058a0df69cc activemodel-4.1.10.gem
a4ab57ff0183a630b46c2fb1c8700cc139f45808b81e4650d6f235102e3d9ae6 activerecord-4.1.10.gem
b495b8490a7f3a885c8d0868858cca5070be41a5001642d2eb83a2f2e794082a activesupport-4.1.10.gem
9f81f8b716ba76ea768b1c0ed4a185a3f7647b384fc297c26c2b51be82856fd3 rails-4.1.10.gem
55546f3c8e40c63cd7fd34b41dcf79eb302a38dd9b5a0383e60e9e747e7ecfe9 railties-4.1.10.gem

Here are the checksums for 4.2.1:


$ shasum -a 256 *4.2.1*

f322b21623eb10eb302a21a803625bd57ce2b4ae24c2b5c14934a1359d63cf60 actionmailer-4.2.1.gem
71fecb2c58b81dc97d9c8fe065004010cccd2a7acd1bc8a459d42b55c4882ca2 actionpack-4.2.1.gem
cf7dbb0b5d7a9ccb9be1870be97e5ec319e3ee0f5dc766e62c20fafe92c02bd5 actionview-4.2.1.gem
33cee3d50dbfacd105766be1f5885dfa614deb8a18c45a3a398f294457c8bd63 activejob-4.2.1.gem
c55157de170de2c10ad2755c3fa434e7adcbe34af2526b4cf20b63feb5f8169b activemodel-4.2.1.gem
5febff6cb42c0fb94bb7708ad7df7f9ef6d365a27ef35c239674d651013c6cf2 activerecord-4.2.1.gem
36742443adbc7b4648b8674d119ac9dc446c3a555ce73a5a28b1fa029e8adad4 activesupport-4.2.1.gem
6b5f7d3a4a9eb2f181bab4a657315dbe08d0be218eae6017bef8a45dede211cb rails-4.2.1.gem
a01ce5513806d712cca8ed60429493d18093eff680201e2e288602c1405e2e8b railties-4.2.1.gem

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


2015/03/19 17:02:06 by rafaelfranca

×

This week in Rails: RC releases, summer opportunities, turbo partials and more!

Hi all! o/

Here is Washington bringing you this week's news from our favorite framework. I hope you have made it to Friday the 13th without any major hiccups (I can't say the same about my internet provider). Either way, it's time to grab a drink, wind down and read on!

Featured

4.2.1.rc4 and 4.1.10.rc4 have been released

Give them a try on your projects to help make the next release as rock solid as possible. Many regressions have already been fixed and the final release should be out on March 17.

This week's Rails contributors

Couple more developers made their first commit into Rails this week. Take a moment to review the open issues, perhaps you will find something related to your day job, manage to fix it and have your first patch in Rails!

Summer Opportunities

Google Summer of Code 2015

It's that time of the year again! As reported last week, we have been selected to participate in this year's Google Summer of Code program. This week, a few more exciting ideas have landed on our project page!

Applications will open next week, so please help spread the word!

Rails Girls Summer of Code

Speaking of summer, Rails Girls Summer of Code have just opened their applications today. If your company can afford it, consider becoming a sponsor!

New Stuff

Turbolinks partial replacement

Mostly inspired by shopify/turbograft turbolinks now also supports partial replacement. Checkout the PR with docs as well for usage details.

Improved

All Rails tests run in random order

As of this week Rails is giving another try on running tests in random order!!! You should probably try the same on all your projects for more reliable test results.

Fixed

Rails 5 will need Ruby 2.2.1 or higher

Apparently Ruby 2.2.0 kwargs were still not that stable. A related issue caused a segfault error on ActionPack tests. So Rails 5 will require at least Ruby 2.2.1.

Fix rollback of frozen records

In case your project upgrade to Rails 4.2.0 raised any Can't modify frozen hash errors, checkout the latest release candidate. Chances are it will be fixed in Rails 4.2.1.

Wrapping up

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/03/14 01:38:05 by huoxito

×

[ANN] Rails 4.2.1.rc4 and 4.1.10.rc4 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.1.rc4 and 4.1.10.rc4 have been released.

There were found some regressions in the last release candidates so, following release process we are
releasing new release candidates.

If no regressions are found expect the final release this Tuesday, on March 17, 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.9

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.0

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-256

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

Here are the checksums for 4.1.10.rc4:


$ shasum -a 256 *4.1.10.rc4*

93f9bccd7920d41af334bd41f908d4d01d036ee661530b1d7006087e649bff4e actionmailer-4.1.10.rc4.gem
d614facc52b04032bb6d5a126c157250a8538928fc44fa7d5939ffe1c20abe41 actionpack-4.1.10.rc4.gem
481251461e4b323007a1e3672b136c9f69925f00efc658b1ce5bf3c42ee77151 actionview-4.1.10.rc4.gem
da5d4b4d640dbb8c114f3cb908883efe8873ada149860c2e54f88e53e8a231bc activemodel-4.1.10.rc4.gem
e3abf43e7ab7e3d48f68dd043c01603d8017865595276203f909dc62c5503ad2 activerecord-4.1.10.rc4.gem
fff8f641190860b4d22b2197f186a280574c7eaba3f1e57e0289d4114a3ef54c activesupport-4.1.10.rc4.gem
178baf8604ad8212cb76c6e36052031de4ed2fc03d9f63e470735c482e1164bd rails-4.1.10.rc4.gem
8fe2da153ab8a4954a001d8b646dc4c441f3b4e275e5c9f1de124d180aace94d railties-4.1.10.rc4.gem

Here are the checksums for 4.2.1.rc4:


$ shasum -a 256 *4.2.1.rc4*

5ab74d4319c41f4e0967d9b1f675cbcb98cae72f7ab5ef2c07c321092c66a708 actionmailer-4.2.1.rc4.gem
09933d78c9ed055d6fea82ee2557910cc0090efab3b7f4291cb2ca32bed6a907 actionpack-4.2.1.rc4.gem
7e56026b4822c1ab614b867e8304282464cb967150915eee52ae1bb891dc9306 actionview-4.2.1.rc4.gem
f8a4e712fb0960979147d051e15693b9e2c49b0527f2b88d0af26c577a038843 activejob-4.2.1.rc4.gem
79a587ecf7b10a9e7b3ad3aa15a8d6a4f934f118f554372aa755100ccafd7b06 activemodel-4.2.1.rc4.gem
19815873691a559d5a8142110dd7a1ad9519c9e40e609adc2cbea62c514fcb49 activerecord-4.2.1.rc4.gem
d62066327e4a7ecddfc8b6f43a996dbdc2de27eade12370ad16e5f58797ba9a8 activesupport-4.2.1.rc4.gem
67b780da327c1ff8efee6e6d41e1fd735e4fa8734bc34ae450bb587db34ff8ad rails-4.2.1.rc4.gem
a0ab1d80c7cfaed985a9704b874df28fbc677fe2ab6041a2e2f77a6daeb4b299 railties-4.2.1.rc4.gem

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


2015/03/12 21:41:06 by rafaelfranca

×

This week in Rails: 50,000 commits, GSoC opportunity and more!

Ahoy there, rapscallion.

We're just about to depart for our weekly voyage on the sea of Rails news - beware the great snark!

Captain Kasper abides seas and appeases gods in hopes we make it ashore.

Come aboard and let's cast away.

Featured

Rails crossed 50,000 commits

Our backs are all red from the pats given when news broke of Rails having more than 50,000 commits.

Adding to that chalupa 42 chummy contributors crossed the web and helped out.

10+ Years of Rails with DHH

Listen in as David takes a trip down memory lane. Hear why he made Rails and get some stories on the early days of Rails contributing. He also has some thoughts about money and open source. It might not be such a good thing to get paid to work on open source, after all.

Rails & Google Summer of Code 2015

Speaking of being paid for open source, Rails will be part of this year's GSoC. I was a student two years ago and wouldn't be here without it.

I highly recommend doing your research. Submit an honest proposal and you just might make it.

Seagulls of the Sea

Damn Winged Creatures in my Newsletter

There we were. Having a nice day on the deck and a seagull wants to join in on the fun of staring at peaceful waters. Not on my watch.

waves broom

Return to the sea, beast!

New Stuff

Added restart rake task

Rails 5 brings a restart Dr. Frankenstein would be envious of. The new rake restart command will knock your app out cold and zap it back to life.

Enumerable#without

We also got a new Enumerable method to quickly rid of us stuff harmful to humans: [:whooping_cough, :vaccine, :measles].without(:vaccine).

Finally, we can sleep easy.

Wrapping up

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/03/07 00:04:54 by kaspth

×

Google Summer of Code 2015

We're happy to announce that Ruby on Rails will once again be part of Google's Summer of Code
(GSoC) in 2015. The GSoC is a global program where students can contribute to open source projects
and get paid while doing so. Every project has at least one community member that will act
as mentor for the duration of the program. The only requirements for students applying are:


  • Being at least 18 years old.

  • Being enlisted as a part or full-time college student.

Some of the work done in the past years includes the web-console shipped with Rails 4.2 and
RubyBench.org, a long running suite of Ruby benchmarks. You can see the
full list of projects from previous years here: 2013, 2014.

We have started writing down a list of ideas for this year, you can find it in the Rails GSoC
Wiki
. This summer we want to focus on fixing
existing problems instead of adding new user facing features. If you are interested in
getting involved please join our mailing list and let us know what you'd like to
work on.

Student applications can be submitted starting March 16 and the deadline is March 27. If you're
wondering what's involved in becoming a GSoC student then the Google Student
Guide
has all the details on what's expected and what
you will gain from taking part in the program.

What if you're not a student? You can still help out by discussing ideas on the mailing list,
and if have previous experience contributing to Rails and are willing to make a strong commitment to
help out the next generation of developers, you can apply to be a
mentor
.

Useful links:


2015/03/04 20:43:00 by febuiles

×

[ANN] Rails 4.2.1.rc3 and 4.1.10.rc3 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.1.rc3 and 4.1.10.rc3 have been released.

There were found some regressions in the last release candidates so, following release process we are
releasing new release candidates.

If no regressions are found expect the final release this Thursday, on March 5, 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.9

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.0

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-256

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

Here are the checksums for 4.1.10.rc3:


$ shasum -a 256 *4.1.10.rc3*

3fdef2245e3d1cbd23403e319e90504de5a6d9c1d3882520555d5474888e64e8 actionmailer-4.1.10.rc3.gem
b6ee8ce93aeb4e1c3698b5d181997a6cfd903df4ee5ad4ff006ba1e8e4f9cbeb actionpack-4.1.10.rc3.gem
855a02aa85d9df389ee401d9374ba1b6de97302bfa5b16cc3461b2068f2bac8c actionview-4.1.10.rc3.gem
1f255ba5894e9c4ba62ff1362eefb5d4f69341e1b6633f34f5a74f3e5f50abe7 activemodel-4.1.10.rc3.gem
ae172a7ad49fe1aa007f99d33c9365f4027f7460aa20b3f2c4e699a029894e9f activerecord-4.1.10.rc3.gem
efc14fb6fb046314e770f39702cebae5108abfe8a2f972baf503354b4d8962f6 activesupport-4.1.10.rc3.gem
6958130cadf8306732bd0ef09a49f689c85e8f675aa77392c2bff605dc6fe795 rails-4.1.10.rc3.gem
056ae92c2c280c30683bff33840b580dd95a4f6d6a76d760f82dc48d84a39862 railties-4.1.10.rc3.gem

Here are the checksums for 4.2.1.rc3:


$ shasum -a 256 *4.2.1.rc3*

7290338a93cb8d1552aca33b09a8bc00e7774f0110fc1e28af0b495cbd393f24 actionmailer-4.2.1.rc3.gem
9838985eb38550060d4220a9015ca983df1c87c8d059f8943c52db721f2fb7d3 actionpack-4.2.1.rc3.gem
a9af6c312c869ddae79a220c5179d0d80f4fab397115976287a5877d2f80dea2 actionview-4.2.1.rc3.gem
922c47a84ffb1bfde8bc2e3fb18f2e19bb61c8326428c31c09be56296ce6a63b activejob-4.2.1.rc3.gem
1183c5e4f8c2d608b1d7b774a1720c7595359356c77b495880acf79d22ae0865 activemodel-4.2.1.rc3.gem
7976ea67cd5f7193247751bb6300990d3c5ba9eb74c5ea0c4b382e776a23889e activerecord-4.2.1.rc3.gem
69704869beccae0694ba5f1e9179eaaa60b99b19adc9a48e890fe1b573894a82 activesupport-4.2.1.rc3.gem
90043b5ce4c1191e62a0c5b6bc4580553a540d7e6d18c7975de180fe8af61462 rails-4.2.1.rc3.gem
a72254f18ab76fca24f3a478779aa34f41a5bf89f71a8fe16f1945f991f0b10f railties-4.2.1.rc3.gem

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


2015/03/02 21:41:06 by rafaelfranca

×

This week in Rails

Another week went by and here we are again, this is Greg with the latest news from the Rails community.

Featured

This Week's Contributors

36 amazing people helped to make Rails even better this week! Thanks everyone!

Interview with Carlos Antonio and Rafael França

Interview with Rails Core team members about early days of their Rails contribution, Rails team, Brazil Rails community, their day to day tools of choice and workflow, and how everyone can help out with Rails.

New Stuff

Default belongs_to validation

belongs_to relations will now trigger a validation error by default if the association is not present.
If you wish, you can turn this off with the optional: true option per association.

Move the validate! method to ActiveModel::Validations

validate! was part of Active Record, but with this commit you can use it on any Active Model object!

Allow limit option for MySQL bigint primary keys

From now on, you can set a limit for your bigint type primary keys in MySQL.

Improved

Faster template partial caching

Collections automatically use a read_multi for partials starting with a cache call from now on, which makes them faster.

Fixed

Fixed ActiveModel.model_name.to_json

Previously, calling User.model_name.to_json would result in an infinite recursion, because .model_name inherited .as_json from Object.
This commit delegates as_json to the correct handler to fix that.

Fixed mysql's schema.rb dumper

MySQL doesn't have a boolean datatype, it uses a tinyint with a limit option, so if we dumped the schema from MySQL we couldn't load it to Postgres since limit is invalid for Postgres booleans. This patch fixes that by not adding the limit to schema.rb.

Deprecated

skip_action_callback is deprecated

In future skip_before_action, skip_after_action and skip_around_action will raise an ArgumentError if the callback doesn't exist, so using skip_action_callback, which calls all three methods will probably fail, therefore it became deprecated.

One More Thing™

Richard Schneeman is a Rails Committer!

Please welcome our newest Rails Committer @schneems!

Wrapping up

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/02/28 01:56:33 by gregmolnar

×

[ANN] Rails 4.2.1.rc2 and 4.1.10.rc2 have been released!

Hi everyone,

I am happy to announce that Rails 4.2.1.rc2 and 4.1.10.rc2 have been released.

There were found some regressions in the last release candidates so, following release process we are
releasing new release candidates.

If no regressions are found expect the final release this Monday, on March 2, 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.9

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.0

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.10.rc2:


$ shasum *4.1.10.rc2*

2ac66bc18099e97e91433dd2a16610840adbe229 actionmailer-4.1.10.rc2.gem
7af1a70d5436936df7602ce25b8607dd657d26fd actionpack-4.1.10.rc2.gem
25f87be1c36551583c5bdc3034731ab9d327e650 actionview-4.1.10.rc2.gem
61eddccaa119592a8fa3424e33af26f3c52afd87 activemodel-4.1.10.rc2.gem
30bd5d356e704f9122f51d0503a3d57bd4b7c456 activerecord-4.1.10.rc2.gem
1da6fd1c9f6a5bebf743ddbc13d25c54293baf5a activesupport-4.1.10.rc2.gem
7c42be6e6a7f059dcad390f0d690aff842138870 rails-4.1.10.rc2.gem
3f036bc1450f4e784ee0ce8118f057f68e56422d railties-4.1.10.rc2.gem

Here are the checksums for 4.2.1.rc2:


$ shasum *4.2.1.rc2*

af8d52587a348ea70e9b6a751207a9a6aa4044f3 actionmailer-4.2.1.rc2.gem
ab218bb9396357b48027e1512544cfb3188ec3bd actionpack-4.2.1.rc2.gem
5315fd389885775fc03863146704aab37333e0c8 actionview-4.2.1.rc2.gem
15c11c2aff82876241a3a9ff90b00dfb6d834fa2 activejob-4.2.1.rc2.gem
f700c318378a8e3292b23c9495e68bc49f9a1ef1 activemodel-4.2.1.rc2.gem
dc91f9e52b8fd9ab0fac294f13ab7f9425cb0a67 activerecord-4.2.1.rc2.gem
ab95e792e93392605985469b3ec0546d3917c63c activesupport-4.2.1.rc2.gem
af242d941255666ce08a51813898fe8c29bb613d rails-4.2.1.rc2.gem
c0e72712484fdc821d6a0f08504318e075feba83 railties-4.2.1.rc2.gem

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


2015/02/25 22:40:06 by rafaelfranca

×

This week in Rails: http_cache_forever, AR::Base.suppress and more!

My Valentine’s Day letter to Ruby on Rails:

“Dear Rails, remember the first time we met?

You were just 1.2, and I was in an unhealthy relationship with Perl and PHP.

I saw you in the library and I immediately fell in love.

For seven years, you made my code more readable and my skills stronger.

You are the most beautiful framework and always will be.

I cannot wait to see you turn 5.0.” – Claudio

Featured

This Week's Contributors

Apparently I'm not the only one in love with Ruby on Rails. 36 programmers contributed to Rails this week, 10 of them for the first time. Keep loving!

New Stuff

Add http_cache_forever to ActionController

The new method is perfect to cache results that are meant to never expire, such as static pages.

Add ActiveRecord::Type.register

You can now reference with a symbol any database type that is specific to your adapter, such as:

ActiveRecord::Type.register(:money, MyMoneyType)

Add ActiveRecord::Base.suppress

Wrapping a block with suppress will prevent any save operation from hitting the database. Check the PR for a real-world example.

Improved

Add :time option to ActiveRecord::Base.touch

You can now touch an ActiveRecord instance with a different time than the current time.

Removed

Removed RecordTagHelper

The helpers div_for and content_tag_for will be gone in Rails 5. Grab the record_tag_helper gem if you still need them!

Removed ActiveModel::Errors getters/setters

If you ever used person.errors.get(:name) or person.errors[:name] to read an error message, you should now switch to person.errors.messages[:name]. add_on_empty and add_on_blank are gone too.

Update: you should be using person.errors[:name] after all! Use person.errors.add(:name, ...) to append.

Wrapping up

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/02/20 23:37:56 by claudiob