bundler

如何在Gemfile中指定本地gem?

廉价感情. 提交于 2020-03-05 15:08:58
我想要Bundler加载本地gem。 那有选择吗? 或者我是否必须将gem文件夹移动到.bundle目录中? #1楼 除了指定路径(如Jimmy所提到的),您还可以通过使用以下配置选项强制Bundler 仅为您的环境 使用本地gem: $ bundle config local.GEM_NAME /path/to/local/git/repository 如果您正在并行开发两个宝石或一个gem和一个rails应用程序,这将非常有用。 但请注意,这仅在您已经使用git作为依赖项时才有效,例如: # In Gemfile gem 'rack', :github => 'rack/rack', :branch => 'master' # In your terminal $ bundle config local.rack ~/Work/git/rack 正如 文档中 所见。 #2楼 如果您正在使用git,也可以使用git引用本地gem。 gem 'foo', :git => '/Path/to/local/git/repo', :branch => 'my-feature-branch' 然后,如果它改变了我跑 bundle exec gem uninstall foo bundle update foo 但我不确定每个人都需要运行这两个步骤。 #3楼

Kali Linux 2020.1a版本msfconsole启动失败问题

我的梦境 提交于 2020-02-26 00:13:45
Kali Linux 2020.1a版本msfconsole启动失败问题 Kali Linux 2020.1a系统安装后,启动msfconsole将出现如下错误: root @kali :~# msfconsole [*] Bundler failed to load and returned this error: 'cannot load such file -- bundler / setup' [*] You may need to uninstall or upgrade bundler 由于默认安装的bundler为最新版本2.1.4。msfconsole依赖的版本为1.17.3,所以需要安装旧版本。执行如下命令: root @kali :~# gem install bundler:1.17.3 来源: oschina 链接: https://my.oschina.net/u/1585857/blog/3167740

Bundle - copy-paste gems from another PC

只谈情不闲聊 提交于 2020-02-24 18:06:34
问题 I am trying to setup a rails application. The application depends on an enormously huge number of gems. The gems were preinstalled in the vendor/gems folder of a copy I obtained from a friend. Now, considering the unavailability of those closed source gems, bundle install --path /home/umang/projectname/vendor/gems fails with the message Could not find gemname in any of the sources . Is there a way I could copy-paste the gems from the vendor/gems/ folder into my gem installation directory and

Bundle - copy-paste gems from another PC

醉酒当歌 提交于 2020-02-24 17:59:31
问题 I am trying to setup a rails application. The application depends on an enormously huge number of gems. The gems were preinstalled in the vendor/gems folder of a copy I obtained from a friend. Now, considering the unavailability of those closed source gems, bundle install --path /home/umang/projectname/vendor/gems fails with the message Could not find gemname in any of the sources . Is there a way I could copy-paste the gems from the vendor/gems/ folder into my gem installation directory and

Error installing Rmagick on Mountain Lion

Deadly 提交于 2020-02-10 21:29:26
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version

Error installing Rmagick on Mountain Lion

╄→尐↘猪︶ㄣ 提交于 2020-02-10 21:29:05
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version

Sinatra: Undefined method 'run' when using bundle exec ruby app.rb

冷暖自知 提交于 2020-02-08 05:23:03
问题 I have modular style sinatra app, with the following line near the end, so that it can be run standalone: # ... all code before this omitted run! if __FILE__ == $0 end # This is the end of the file When I run this app with ruby app.rb it works fine, and webrick starts up. However, if I run it instead with bundle exec ruby app.rb I get this error: >bundle exec ruby app.rb C:/Ruby200/lib/ruby/gems/2.0.0/gems/sinatra-1.4.4/lib/sinatra/base.rb:1488:in `start_server': undefined method `run' for

What Does Webpack 4 Expect From A Package With sideEffects: false

我怕爱的太早我们不能终老 提交于 2020-01-30 13:53:09
问题 Webpack 4 has added a new feature: it now supports a sideEffects flag in the package.json of the modules it is bundling. From Webpack 4: released today Over the past 30 days we have worked closely with each of the frameworks to ensure that they are ready to support webpack 4 in their respective cli’s etc. Even popular library’s like lodash-es, RxJS are supporting the sideEffects flag, so by using their latest version you will see instant bundle size decreases out of the box. From Webpack docs

Nokogiri gem install failing in Capistrano deploy

此生再无相见时 提交于 2020-01-25 01:40:25
问题 When attempting to install Nokogiri via bundler/capistrano I am receiving the error: An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue Digging deeper I can see >> libxml2 version 2.6.21 or later is required! The error message also says Make sure that gem install nokogiri -v '1.6.5' succeeds before bundling. Well, as you can see this is not a problem: vagrant@vagrant:~$ gem install nokogiri -v '1.6.5' Building native extensions. This could take a while...

How to install json gem - Failed to build gem native extension

拟墨画扇 提交于 2020-01-24 14:33:25
问题 I'm trying to deploy a rails app to my ubuntu linux server. I'm using capistrano and bundler and when it gets to installing gems it fails with this error: Installing json (1.7.7) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /opt/ruby-enterprise-1.8.7-2012.02/bin/ruby extconf.rb creating Makefile make /usr/bin/gcc -I. -I/opt/local/include -I/opt/ruby-enterprise-1.8.7- 2012.02/lib/ruby/1.8/i686-linux -I/opt/ruby-enterprise-1.8.7-2012