草庐IT

Notepad ++ 安装与配置

全部标签

使用时 Rubygems 2.0.14 不是线程安全的 bundle 程序安装消息 - RUBYGEMS VERSION : 2. 4.5.1

运行bundle安装时,我收到以下消息:Rubygems2.0.14isnotthreadsafe,soyourgemswillbeinstalledoneatatime.UpgradetoRubygems2.1.0orhighertoenableparallelgeminstallation.这很奇怪,因为在我的RubyGems环境中它说我的RubyGems版本是:2.4.5.1(见下文)~/w/Rafftopia❯❯❯gemenvRubyGemsEnvironment:-RUBYGEMSVERSION:2.4.5.1-RUBYVERSION:2.2.5(2016-04-26patc

ruby - 在 eclipse 中配置 gem

我正在尝试在Eclipse中从事流浪者/厨师项目。我对这两种技术都很陌生,对ruby有点生疏。我已经安装了rdt并且有一个带有代码的ruby​​项目。然而,eclipse似乎并不理解gems是必需的。有没有办法让ruby​​gems和eclipse一起玩得很好。我以为我可以将gems添加为库,但这似乎不起作用。 最佳答案 我在让Eclipse识别我安装的gem时遇到了一个非常相似的问题。我使用的是rvm,默认指向ruby​​2.1.0。我正在调试的ruby​​代码在顶部有一个require'mail'。运行或调试脚本时,控制台报错:

ruby-on-rails - 本地 gem 的“bundle 安装”没有解决依赖关系,而 'gem install' 可以

我在目录“/home/enterprise/pkg”中有一个本地gem(enterprise-0.0.1.gem)。它依赖于active_directorygem(v1.5.5),这是在它的enterprise.gemspec文件中指定的,如下所示:-gem.add_dependency("active_directory")在我的应用程序的Gemfile中,我添加了以下行:-gem'enterprise','0.0.1',path=>'/home/enterprise/pkg'当我做的时候bundleinstall在我的应用程序的源目录中,只安装了企业gem。因此,我遇到了引用act

ruby-on-rails - 为 Ruby gem 创建安装生成器

我是构建Rubygems的新手,正在尝试我的第一个。我正在为我的gem编写一个生成器,它将在我的Rails应用程序中生成一个迁移。我希望将gem简单地包含在Rails应用程序中,运行“railsgmygem:install”以创建迁移,然后运行“rakedb:migrate”以完成所有操作。我已经找到了几种不同的方法来完成类似的任务,但到目前为止没有任何效果。我似乎无法让Rails应用程序找到生成器。我尝试过的最新指南位于此处:http://www.railsdispatch.com/posts/how-rails-3-enables-more-choices-part-1.这是我当前

ruby - 在我的 Mac 上安装 ruby​​ gem json 时遇到问题

我在尝试通过ruby​​gems安装json模块时收到此警告。有什么想法吗?Mac-Minipoulh$sudogeminstalljsonPassword:WARNING:File'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/specifications/json-1.2.0.gemspec'doesnotevaluatetoagemspecificationBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errori

ruby - 无法安装任何 gem

我已经使用JavaScript和一些Erlang大约六个月了,最近我没有进行任何Rails编程。今天在我的新电脑上我去安装Rails但出现了这个错误:geminstallrailsWARNING:RubyGems1.2+indexnotfoundfor:http://gems.rubyforge.org/RubyGemswillreverttolegacyindexesdegradingperformance.BulkupdatingGemsourceindexfor:htp://gems.rubyforge.org/ERROR:Whileexecutinggem...(Gem::Re

ruby - 在 Ubuntu 14.04 上使用 RVM 安装 Ruby 2.2.2 时出错

这是什么。我首先做了:rvmgetstablervminstallruby-2.2.2没有交易。它向我展示了以下内容:$rvminstallruby-2.2.2Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:ubuntu/14.04/i386/ruby-2.2.2.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingrequirementsforubunt

ruby - 如何在 github 操作中捆绑安装私有(private) gem

我想通过github操作在gem上运行rspec(称之为priv_gem_a)。priv_gem_a依赖于私有(private)存储库中的另一个gem(称之为priv_gem_b)。但是,由于权限无效,我无法捆绑安装priv_gem_b。错误:Fetchinggemmetadatafromhttps://rubygems.org/..........Fetchinggit@github.com:myorg/priv_gem_bHostkeyverificationfailed.fatal:Couldnotreadfromremoterepository.Pleasemakesureyo

ruby - 如何定义要从模块化 sinatra 应用程序的配置 block 中调用的方法?

我有一个Sinatra应用程序,归结起来,基本上是这样的:classMyApp不幸的是,这不起作用。我得到undefinedmethodread_config_fileforMyApp:Class(NoMethodError)read_config_file中的逻辑非常重要,因此我不想在两者中重复。如何定义可以从我的两个配置block调用的方法?还是我只是以完全错误的方式解决了这个问题? 最佳答案 configureblock似乎是在读取文件时执行的。您只需将方法的定义移到配置block之前,并将其转换为类方法:classMyApp

ruby-on-rails - 报错 - 在 Snow Leopard 上安装 RVM

我正在尝试在我的SnowLeopard10.6.8上安装RVM,方法是:\curl-Lhttps://get.rvm.io|bash-sstable--ruby我得到这个错误:InstallingRubyfromsourceto:/Users/Villa/.rvm/rubies/ruby-2.0.0-p0,thismaytakeawhiledependingonyourcpu(s)...ruby-2.0.0-p0-#downloadingruby-2.0.0-p0,thismaytakeawhiledependingonyourconnection...ruby-2.0.0-p0-#e