Back to articles
Building a Rails Engine #16 --Publishing to RubyGems & Retrospective

Building a Rails Engine #16 --Publishing to RubyGems & Retrospective

via Dev.toSeryl Lns

Publishing to RubyGems & Retrospective From bundle gem to gem push : looking back at 14 articles, 20 components, and the lessons learned building a Rails engine from scratch with TDD. Context This is the final article in the series where we build DataPorter , a mountable Rails engine for data import workflows. In part 14 , we added Dry Run mode -- the last safety net before data touches the database. We started this series with a question: why do we keep rebuilding the same import workflow in every Rails app? Fourteen articles later, we have a published gem that answers it. This article covers the last mile -- publishing to RubyGems -- then steps back to look at what we built, what we learned, and what we would do differently. Publishing the gem The gemspec The interesting parts of the gemspec are not the metadata -- they are the constraints: # data_porter.gemspec Gem :: Specification . new do | spec | spec . name = "data_porter" spec . version = DataPorter :: VERSION spec . required_r

Continue reading on Dev.to

Opens in a new tab

Read Full Article
1 views

Related Articles