Installation, Distribution, and Beyond
David Berube

#RubyGems
#Web_developer
#RPM
#CLI
#API
Discover how to enhance your Ruby and Rails projects using Ruby Gems. Practical Ruby Gems, Second Edition is a comprehensive guide written to equip Ruby programmers and web developers with the knowledge and skills to effectively utilize existing Gems - and also create new Gem releases, allowing easy distribution, dependency management, and streamlined integration.
The modernized Second Edition is updated to reflect the latest version of Ruby Gems (7.0.4) and Ruby language (3.2). The author introduces new software tools and systems like Bundler, Docker, and Nix, demonstrating how to integrate them seamlessly with Ruby Gems, as well as a significantly expanded section on how to create your own gems – including practical examples of problems faced in real-world scenarios.
As dependency management creates challenges for Ruby developers, this is the only book of its kind to offer Ruby Gems as an important solution. Explore and embrace the modern Ruby Gems ecosystem and learn best practices for creation, distribution, and integration with other dependency management systems.
What You Will Learn:
• Understand the fundamentals of Ruby Gems as a solution for dependency management
• Install and configure RubyGems for seamless integration into your projects
• Learn how to debug common problems faced with RubyGems.
• Explore advanced topics like distributing gems via RPM and Apt packages, handling native dependencies, and hosting Gem infrastructure.
Who this Book is for:
Ruby programmers as well as web developers who use Rails and wish to extend the functionality of their projects.
Table of Contents
Chapter 1. An Introduction to RubyGems
Chapter 2. Installing Sets of Gems with Bundler
Chapter 3. Managing Rubies and Gemsets with rbenv
Chapter 4. Tool Management with Mise
Chapter 5. RubyGems with Nix
Chapter 6. Using the Gem CLI
Chapter 7. Working with the Bundle CLI
Chapter 8. Developing with the RubyGems API
Chapter 9. Diving into the Bundler API
Chapter 10. Examining Local Gems
Chapter 11. Dockerizing a RubyGems Application
Chapter 12. Creating Your Own Gems
Chapter 13. Distributing a Gem on RubyGems.org
Chapter 14. Hosting with Gemstash
Chapter 15. Serving Gems via HTTP(S)
Chapter 16. Distributing Gems As a System Package
About the Author
David Berube is an experienced software developer, author, and speaker with extensive experience in software development dating back over two decades. He became an early Ruby advocate after writing about the language for Dr. Dobb's Journal. David has worked on various open source projects, including RubyGems itself.
As a technology writer, David's work has been published in over 65 countries, appearing in prominent publications such as Linux Magazine, Dr. Dobb's Journal, ADMIN Magazine, and PHP International Magazine. He has shared his knowledge through college-level teaching and public speaking engagements, covering topics like "MySQL and You" and "Making Money with Open Source Software."
As an entrepreneur, David began freelancing as a software developer in 2001. He was a partner in the tech startup Casting Frontier until its sale in 2020. He is currently the President of Durable Programming, which specializes in helping organizations maintain and modernize enterprise applications. He is based in Manchester, New Hampshire.









