Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7030763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:42:52+00:00 2026-05-28T00:42:52+00:00

I have created several shared example groups for Rspec which I would like to

  • 0

I have created several shared example groups for Rspec which I would like to reuse in other applications. The best approach to achieving this seems to be to package these into a gem. However I can’t seem to find a good guide to get me started. There are several different methods to accomplish this, and all of the guides I’ve read look like they might be outdated. Can anybody point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:42:53+00:00Added an answer on May 28, 2026 at 12:42 am

    Necessary Knowledge

    Gems are pretty simple, but there was a huge void in terms of documentation for a really long time. Fortunately that isn’t the case anymore.

    They’re ultimately nothing more than a .gemspec file and an understanding of paths and dependencies (which you only need to know about if you depend on other gems), though people do expect you to follow certain conventions.

    The best walkthrough I’ve seen is in the guides.

    For the conventions, the guides have a nice list here and the packaging standard is really great as well.

    Further Thoughts

    These days, when I want to make a gem, I start off with Bundler (which I prefer over hoe/new gem/jeweler/etc…). This Railscast covers how to do that. Now, Bundler will assume you know all sorts of stuff (git, bundler, rake) which I do, so it doesn’t bug me anymore, but once upon a time it was too much.

    The simple fact of the matter is you don’t need Bundler (in the future, if you have dependencies and want to maintain your gem, then it will make your life easier, but for now you don’t need it). And you don’t need git or any version control if you don’t understand it yet (put it on your tolearn list, though). And you don’t need rake (its just a CLI to common tasks, but if you don’t understand all the crap it’s doing, you don’t need it, you can test directly with the rspec binary, you can package your gems directly with the gem binary, you can manage your .gemspec yourself rather than having Rake generate it for you, etc).

    The trick is to separate out what all these tools do for you from what you actually want them to do for you. That can be tricky when you don’t know how they work / what they do, since they want to do everything. I was able to get past this ignorance by using a really simple tool called gem this which was a bit dated the last time I used it, but is ultimately about as simple as you can get. Here‘s a great video by it’s author.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a communication library which is linked statically into several different applications.
I have created a file argument.pl which takes several arguments first of which should
I have an ItemRenderer that is shared by several applications (inside a DataGrid), and
I have created several UI elements in the viewDidLoad method. I want to change
Our business deals with houses and over the years we have created several business
We have an ADP project created several years ago using Access 2000. This project
I have created a Python module that creates and populates several SQLite tables. Now,
I'm trying to insert several newly created items to the database. I have a
I have several buttons on my app that are being created dynamically. They are
I have a listview with several items that are created dynamically, each has two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.