English 中文(简体)
什么是最佳办法在麦克风 app中dle一em?
原标题:What s the best way to bundle a gem inside a Mac app?

我继承了一条小小小的切片——C公用事业,它作为 wrap子的包装(显然在申请中被列为资源)。

但是,助手的手脚印需要json gem。 如何以最佳方式将 g(和 depend)纳入 app?

如果我能够检查申请是否安装了灰色,然后安装,但我认为也许会有一个比较棘手的解决办法。

最佳回答

第一步是检查 j鱼是否具有任何依赖性:

$ gem dependency json

我所安装的版本没有附属设施,因此,你需要把em印成一片。

$ cd /my/project/resources
$ gem unpack json

然后,为了要求,你可以使用以下线:

require File.join(File.dirname(__FILE__),  json-VERSION , lib , json )

用 g版取代VERSION。

问题回答

暂无回答




相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签