gem

Compass (ruby) encoding error

纵然是瞬间 提交于 2020-02-24 12:37:46
问题 I had Compass 0.12 (a ruby gem) installed on Ubuntu Oneiric with no problems I have updated to Precise formatting / and keeping /home, so I needed to reinstall ruby (1.9.3). I get this error now when I compile a SCSS file: compass watch --trace Change detected at 12:45:09 to: style.scss overwrite css/style.css Dear developers making use of FSSM in your projects, FSSM is essentially dead at this point. Further development will be taking place in the new shared guard/listen project. Please let

Compass (ruby) encoding error

北城以北 提交于 2020-02-24 12:37:27
问题 I had Compass 0.12 (a ruby gem) installed on Ubuntu Oneiric with no problems I have updated to Precise formatting / and keeping /home, so I needed to reinstall ruby (1.9.3). I get this error now when I compile a SCSS file: compass watch --trace Change detected at 12:45:09 to: style.scss overwrite css/style.css Dear developers making use of FSSM in your projects, FSSM is essentially dead at this point. Further development will be taking place in the new shared guard/listen project. Please let

CocoaPods问题排查步骤

╄→尐↘猪︶ㄣ 提交于 2020-02-22 09:54:49
CocoaPods问题排查步骤 1、ruby源的问题排查 1、查看ruby的源 gem sources -l 2、添加ruby的源 如果不是 https://gems.ruby-china.com/ 的源的话,添加这个源。 gem sources --add https://gems.ruby-china.com/ 也可以移除其他源 gem sources --remove https://... 再次查看ruby的源是否正确 3、重新install cocoapods sudo gem install -n /usr/local/bin cocoapods 4、查看版本 pod --version 来源: CSDN 作者: Morris_ 链接: https://blog.csdn.net/Morris_/article/details/104438718

installing RSRuby in Ubuntu 10.04

怎甘沉沦 提交于 2020-02-22 07:05:42
问题 I'm trying to install RSRuby on Ubuntu 10.04. I barely even know what error messages to report as the relevant ones; I've just been googling around for several hours and none of the commands I try solve the problem. Here are a few sample error messages: $ sudo gem install rsruby -- --with-R-dir=/usr/lib/R Building native extensions. This could take a while... ERROR: Error installing rsruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb --with-R-dir=/usr/lib/R

iOS开发~CocoaPods使用详细说明

给你一囗甜甜゛ 提交于 2020-02-13 15:32:40
CocoaPods的安装 Ruby环境搭建 a. mac自身带ruby 查看下当前ruby版本:打开终端输入 ruby -v(确实安装了,不过用这个版本接下来工作失败了,所以更新下ruby) ritekiMac-mini:PodTest lucky$ ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] ritekiMac-mini:PodTest lucky$ b. 更新ruby 终端输入如下命令(把Ruby镜像指向taobao,避免被墙,你懂得) gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l (用来检查使用替换镜像位置成功) ritekiMac-mini:~ lucky$ gem sources --remove https://rubygems.org/ https://rubygems.org/ removed from sources ritekiMac-mini:~ lucky$ gem sources -a http://ruby.taobao.org/ http://ruby.taobao.org/ added to sources

Does requiring a gem load everything, including things I don't use?

一笑奈何 提交于 2020-02-02 11:45:45
问题 Assume x is a gem, that contains both Hello and Goodbye classes. If I write a program that require 'x' , but only uses the Hello class. Is the Goodbye class loaded as well? 回答1: You include scripts or files, not gems. With require 'x' you load the file x.rb . Which x.rb you load is defined by the search path, the search pathes can be modified by gem definitions (what you didn't use in your example code). Everything inside the file x.rb is loaded. If x.rb contains other require commands, those

使用cocoapods

旧街凉风 提交于 2020-01-28 06:17:00
使用 cocoapods 0. 如果发现装 cocoapods 时 出错就更新 gem 到最新版本,在终端中输入: $ sudo gem update --system , 注意不要把 “$” 复制上。等待一会儿会看到 我已经敲过 所以是 1. 移除原有的源 gem sources --remove https://rubygems.org/ 2. 添加淘宝的镜像 gem sources -a https://gems.ruby-china.org/ ( 原来的淘宝镜像 https://ruby.taobao.org/ 已经不能用了 ) 。 3. 检查源 可以用 gem sources -l 来检查使用替换镜像位置成功,结果应该只有 https://gems.ruby-china.org/ 才对 5. 安装 CocoaPods ,终端输入: sudo gem install cocoapods 等待一会儿会看到: 出现问题查阅解决方法 https 导致 stackflow 中也有案例链接 http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error/30851030#30851030 解决方法是 sudo gem install -n

How to reduce the size of a gem

纵饮孤独 提交于 2020-01-25 06:09:46
问题 I am currently in the process of creating a gem and it seems to be considerably bigger than comparative gems. First of all is this really an issue and if so is there a particular way to reduce the size of the gem? Gem: https://rubygems.org/gems/roroacms Github: https://github.com/roroacms/roroacms 回答1: The gem's spec/ directory has, when unpacked, over 99MB. You should definitely exclude it from the final gem (even if small). The reason it's so large is because it contains the dummy app with

How to override model from the doorkeeper gem

*爱你&永不变心* 提交于 2020-01-25 04:20:54
问题 Do you have any idea how to override Doorkeeper::Application provided by the Doorkeeper gem.Let's say I want to add validation, callbacks and so on. Db table is named auth_applications . I created a model named application.rb containing the following but my before_create call is not triggered. What's the best approach? module Doorkeeper class Application < ActiveRecord::Base include ApplicationMixin require 'identicon' before_create :generate_identicon def generate_identicon self.identicon =

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