草庐IT

git-osx-installer

全部标签

ruby Gemspec 依赖项 : Is possible have a git branch dependency?

在mygem.gemspec中是否可能有一个git分支依赖项?我在想类似下面的事情:gem.add_runtime_dependency'oauth2',:git=>'git@github.com:lgs/oauth2.git'...但它不起作用。 最佳答案 这是不可能的,而且可能永远不会,因为对于RubyGems来说,允许gem开发人员要求用户安装特定的版本控制系统来访问gem是相当严厉的。Gem应该是独立的,具有最少的依赖项,以便人们可以在尽可能广泛的应用程序中使用它们。如果您想为自己的内部项目执行此操作,我的建议是使用Bund

ruby - 在 OSX 10.9 Maverick 上安装 Nokogiri 时出错?

我将我的OSX(Lion)升级到Mavericks,但我无法为我的项目安装Nokogiri。我已经安装了XCode5.0.1、命令行工具(使用xcode-select--install),并且已经从Homebrew安装了libxml2,但我仍然遇到问题。错误是:Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./Users/ericcamalionte/.rvm/rubies/ruby-1.9.2-p320/bin/rubyextconf.rbcheckingforlibxml/parse

ruby - 如何解决 "You need to have Ruby and Sass installed and in your PATH for this task to work"警告?

我正在为工作设置一台新Mac。我已经在全局范围内安装了Grunt&GruntCLI。然后我在项目文件夹中执行了npminstall以安装所有依赖项。到目前为止没有问题,但是当我尝试运行sass:dist任务时,我收到了这个警告:Warning:YouneedtohaveRubyandSassinstalledandinyourPATHforthistasktowork.Moreinfo:https://github.com/gruntjs/grunt-contrib-sassUse--forcetocontinue.据我了解,我需要在更全局的级别上安装Ruby和Sass才能运行此任务。

ruby-on-rails - 错误 : Error installing capybara-webkit:

关于如何修复有什么建议吗?geminstallcapybara-webkit-v'0.11.0'Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingcapybara-webkit:ERROR:Failedtobuildgemnativeextension./home/durrantm/.rvm/rubies/ruby-1.9.3-p194/bin/rubyextconf.rbsh:qmake:notfoundGemfileswillremaininstalledin/home/durrantm/.rvm

ruby - 命令 rbenv install 丢失

在Ubuntu10.04中,我刚刚安装了rbenv。安装命令不存在。rbenv0.4.0-49-g8b04303Usage:rbenv[]Someusefulrbenvcommandsare:commandsListallavailablerbenvcommandslocalSetorshowthelocalapplication-specificRubyversionglobalSetorshowtheglobalRubyversionshellSetorshowtheshell-specificRubyversionrehashRehashrbenvshims(runthisaft

ruby-on-rails - 如何解决 "ruby installation is missing psych"错误?

我使用rvm安装ruby​​1.9.3。即使安装成功,它也会提示libyaml。现在每次我想安装一个gem(比如rails)时都会出现这个警告:Itseemsyourrubyinstallationismissingpsych(forYAMLoutput).Toeliminatethiswarning,pleaseinstalllibyamlandreinstallyourruby.我使用MacosX10.7(Lion)。 最佳答案 以我为例rvmpkginstalllibyaml和rvmreinstallruby-1.9.3-p1

ruby - 在 OSX 中卸载所有已安装的 gem?

有些情况下我想还原和卸载所有以前的gem安装。例如,我需要帮助一位friend将他们的Rails开发机器迁移到使用RVM。由于他们之前一直在使用系统范围的gem,因此在处理多个项目时,他遇到了很多令人头疼的问题。本质上,他是RVM皈依者的典型代表。我怎样才能优雅地卸载他的OSX系统上的所有gem? 最佳答案 Rubygems>=2.1.0gemuninstall-aIxa删除所有版本I忽略依赖项x包含可执行文件gemforiin`gemlist--no-versions`;dogemuninstall-aIx$i;done

ruby - 如何避免 "cannot load such file -- utils/popen"来自 OSX 上的 Homebrew 软件

当我在终端中运行brew时出现错误:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in`require':cannotloadsuchfile--utils/popen(LoadError)from/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.

javascript - Webpack 无法导入从 git 安装的包

所以我在git中fork了一个包。做了我的改变。然后在我的终端npminstall--savegit+https://github.com/hayk94/ddp.js.git然后我尝试像这样在我的代码中导入包importDDPfrom'ddp.js'但是webpack给我这个错误ERRORin./main.jsModulenotfound:Error:Can'tresolve'ddp.js'in'/Users/hayksafaryan/projects/b2cEmbedLib'@./main.js23:11-28@multi(webpack)-dev-server/client?htt

javascript - socket.io 客户端 : how to determine if a handler is already installed

如果您为套接字上的同一个函数多次调用“on”方法会发生什么?多次调用它是简单地覆盖了最后注册的函数还是使用了更多资源?如果是后者,那么如何判断handler是否已经注册? 最佳答案 我刚刚查看了Firebug中的套接字,有一个名为“_callbacks”的成员。它包含所有已注册的回调,因此检测是否已注册非常简单:if(socket._callbacks[strHandlerName]==undefined){//Handlernotpresent,installnowsocket.on(strHandlerName,function