From: Josh Cheek Date: 2013-04-05T21:06:25+09:00 Subject: Re: Role of bundler in creating and installing a gem --089e0115fd246f3b8404d99bead9 Content-Type: text/plain; charset=ISO-8859-1 The only things I put in the Gemfile would be if they were on Github and not rubygems. Here is an example of a Gemfile and gemspec where you can see how I do it. https://github.com/JoshCheek/mountain_berry_fields/blob/bf989a7de9aa837259cc1288945b1d48a72833e3/Gemfile https://github.com/JoshCheek/mountain_berry_fields/blob/bf989a7de9aa837259cc1288945b1d48a72833e3/mountain_berry_fields.gemspec -Josh On Fri, Apr 5, 2013 at 6:54 AM, Jon Cairns wrote: > Josh Cheek wrote in post #1104528: > > I'm pretty sure `bundle new` isn't a thing. If it is for you, then maybe > > you have an older version. > > Urgh, my bad. I meant `bundle gem mygem`! > > > The gemspec is what tells it to look in mygem.gemspec for the > > dependencies > > list. > > So does that mean that you don't add gems to the Gemfile unless you only > want them for development? And that any dependencies **have** to go in > the gemspec? > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > > --089e0115fd246f3b8404d99bead9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The only things I put in the Gemfile would be if they were= on Github and not rubygems.

Here is an example of= a Gemfile and gemspec where you can see how I do it.

https://github.c= om/JoshCheek/mountain_berry_fields/blob/bf989a7de9aa837259cc1288945b1d48a72= 833e3/Gemfile
https://github.com/JoshCheek/mountain_berry_fields/blob/bf989a7de9aa8= 37259cc1288945b1d48a72833e3/mountain_berry_fields.gemspec

-Josh


On Fri, Apr 5, 2013 at 6:54 AM, J= on Cairns <lists@ruby-forum.com> wrote:
Josh Cheek wrote in post #1104528:
> I'm pretty sure `bundle new` isn't a thing. = If it is for you, then maybe
> you have an older version.

Urgh, my bad. I meant `bundle gem mygem`!

> The gemspec is what tells it to look in mygem.gemspec for the
> dependencies
> list.

So does that mean that you don't add gems to the Gemfile unless y= ou only
want them for development? And that any dependencies **have** to go in
the gemspec?

Thanks

--089e0115fd246f3b8404d99bead9--