rubygems

How to upgrade Ruby to 2.0

心已入冬 提交于 2019-12-31 13:01:53
问题 My ruby version is ruby 1.9.3p374 (2013-01-15) [i386-mingw32] and I am running under Windows 8 with mingw installed. How can I upgrade it to ruby 2.0 ? 回答1: Pik let you play with and manage multiple versions and flavours of ruby on on your Windows box. I have chosen this way because I'm not sure that everything I need will work on the first try with the new version, hence I want also to keep prior versions. The installation is also simple: if you haven't jet Pik see topic: "Install pik using

bundle command not found in linux debian

懵懂的女人 提交于 2019-12-31 12:59:14
问题 When i enter bundle install I get the error '-bash: bundle: command not found'. How do I find whether bundler is installed ? gem environment returns the following RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /var/lib/gems/1.8 - GEM CONFIGURATION

ruby - bundle install/update too slow

社会主义新天地 提交于 2019-12-31 08:23:33
问题 I just installed RVM, Ruby, Rails etc. on my virtual ubuntu 12.04 32bit running in a virtualbox. Now I encounter the problem that for my first rails project bundle install or bundle update takes very long time. Even when I create a new project with rails (which includes bundle install ). I use only the standard gems: source 'https://rubygems.org' gem 'rails', '3.2.12' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' group :development do gem 'sqlite3', '1

Ruby Strange Error

强颜欢笑 提交于 2019-12-31 05:31:40
问题 Whenever I require a file in ruby or irb I get this error: LoadError: no such file to load -- (insert any filename).rb from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from (irb):1 from /usr/bin/irb1.9.1:12:in `<main>' It happens even if the file exists I am using ruby1.9.1 and to my knowledge, I have not installed rubygems. I am running on Ubuntu 10.10 Maverick Meerkat. Please help, this problem is very annoying! Thanks

Undefined method `instance' for Capistrano::Configuration:Class

我的未来我决定 提交于 2019-12-30 08:07:31
问题 I am trying to get Capistrano up and running for the first time in a rails app. I have a linux server running Ubuntu 12.04, nginx, unicorn and rails, however, I seem to be running into a few issues. I am also using Capistrano 3.0.0, rails 3.2.14, bundler 1.4.0 & ruby 1.9.3p448 using RVM. I only have a production stage set up and at this point in time and I'm only concerned with Capistrano communicating with my server and pushing my code from github ( No migrations and bundling etc just yet).

How to install RedCloth on Windows?

泄露秘密 提交于 2019-12-30 03:08:08
问题 When running gem install RedCloth (on Windows XP) I got: Fetching: RedCloth-4.2.8.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed RedCloth-4.2.8 1 gem installed Installing ri documentation for RedCloth-4.2.8... Installing RDoc documentation for RedCloth-4.2.8... ERROR: While generating documentation for RedCloth-4.2.8 ... MESSAGE: error generating index.html: Error while evaluating D:/Programs/R uby/lib

What is the best Diff library in Ruby? [duplicate]

試著忘記壹切 提交于 2019-12-30 00:33:52
问题 This question already has answers here : diff a ruby string or array (12 answers) Closed 5 years ago . I've looked at diff-lcs ( http://raa.ruby-lang.org/project/diff-lcs ) but it's poorly documented, and appears to be unmaintained. Are there any good, actively maintained ruby gems for diffing text or html files? 回答1: I looked around and couldn't find an existing gem or library that offered a convenient way to generate diff style output from ruby. I just released diffy which does what I want.

Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error

只愿长相守 提交于 2019-12-29 18:17:52
问题 I have been trying to install RVM and Ruby 2.1.1 onto my new Mac (OS 10.9.2), and everything seems to be going well until I try to install any version of Ruby. My input $ rvm reinstall 2.1 So far so good... ruby-2.1.1 - #removing rubies/ruby-2.1.1.. Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for osx. Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.

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

Cannot run Jekyll new command

你说的曾经没有我的故事 提交于 2019-12-29 06:10:33
问题 I tried to use Jekyll new command, but it didn't work and came out following errors. $ jekyll new myblog /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib/commander/runner.rb:385:in `require_program': program version required (Commander::Runner::CommandError) from /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib/commander/runner.rb:384:in `each' from /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib/commander/runner.rb:384:in `require_program' from /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib