rubygems

$ gem install rails failing. Any workaround?

前提是你 提交于 2019-12-12 03:59:59
问题 I'm having problems installing Rails on OS X Lion for some reason... Installing under RVM... $ gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Forbidden 403 (http://production.cf.rubygems.org/gems/rdoc-3.12.gem) $ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.8.12 - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-darwin11.2.0] - INSTALLATION DIRECTORY: /Users/ethan/.rvm/gems/ruby-1.9.3-p0@mtc_apps - RUBY EXECUTABLE: /Users

How does Rubygem require all gems? [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-12 03:56:47
问题 This question already has an answer here : How can I debug require in Ruby 1.9 (1 answer) Closed 5 years ago . I got interested in Rubygem, and started to explore how does it works, and found out that after 1.9, Rubygem's require became THE require . With the code below: require 'debugger' debugger require 'thor' I started to n and l and s , but got stuck at: # specification.rb:263 def self._all # :nodoc: unless defined?(@@all) && @@all then specs = {} self.dirs.each { |dir| Dir[File.join(dir

Ruby on Rails integration with Quickbooks not working

我的梦境 提交于 2019-12-12 03:17:19
问题 I followed the instructions from this blog, aware that it is quite old. http://minimul.com/integrating-rails-and-quickbooks-online-via-the-version-3-api-part-1.html I successfully get the 'Connect to Quickbooks' button on my web app but on clicking it, I get the following error. NoMethodError in VendorsController#authenticate undefined method `get_request_token' for nil:NilClass The source of the error seems to be this line in my vendors controller authenticate action: token = $qb_oauth

Ruby can't find the method capture2e from open3 module

╄→гoц情女王★ 提交于 2019-12-12 03:06:13
问题 I am trying to use the script blogger.rb and I just can't get it work. It keeps giving me the error : blogger.rb:294:in text2html': undefined method capture2' for Open3:Module (NoMethodError) The script does a require Open3 in the beginning. I don't understand where is the problem ! I have no knowledge of Ruby. However, I can intelligently read and edit codes in general. 回答1: I'd guess that you're using Ruby 1.8 but the script requires 1.9. The Open3 class in 1.8.7 has a popen3 class method

Rubygems blocked by Norton DNS

∥☆過路亽.° 提交于 2019-12-12 03:05:08
问题 I ran $ gem fetch -V github-linguist GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz 200 OK ERROR: While executing gem ... (Zlib::GzipFile::Error) not in gzip format then to my shock I opened the link in my browser and see this message Norton DNS Malicious Web Site Blocked You attempted to access: production.s3.rubygems.org This is a known malicious web site. It is recommended that you do NOT visit this site. This

Bundle deployment only for selected gems

白昼怎懂夜的黑 提交于 2019-12-12 02:51:57
问题 I would like to run bundle --deployment only for one group of gems that are not provided by the system. I've tried using --with=group but it started doing for all gems in the Gemfile 回答1: Bundler's --with option works a bit different than what you're expecting. Let's first look at the bundle install man page for --without and --with options: --without=<list> A space-separated list of groups referencing gems to skip during installation. If a group is given that is in the remembered list of

problems on installing link-parser gem on snow leopard

為{幸葍}努か 提交于 2019-12-12 02:34:18
问题 I cannot make link-parser gem working on my snow leopard. When I tried to do 'sudo gem install linkparser' and I get: Building native extensions. This could take a while... ERROR: Error installing linkparser: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for pkg-config... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the

Error while installing sass using gem in Windows

▼魔方 西西 提交于 2019-12-12 01:56:32
问题 I install Ruby 2.3.0 using Chocolatey, then seeing this error gem install sass ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - C:/tools/ruby23/bin/sass.bat I tried changing the security permission of C:\tools\ruby23 , but it didn't help. What went wrong ? 来源: https://stackoverflow.com/questions/40178914/error-while-installing-sass-using-gem-in-windows

getting in-out from ruby methods

一世执手 提交于 2019-12-12 01:53:47
问题 I am using jruby to run bunch of ruby scripts, though I am using pure ruby part of it. It sometimes gets difficult to follow from output what exactly is happening or where exactly something went wrong. I wanted to get something like this in my std out for every method: entered in method A out of method A Now I can surely go and put those comments in every method ..which feels very wrong. Is there a way to run ruby in a little verbose more to get this information in my log. Hopefully I would

no memory error, failed to allocate memory

爱⌒轻易说出口 提交于 2019-12-12 01:53:40
问题 I'm new in Ruby On Rails but each time I make a mistake (in a function for instance), my computer (xubuntu 10.10) totally freezes. Actually I can't do anything except waiting and I finally got an "No memory error -> failed to allocate memory" error after 5 or 10 minutes. I use rails 3 and mongoDB. I'm developping from an existing project with many gems, is there any consequences ? Thank you ! 回答1: Possible diagnosis: you are using Ruby installed from ubuntu packages you have bad physical ram