rubygems

Error while building native extensions for capybara-webkit

流过昼夜 提交于 2020-01-11 05:43:13
问题 I'm trying to install the webkit driver for capybara on Windows, and I'm getting the following error: $ gem install capybara-webkit-0.12.1.gem Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing capybara-webkit-0.12.1.gem: ERROR: Failed to build gem native extension. c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara

rake db:migrate is being aborted due to rake version difference [duplicate]

不想你离开。 提交于 2020-01-10 19:26:46
问题 This question already has answers here : You have already activated X, but your Gemfile requires Y (6 answers) Closed 5 years ago . I am getting the error rake db:migrate --trace rake aborted! You have already activated rake 10.1.1, but your Gemfile requires rake 10.1.0. Using bundle exec may solve this. /Users/iang/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup' /Users/iang/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler

从一份定义文件详解ELK中Logstash插件结构

橙三吉。 提交于 2020-01-07 08:59:56
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 概述 当下分布式系统的 日志收集、日志分析、日志处理、可视化 的热门技术栈方案当然非 ELK( E lasticSearch、 L ogstash、 K ibana)莫属,从 L → E → K 构成了一条数据的 Pipeline管道: Logstash :与数据源对接,用于收集、过滤处理你的日志、事务或其他数据 ElasticSearch : 是一个开源的,分布式 RESTful 搜索引擎,在 ELK中可以初略理解为数据存储的地方 Kibana :将 Elasticsearch 的数据分析并渲染为可视化的报表,便于高效分析 而且在我的前文 《利用 ELK搭建 Docker容器化应用日志中心》 之中,曾利用 ELK 搭建了一条数据管道,用作 Docker容器化应用的日志中心。 注: 本文首发于 My 公众号 CodeSheep ,可 长按 或 扫描 下面的 小心心 来订阅 ↓ ↓ ↓ 为什么先讲Logstash 作为与数据源 “直接对接” 的 Logstash,位置处于 ELK 数据管道的 最前端 ,其主要作用是 收集、过滤分析、输出 各种结构化或者非结构化的原始数据(典型的如日志数据),原始数据从 “无序变有序” 的重担就落在了Logstash的肩上了,因此其作用举足轻重。 说到Logstash

Dependency error while installing the gem “joyride-rails”

◇◆丶佛笑我妖孽 提交于 2020-01-07 07:51:17
问题 My rails version is 3.2.12 . I am trying to implement gem "joyride-rails", "~> 0.0.14" in my application, but it clashes with some of my other gems. Already in my Gemfile: gem "haml-rails", ">= 0.4" gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'active-admin-spec-suite' When I run the bundle command, I get this error: Bundler could not find compatible versions for gem "haml": In Gemfile: joyride-rails (~> 0.0.14) ruby depends on haml (~> 3.1) ruby haml-rails (>= 0.4)

Ancestry Gem 'undefined method' error

蹲街弑〆低调 提交于 2020-01-07 06:16:17
问题 I am using the Ancestry Gem and I am getting an undefined method "arrange" for #<Array:0x007f8d58e58700> error with the following code: <%= @shipmgr_carriers.arrange(:order => :name) %> However, When I just output @shipmgr_carriers I get an array with ancestry: [#<Shipmgr::Carrier id: 9, name: "testing", status: nil, created_at: "2012-01-16 22:44:28", updated_at: "2012-01-16 22:44:28", ancestry: nil>, #<Shipmgr::Carrier id: 10, name: "test", status: nil, created_at: "2012-01-16 22:44:28",

Ancestry Gem 'undefined method' error

て烟熏妆下的殇ゞ 提交于 2020-01-07 06:16:06
问题 I am using the Ancestry Gem and I am getting an undefined method "arrange" for #<Array:0x007f8d58e58700> error with the following code: <%= @shipmgr_carriers.arrange(:order => :name) %> However, When I just output @shipmgr_carriers I get an array with ancestry: [#<Shipmgr::Carrier id: 9, name: "testing", status: nil, created_at: "2012-01-16 22:44:28", updated_at: "2012-01-16 22:44:28", ancestry: nil>, #<Shipmgr::Carrier id: 10, name: "test", status: nil, created_at: "2012-01-16 22:44:28",

How to log everything on the screen to a file?

霸气de小男生 提交于 2020-01-07 05:35:05
问题 I use one rb file with rufus/scheduler on Windows. The script is executed on a comupter start up and it runs in a cmd window. How can I log everything that ruby outputs to the screen to a file? I still want to be able to see the output on the screen. So I want the logging on top of current behaviour. Windows 7 64 bit ruby 1.9.3p194 (2012-04-20) [i386-mingw32] 回答1: If you just want the script to send output to the file instead of the console use IO#reopen to redirect stdout and stderr. def

PG + extconf failed, exit code 1 in Linux

大城市里の小女人 提交于 2020-01-07 03:48:30
问题 I am getting error in installing PG in Linux (CentOS) System. gem install pg Then I'm getting following error Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/pg-0.18.4/ext /usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160831-5454-1endyls.rb extconf.rb checking for pg_config... yes Using config values from /usr/bin/pg_config checking for libpq-fe.h..

where to put gem script files for compass (css_splitter)

老子叫甜甜 提交于 2020-01-06 08:57:13
问题 first time working with gem/ruby files. need a bit of help here. Basically we have asp.net application that uses SASS + COMPASS. To address css file size limitation, we wanted to use css_splitter script (css_splitter.rake and css_splitter.rb): https://gist.github.com/1131536 Basically, after compass compiles, splitter should kick in and split the generated css file into 2 or more. What I have tired: The sass config file is under: D:\myapp\mainsite\sass\config.rb I put css_splitter.rake and

When using `bundle gem floob`, why is a directory of the same name as the gem is created?

血红的双手。 提交于 2020-01-06 06:07:47
问题 I am making my first gem. Let's assumed it is called floob . ex: bundle gem floob Why would bundle gem create two directories of the same name for a gem? ex: /floob/lib/floob/ Do I put the bulk of my code in /lib/floob/ (alongside the version.rb file?) What is the purpose of the file that is created with the gem name? ex: /floob/lib/floob.rb The only command run was bundle gem . I would love a little clarification on what the relationship is between all the floobs ~ 回答1: The reason for this