J
James Britt
I'm trying to write a gemspec file. My code depends on Austin Ziegler's
Mime::Types library. I want to call to add_dependency, but I do not
know what to pass as the first argument.
In my code, I call
require 'mime/types'
So, in my gemspec file, would it be
add_dependency( 'mime/types', "> 1.12" )
Or do need to use a more abstract package name:
add_dependency( 'MIME::Types', "> 1.12" )
or maybe
add_dependency( 'mime-types', "> 1.12" )
There's a gem for the MIME::Types lib; can one use add_dependency even
when there is no gem for the dependency?
In general, how does one know how to refer to the dependency?
Thanks!
James
Mime::Types library. I want to call to add_dependency, but I do not
know what to pass as the first argument.
In my code, I call
require 'mime/types'
So, in my gemspec file, would it be
add_dependency( 'mime/types', "> 1.12" )
Or do need to use a more abstract package name:
add_dependency( 'MIME::Types', "> 1.12" )
or maybe
add_dependency( 'mime-types', "> 1.12" )
There's a gem for the MIME::Types lib; can one use add_dependency even
when there is no gem for the dependency?
In general, how does one know how to refer to the dependency?
Thanks!
James