Men marvaridni o'rnatishda qaram toshlar qanday o'rnatilganini ko'rdim, lekin buni qanday qilaman?

I a new to ruby, have followed a tutorial to create a gem, and how to use bundler. But I have seen many times when installing a gem that dependant gems are automatically installed ... how do I do that? I have tried bundling my Gemfile with the gem package which did nothing. Have also tried requiring "bundler/setup" in my script, which did not work either. How do I go about this?

1

2 javoblar

Gemspec-ga bog'liqliklarni belgilashingiz to'g'ri. Ham ish vaqti, ham rivojlanish bog'liqligini belgilang.

One word of caution: If you are building a gem and using bundler, your Gemfile should only contain the following

$ cat Gemfile
gemspec

For more info, especially if this is your first time developing a gem you should take a look at yehuda's post on the subject. Also take a look at the docs

Asosiy g'oya shunchaki gemspec tomonidan belgilab qo'yilgan qimmatbaho toshlarni o'rnatadi. Shunday qilib, siz o'zingizning qaramog'ingizni bir joyda saqlaysiz. Bu, shuningdek, bundlerning sizning qaram qimmatbaho toshlar bilan mos kelishini ta'minlash uchun muhim bo'lishi mumkin bo'lgan, qulflangan faylni ishlatmasligini ta'minlaydi.

2
qo'shib qo'ydi
0
qo'shib qo'ydi