gem

CircleCI gems caching

别来无恙 提交于 2019-12-30 09:02:27
问题 Is it possible to cache gems, so that bundle install will not install bunch of gems for every build? This takes 5 minutes on every build, that is too much. I've added this to the circle.yml config: dependencies: cache_directories: - "/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/" This is the common directory which is provided by bundle show gem_name where all system gems are put. After this addition system writes such log: restoring cache v4/company/repo_name/dependency/circle-ci/42

CircleCI gems caching

爱⌒轻易说出口 提交于 2019-12-30 09:01:08
问题 Is it possible to cache gems, so that bundle install will not install bunch of gems for every build? This takes 5 minutes on every build, that is too much. I've added this to the circle.yml config: dependencies: cache_directories: - "/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/" This is the common directory which is provided by bundle show gem_name where all system gems are put. After this addition system writes such log: restoring cache v4/company/repo_name/dependency/circle-ci/42

Parsing XLS Spreadsheet in Rails using Roo Gem

狂风中的少年 提交于 2019-12-30 07:44:13
问题 I am trying to parse a XLS file with the roo gem without using a file upload plugin. Unfortunately I can not access the data of the File. I get the error: #<File:0x007ffac2282250> is not an Excel file So roo is not recognizing the file as an Excel file. Do I need to save the file locally to use roo or is there a way around that. I would like to parse the data of the excel file directly into the database. The params that are coming through: Parameters: {"utf8"=>"✓", "authenticity_token"=>

Can't install JSON gem

故事扮演 提交于 2019-12-30 04:04:05
问题 I need to install json because I get this error: Could not find json-1.4.6 in any of the sources I ran gem install json and bundle install but I was only able to install json-1.5.1 when I need json-1.4.6 I have gem 'json', '1.4.6' in my gemfile, so I'm not sure what's going on... UPDATE I get this error: Installing json (1.4.6) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1216:in `chmod': Operation not permitted - /Library/Ruby/Gems/1.8/gems/json-1.4.6

Sass --compass --watch Error: Cannot load compass

蹲街弑〆低调 提交于 2019-12-29 07:32:33
问题 I am working with sass and compass and trying to use the new sourcemap feature as Chrome 27 requires the new method of sourcemap to show the actual sass files and line numbers in the chrome console panel. I am able to run the following sass command sass --sourcemap --watch style.scss:style.css however if I append the --compass argument like the following sass --compass --sourcemap --watch style.scss:style.css I get the following error in the windows cmd panel: "ERROR: Cannot load compass". I

Rails/Ruby Error When Creating Database: Unable to load the EventMachine C extension

為{幸葍}努か 提交于 2019-12-29 06:59:09
问题 Update: the eventmachine gem is installed and in my gemfile: eventmachine (1.0.0, 0.12.10) Please help! Trying to create a database with the following: Fitzs-MacBook-Pro:twilio_insanity Fitz$ rake db:create' Returns the following error: Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' rake aborted! cannot load such file -- rubyeventmachine /Users/Fitz/.rvm/gems/ruby-1.9.3-p327@rails3tutorial2ndEd/gems/eventmachine-1.0.0/lib/eventmachine.rb:8:in

ERROR: Failed to build gem native extension (ruby extconf.rb): Mac OSX [duplicate]

别来无恙 提交于 2019-12-28 16:57:33
问题 This question already has answers here : Ruby Gem install Json fails on Mavericks and Xcode 5.1 - unknown argument: '-multiply_definedsuppress' (10 answers) Closed 4 years ago . I am attempting to install a gem, and I get this error, which myself and the gem author have never seen before. How do I fix this? Davids-MacBook-Pro:web david$ sudo /usr/bin/gem install compass --pre Password: Building native extensions. This could take a while... ERROR: Error installing compass: ERROR: Failed to

ERROR: Failed to build gem native extension (ruby extconf.rb): Mac OSX [duplicate]

天大地大妈咪最大 提交于 2019-12-28 16:57:07
问题 This question already has answers here : Ruby Gem install Json fails on Mavericks and Xcode 5.1 - unknown argument: '-multiply_definedsuppress' (10 answers) Closed 4 years ago . I am attempting to install a gem, and I get this error, which myself and the gem author have never seen before. How do I fix this? Davids-MacBook-Pro:web david$ sudo /usr/bin/gem install compass --pre Password: Building native extensions. This could take a while... ERROR: Error installing compass: ERROR: Failed to

【SECS/GEM开发】

半世苍凉 提交于 2019-12-27 13:52:49
一、概述   SECS/GEM是由国际半导体设备与材料协会(SEMI)制定的连接性标准。此连接性标准用于在设备和工厂的资讯和控制系统间建立通讯。SECS是SEMI设备通讯标准的缩写。GEM指SEMI连接性标准E30,被定义为制造设备实现通讯和控制的一般模型。一般来说,SECS/GEM标准定义了信息、状态机和情境,来让工厂软件能够控制并监视制造设备。正式名称是SEMI连接性标准E30。   在实现SECS/GEM标准的工厂内,存在主机和设备这两方。由设备在其中一台必须实施和遵守SEMI E30标准的计算机上运行软件。由制造商(工厂)运行与设备接口建立通讯的主机软件。主机无需遵守完整的连接性标准,因为它只设定设备的预期行为。不过,若要使用接口,主机必须进行主机端通讯。SECS/GEM为每条可能的主机信息设定了清晰的设备预期行为。 二、通讯   SECS/GEM SEMI连接性标准定义了主机和设备开始建立通讯的方式,并且还定义了当通讯中断时重新建立通讯的方式。在线识别方法负责验证设备的硬件和软件标识。终端服务功能允许主机操作员和设备操作员在控制台上交换手动输入的文本。 三、控制   SECS/GEM SEMI连接性标准概括了主机与设备操作员之间的合作等级的控制状态模型。设备提供三种基本的主机控制等级:离线,在线/本地,以及在线/远程,确定了主机控制和监控设备的能力

ios开发之--/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file

ε祈祈猫儿з 提交于 2019-12-27 10:50:14
有一段时间没有用pod了,突然报了个这种错误,查了下,原来是没有更新pod, 1, 更新gem:sudo gem update --system 2, 查看gem源是否是最新的:gem sources -l 3, 升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 4, 查看升级后的cocoapods版本:pod --version 我是直接更新了下,然后就可以使用了,至于用不用更换镜像,这个我没尝试过,上面的步骤已经解决了我的问题,亲测有效! 我把其他的步骤也列下: 1、更新gem:sudo gem update --system 2、删除gem源:gem sources --remove https://ruby.taobao.org/ 3、修改gem源:gem sources -a https://gems.ruby-china.org 4、查看gem源是否是最新的:gem sources -l 5、升级cocoapods:sudo gem install -n /usr/local/bin cocoapods --pre 6、查看升级后的cocoapods版本:pod --version 来源: https://www.cnblogs.com/hero11223/p/9000228.html