Tag: gem

不能将ruby-debug19与1.9.3-p0一起使用?

可能重复: Rails 3.1和Ruby 1.9.3p125:ruby-debug19仍然崩溃,“找不到符号:_ruby_threadptr_data_type” 我运行这个: gem install ruby-debug19 在我的黄瓜env.rb文件中,我有这个: require ‘ruby-debug’ 但是,当我尝试运行时,我得到了这个例外: /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread – /home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError) 我需要做些什么才能让ruby-debug与1.9.3-p0一起使用?

Ruby的最佳YouTubegem?

YouTube API有明确的gem吗? 我正在尝试使用youtube_g,但似乎打破了一些基本的东西。

rspec –init not working /`mkd ir’:参数无效 – ./C :( Errno :: EINVAL)

我正在关注rspec的 codechool 课程 。 安装工作正常。 我为该项目创建了一个名为rspec-zombie的文件。 精细。 但是当我在powershell中尝试使用rspec –init时,我收到了一个不正常的错误消息。 我的印象是应该在目录中制作一些文件,但不存在。 它跟随。 C:\Users\Roman\The-Odin-Project\rspec-zombie> rspec –init create .rspec C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker.rb:17:in `mkd ir’: Invalid argument – ./C: (Errno::EINVAL) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:17:in `block in mkdir_p’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `each’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `mkdir_p’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :33:in `copy_template’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :22:in `run’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/option_parser.rb:81:in `block (2 levels) in parser’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1360:in […]

如何使用aws-s3 gem在存储桶之间复制文件

aws-s3文档说: # Copying an object S3Object.copy ‘headshot.jpg’, ‘headshot2.jpg’, ‘photos’ 但是,如何将heashot.jpg从photos桶复制到archive桶中 谢谢! 德布

在mac(libxml2)上安装nokogiri 1.6.0时出错

更新:已修复 我在另一个post中找到了答案。 我使用的解决方法是告诉Nokogiri使用系统库: NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install ==== 试图在Mac上安装nokogiri 1.6.0。 在以前的版本中,我没有遇到任何问题。 但1.6.0拒绝安装。 这是错误: Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/josenriq/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/i686-apple-darwin11/ports/libxml2/2.8.0… ERROR tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains […]

无效的gemspec -Illformed要求

Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement [“# 3.2.0”] 从尝试为其他问题做sudo gem更新 获得这个数百次的时间,因为sudo gem update会遍历每个gem并获取大部分内容的消息

libv8和rails的bundle install问题

我遇到了与ruby 1.9.3p0(2011-10-30修订版33570)[x86_64-darwin10.8.0]的libv8 gem的问题。 gem安装libv8工作正常,我有 gem ‘therubyracer’ 在我的Gemfile ,这依赖于我Gemfile bundle install时安装的libv8 : $ bundle exec gem list ***当地gem*** 动作制作者(3.1.3) actionpack(3.1.3) … libv8(3.3.10.4 x86_64-darwin-10) … 但是当我跑步时: $ rails s 在任何来源中都找不到libv8-3.3.10.4 运行`bundle install`来安装缺少的gem。 它找不到libv8 – 这是32/64位问题吗? 如果是这样,我该如何解决?

我如何分享我在创业板上的工厂并在其他项目中使用它?

我有一个包含一些工厂的gem。 gem看起来像: . ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── db ├── lib │ ├── models │ │ ├── users.rb ├── pkg ├── core.gemspec ├── spec │ ├── factories │ │ └── users.rb │ ├── fixtures │ ├── helpers │ ├── integration │ ├── spec_helper.rb │ ├── support│ │ │ └── unit │ […]

安装Bundler时出错

我正在尝试在我的Mac上安装Bundler gem。 使用命令: sudo gem install bundler我收到以下错误: ERROR: Could not find a valid gem ‘bundler’ (>= 0), here is why: Unable to download data from https://rubygems.org/ – SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz) 它显然似乎是一个服务器问题,但我该如何解决这个问题呢? gem update –system目前是最新的。 有没有其他方法可以获得Bundler?

Rails – 每当gem – 动态值

可以说我有这样的cronjob: every 1.day, :at => ‘4:30 am’ do runner “MyModel.task_to_run_at_four_thirty_in_the_morning” end 虽然,我想让’1.day’更具动态性,例如通过管理页面中的表单更改值。 然后它可能看起来像这样: every Constant.find(2).value, :at => ‘4:30 am’ do 要么 @const = Constant.find(2) every @const.span, :at => @const.time do 任何人都可以想出如何使这项工作? 显然,这样做的原因是我可以使用存储在我网站上的数据库中的值,就像消息说的那样