0

I'm building an engine that needs to work with Active Admin. The idea is engine users include their own Active Admin reference in the Gemfile. So, for development purposes, I need to include active admin as development dependency on my gem. I tried to add this on my gem.gemspec:

s.add_development_dependency "activeadmin", github: 'gregbell/active_admin'

But occurs the following error:

There was a Gem::Requirement::BadRequirementError while loading admin_invitable.gemspec: Illformed requirement [{:github=>"gregbell/active_admin"}]

So, the question is: how can I do this? I mean, how can I specify the github option?

Leantraxxx
  • 4,506
  • 3
  • 38
  • 56

1 Answers1

0

Sad, but it's NOT possible to refer github in your gemspec file.

As you are doing it just for development sake, you need to remove this dependency from your gemspec and add it into your Gemfile.

gem 'actveadmin', github: 'gregbell/active_admin'
RAJ
  • 9,697
  • 1
  • 33
  • 63