---
title: "New Constant Naming Rules Coming to Ruby 2.6+"
publication: "Ruby Weekly"
issue: 398
published_at: "2018-05-10"
canonical_url: "https://rubyweekly.com/issues/398"
---

This week's Ruby news, issue 398       

#398 — May 10, 2018 

[Read on the Web](https://rubyweekly.com/issues/398)   

Ruby Weekly   

[New Constant Naming Rules Coming to Ruby 2.6+](https://medium.com/square-corner-blog/new-class-naming-rules-in-ruby-bb3b45150c37) — Historically, you’ve needed to use an upper case ASCII capital letter as the first character of constant names (including classes and modules). In Ruby 2.6, you get 1000+ options [thanks to this patch.](https://github.com/ruby/ruby/commit/f852af0e59899157ef695edccbe86d51fc04d23b) _(Note: It’s not supported in Ruby 2.6 preview 1, but should appear in the next preview.)_ 

Shannon Skipper   

[Caching in Rails 5.2](https://medium.com/rubyinside/https-medium-com-wintermeyer-caching-in-ruby-on-rails-5-2-d72e1ddf848c) — A preview chapter from the author’s new book that runs through the various ways to cache in Rails, including a reach back to page caching. 

Stefan Wintermeyer   [![\](https://copm.s3.amazonaws.com/1d03a253.png)](https://www.manifold.co/?utm_campaign=ruby_weekly&utm_source=newsletter&utm_medium=sponsorship&utm_content=May10+) 

[Manifold Is the Marketplace for Independent Developer Services](https://www.manifold.co/?utm_campaign=ruby_weekly&utm_source=newsletter&utm_medium=sponsorship&utm_content=May10+) — Find, organize, and connect the best cloud services for your application. 

Manifold sponsor   

▶[Exploding Rails](https://www.youtube.com/watch?v=04Kq_9scT1E) — A specially recorded 40 minute video based upon a talk given by Ryan about breaking apart Rails apps into more easily managed chunks (and, importantly, _why_ to do so). 

Ryan Bigg   

[First Steps with Sinatra as a Rails Developer](https://www.netguru.co/codestories/first-steps-sinatra-1) — A two part guide ([part 2 here](https://www.netguru.co/codestories/first-steps-with-sinatra-part-2)) on how to work with the Sinatra library and add extra features. 

Grzegorz Unijewski   

[To Sleep, Perchance to Dream: Rails Ruby Bench and Sleepy GC](http://engineering.appfolio.com/appfolio-engineering/2018/5/4/mf0io5nsvdcbp5kzjvkfczsfdyshaf) — A more accessible writeup of [an issue](https://bugs.ruby-lang.org/issues/14723) we linked last week about dealing with improving garbage collection during idle cycles instead of waiting for one big GC. 

Noah Gibbs   

▶[How to Migrate from Paperclip to Rails ActiveStorage](https://gorails.com/episodes/migrate-from-paperclip-to-rails-active-storage) — The Paperclip gem has been deprecated and ActiveStorage is the newest approach. Here’s how to get from the old to the new. Prefer a writeup? [Try this](https://kyleke.es/posts/2018/04/migrating-from-paperclip-to-activestorage). 

Go Rails   

[Passenger 5.3.0 Released](https://blog.phusion.nl/2018/05/09/passenger-5-3-0/) — The popular app server now uses Nginx 1.14, has Ubuntu 18.04 packages, and an improved error page. 

Phusion   

[git-vanity-sha: Find 'Vanity' Hex Prefixes for Your Git Commit SHAs](https://github.com/mattbaker/git-vanity-sha) — This is just a bit of fun but a neat use for a quick Ruby script. 

Matt Baker  

💻 Jobs  

[Lead Full Stack Engineer](https://www.therealreal.com/careers/4CE9F124E3) — We're a fashion startup growing at break-neck speed looking for a Ruby and Elixir star to lead our stellar dev team. 

TheRealReal   

[Ruby Developer for Cloud Security Service](https://jobs.cisco.com/jobs/ProjectDetail/Ruby-Rails-Security-Developer/1222456) — Looking for a talented Mid/Senior Ruby developer with strong web security knowledge and experience. 

Cisco Systems   

[Ruby Expert? Sign Up for Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-24219) — Top companies use Vettery to find the best tech talent. Create your profile to get started. 

Vettery  

📘 Tutorials  

[idiosyncratic_eval: A Look at All the Evals](https://idiosyncratic-ruby.com/63-instance-eval.html) — eval, class_eval, instance_eval all act differently depending on the current context. 

Idiosyncratic Ruby   

[Rails Frontend Testing with JavaScript Insights](https://blog.codeship.com/rails-frontend-testing/) — This post mentions the new system tests in Rails 5 and covers some approaches to avoiding time-killing gotchas with Turbolinks and Spring. 

Daniel P. Clark   

[Serverless Ruby with Docker and Apache OpenWhisk](https://medium.com/openwhisk/serverless-ruby-with-docker-and-apache-openwhisk-d64bc071e23a) — The example uses a Dockerized Sinatra application deployed to IBM Cloud’s OpenWhisk-backed Cloud Functions to execute Docker actions. 

Justin Halsall   

[Free eBook: Rails Testing Handbook](https://semaphoreci.com/ebooks/rails-testing-handbook?utm_source=rubyweekly&utm_medium=email&utm_campaign=rubyweekly-rails-testing-handbook-20180510) — Tired of fragile code? Read this hands-on book and learn how to build better Rails apps with confidence. 

Semaphore sponsor   

[Sending Email with Amazon SES from Rails on EC2](https://www.statusok.com/email-amazon-ses-rails-ec2) 

Dan Croak   

[How to Increase Reliability of Background Job Processing with Sidekiq Pro's 'super_fetch'](https://blog.bigbinary.com/2018/05/08/increase-reliability-of-background-job-processing-using-super_fetch-of-sidekiq-pro.html) 

Vishal Telangre   

[Rails 5.2 Sets Ruby Version in Gemfile & Adds .ruby-version File by Default](https://blog.bigbinary.com/2018/05/07/rails-5_2-adds-ruby-version-file-and-ruby-version-to-gemfile-by-default.html) 

Mohit Natoo  

🎥 Videos & Talks  

[Unix-Style Rails Development with Windows 10](https://www.driftingruby.com/episodes/ruby-on-rails-development-with-microsoft-windows-10) — Demonstrates installing and running Ruby from bash running on the Windows Subsystem for Linux. 

Drifting Ruby   

[Let's Build a Dribbble Clone with Rails](https://web-crunch.com/lets-build-dribbble-clone-with-ruby-on-rails/) — About three hours of video in all. 

Andy Leverenz   

[My Rails Workflow, Productivity Tips and Tools](https://pawelurbanek.com/rails-workflow-tools) — It’s always a learning experience to see how another developer works. Pawel combines free and paid tools, zsh plugins, and shell scripts in a very interesting workflow. 

Paweł Urbanek  

🔧 Code & Tools  

[One-Click Install and Deploy Ruby on Rails in 55 Seconds](https://www.digitalocean.com/lp/hosting/ruby-on-rails/?utm_source=paid_newsletter+ruby+weekly&utm_medium=display&utm_campaign=2018_Brand&utm_content=5-10-2018+ruby+weekly+cooperpress) 

DigitalOcean sponsor   

[Shrine: A File Attachment Toolkit for Ruby Applications](http://shrinerb.com/) — Shrine offers a plugin framework, integration with popular ORMs, flexible processing of images, resumable uploads, and more. 

Shrine   

[Asciidoctor: A Fast AsciiDoc Text Processor and Publishing Toolchain](https://github.com/asciidoctor/asciidoctor) — Convert AsciiDoc content to HTML5, DocBook and other formats. 

Asciidoctor   

[Rodauth: Auth and Account Management Framework for Rack Apps](https://github.com/jeremyevans/rodauth) 

Jeremy Evans         

Curated by [Cooperpress](https://cooperpress.com/) 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
