BeMathis
BeMathis

Reputation: 194

Ruby Gem or Rails plugin

I am writing a gem that requires rails as a dependency (for using Rails methods like underscore, camelize and others).

Is 'gem' still a gem or is it now something else (Rails Plugin?) since I have rails as a dependency?

Upvotes: 1

Views: 123

Answers (1)

Chris Cherry
Chris Cherry

Reputation: 28574

You don't have to depend on Rails as a whole (in fact if it really is a standalone gem, I would recommend that you do not) you can depend on just the parts of it that provide the functionality you need, in this case you are talking about ActiveSupport.

Upvotes: 3

Related Questions