---
title: "Ruby 2.6 Adds String#split with Block"
publication: "Ruby Weekly"
issue: 408
published_at: "2018-07-19"
canonical_url: "https://rubyweekly.com/issues/408"
---

This week's Ruby news, issue 408       

#408 — July 19, 2018 

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

Ruby Weekly  

[Don't Step on a Rake, Use Rake::DSL](https://supergood.software/dont-step-on-a-rake/) — A look at how Rake, Ruby’s general purpose make-like task runner, operates and how to define tasks outside of the top-level scope using `Rake::DSL`. 

Jared Norman   

[TruffleRuby Now Easily Installable via RVM, rbenv, and ruby-install](https://github.com/oracle/truffleruby/blob/master/doc/user/ruby-managers.md#installing-truffleruby-with-rvm-ruby-build-or-ruby-install) — TruffleRuby is an alternative Ruby implementation built at Oracle Labs. Just tried `rvm get head` & `rvm install truffleruby` on my Mac and it worked a treat. 

Oracle   [![\](https://copm.s3.amazonaws.com/dfa1df14.png)](https://www.digitalocean.com/currents/june-2018/?utm_source=paid_newsletter+ruby+weekly&utm_medium=display&utm_campaign=2018_Brand&utm_content=7-19-18+ruby+weekly+cooperpress) 

[Know What’s Going On in Your Industry with DigitalOcean’s Currents](https://www.digitalocean.com/currents/june-2018/?utm_source=paid_newsletter+ruby+weekly&utm_medium=display&utm_campaign=2018_Brand&utm_content=7-19-18+ruby+weekly+cooperpress) — Not sure what serverless computing is? You’re not alone. Find out more in DigitalOcean’s Currents developer trends report. 

DigitalOcean sponsor   

[Ruby 2.6 Adds String#split with Block](https://blog.bigbinary.com/2018/07/17/ruby-2-6-adds-split-with-block.html) — When a block is supplied to `split`, no array is created or returned, and instead the results are yielded to the block one at a time. 

Taha Husain   

[How to Replace wkhtmltopdf for PDF Generation from Ruby](https://blog.rebased.pl/2018/07/12/wkhtmltopdf-considered-harmful.html) — [wkhtmltopdf](https://wkhtmltopdf.org/) used to be a popular option for rendering HTML to PDF and may well be lurking as a dependency in your own apps, but it’s flawed, says this author, who presents lots of great modern alternatives. 

Krzysztof Zych   

[JavaScript-'Sprinkled' Rails Applications](https://blog.appsignal.com/2018/07/17/javascript-sprinkled-rails-applications.html) — Improve upon fragment caching user-specific content by adding “sprinkles” of JavaScript behavior to your application. 

Jeff Kreeftmeijer  

💻 Jobs  

[Full-stack Ruby on Rails Developer (Remote or New York, NY)](https://www.tanookilabs.com/jobs) — Seeking experienced Rails developers (full-time or contract) to build great products for startups. Remote friendly and sane hours. 

Tanooki Labs   

[Find A Ruby Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-75454) — Vettery specializes in tech roles and is completely free for job seekers. Create your profile to get started. 

Vettery  

📘 Articles & Tutorials  

[The Forwardable Module in Ruby](https://medium.com/@farsi_mehdi/the-forwardable-module-in-ruby-part-i-d83d9063b4f4) — This post had a couple of examples of delegation that I hadn’t seen before. It’s the first in a two-part series, with the [second article](https://medium.com/@farsi_mehdi/the-forwardable-module-in-ruby-part-ii-a8c67eed91ef) covering SingleForwardable. 

Mehdi Farsi   

[Thin and Maintainable Rails Mailers](https://mkdev.me/en/posts/thin-and-maintainable-rails-mailers-how-we-refactored-rails-mailers-at-mkdev) — The addition of parameterized mailers to Rails 5.1 can make your mailer code much cleaner. 

mkdev   

[The Best Way for Busy Teams to Keep Their Dependencies Up-To-Date](https://depfu.com/?utm_source=rubyweekly&utm_campaign=sponsored&utm_content=bestway) — We believe doing small, easy to assess updates regularly is a lot easier than updating everything at once. 

Depfu sponsor   

[Everything You Need to Know About Ruby Operators](http://www.rubyguides.com/2018/07/ruby-operators/) — A comprehensive look at Ruby operators that shows which operators are methods, what unary operators exist, the splat, the ‘shovel’, and more. 

Jesus Castello   

▶[Evented Autonomous Services in Ruby](https://www.youtube.com/watch?v=qgKlu5gFsJM) — This great talk from GORUCO 2018 is much more on the architecture and patterns of evented, autonomous services irrespective of language. 

Scott Belware   

[Running Rails Tests Under CircleCI 2.0 with MariaDB](http://caiustheory.com/running-rails-tests-under-circleci-2.0-with-mariadb/) — Quite niche, but if you need to do it.. 

Caius Durling   

[How to Write a Case Expression in Ruby](https://mixandgo.com/learn/how-to-write-a-case-expression-in-ruby) — The `case` statement seems simple on the surface, but understanding exactly what it does can bring many options to your code. 

Cezar Halmagean   

[Building a Batch Image Uploader in Elixir, Phoenix, Ruby and Iron](https://blog.manifold.co/building-a-batch-image-uploader-in-elixir-phoenix-ruby-and-iron-b05946ebe053?utm_campaign=ruby_weekly&utm_source=newsletter&utm_medium=sponsorship&utm_content=July19) 

Manifold sponsor   

▶[Your First Contribution to Rails (and Beyond)](https://www.youtube.com/watch?v=SUD9rj0rRxg) — How to find an interesting issue to work on, set up your environment, and ask for help when you get stuck. 

Dinah Shi  

🔧 Code & Tools  

[SmartEnum: Enums for Ruby That Aren't Just Symbols](https://github.com/tonsser/smart_enum) — With this, your enums can have associated values and methods. 

Tonsser   

[Pragmatic Segmenter: Rule-Based Sentence Boundary Detection](https://github.com/diasks2/pragmatic_segmenter) — Supports many languages out of the box. [Live demo here.](https://www.tm-town.com/natural-language-processing) 

Kevin Dias   

[XmlMatchers: Validate Your XML API Responses against XSD XML Schemas](https://github.com/cored/xml_matchers) 

Rafael George   

[Easy GraphQL Caching with GraphQL Cache](https://stackshare.io/posts/introducing-graphql-cache) — Caching is a gap in the current Ruby/Rails GraphQL landscape, so StackShare fixed the gap. [GitHub repo.](https://github.com/stackshareio/graphql-cache) 

StackShare   

[InSpec: An Auditing and Testing Framework for Infrastructure](https://github.com/inspec/inspec) — Write tests to check firewall rules, installed packages, etc, and run locally or remotely. Targets most production OS including Windows. 

InSpec         

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
