rubygems

How to install rmagick gem on Windows?

冷暖自知 提交于 2019-12-19 06:03:00
问题 How do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don't know where to look to fix these errors. C:\RailsInstaller\ImageMagick-6.8.2-Q16>ruby -v ruby 1.9.3p125 (2012-02-16) [i386-mingw32] C:\RailsInstaller\ImageMagick-6.8.2-Q16>gem -v 1.8.16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>path=%PATH%;C:\RailsInstaller\ImageMagick-6.8.2-Q16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>identify

gem install rails doesn't work due to openssl/ETimedout in windows

佐手、 提交于 2019-12-19 04:36:37
问题 Initially, I have ruby 1.9.3 version installed in my windows 7 and i have installed ruby 2.0.0p195 recently and have tested from command promot ( ruby -v; ruby -e "puts 100"; irb )works pretty well. ruby -v gives ruby 2.0.0p195 (2013-05-14) [i386-mingw32] gem -v gives me 2.0.2 When i'm trying to install rails, I do always get the below error : with http://rubygems.org C:\Users\san>gem install rails --source http://rubygems.org ERROR: Could not find a valid gem 'rails' (>= 0), here is why:

Requiring a Ruby Gem in Ruby Script breaks Cron Job Execution

怎甘沉沦 提交于 2019-12-19 04:22:32
问题 I'm trying to run a cron job using Gems. I've installed ruby via RVM and when I require a gem it breaks the cron job. I've tried requiring two totally different gems, PG / Pry, and when I require either, the cronjob doesn't complete. Here is the "testing code" that works fine: open('/home/log.log', 'a') do |f| f.puts Time.now.to_s end Here is how I setup the cronjob: * * * * * /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/test1.rb I can see new output every minute. And when I add a

Ruby: Any gems for threadpooling?

[亡魂溺海] 提交于 2019-12-19 04:14:14
问题 Is there a gem for threadpooling anyone can recommend? 回答1: From my experience forking/process pooling is much more effective than thereadpooling in Ruby (assuming you do not need much in terms of thread communication). Some time ago I created a gem called process_pool, which is a very basic process pool with a file based job queue (you can check it out here: http://github.com/psyho/process_pool). 回答2: I would try https://github.com/ruby-concurrency/concurrent-ruby/ . It's basically a port of

Installing dm-types on Windows. (Win7 x64)

北城余情 提交于 2019-12-19 03:19:22
问题 I am trying to install dm-types for DataMapper on my machine with gem install dm-types I've installed Ruby from RubyInstaller (1.9.3) and I also have the DevKit installed. (Aswell as some other gems like sinatra, haml, dm-core and bcrypt-ruby). However, when I run "gem install dm-types", this happens. C:\Users\Lev>gem install dm-types Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing dm-types: ERROR: Failed to build

What's a Rails plugin, or Ruby gem, to automatically fix English grammar?

时光怂恿深爱的人放手 提交于 2019-12-19 02:58:13
问题 Facebook just re-launched Comments, with a automatic grammar fixing feature. What does the grammar filter do? Adds punctuation (e.g. periods at the end of sentences) Trims extra whitespace Auto cases words (e.g. capitalize the first word of a sentence) Expands slang words (e.g. plz becomes please) Adds a space after punctuation (e.g. Hi,Cat would become Hi, Cat) Fix common grammar mistakes (e.g. convert ‘dont' to ‘don’t’) What is an equivalent plugin or gem? 回答1: I don't know of anything with

Gem/Bundler load error: can't activate…already activated

蹲街弑〆低调 提交于 2019-12-18 22:16:07
问题 I ran bundle update to update my gems. now I get this when I try to start up the local, development server. Anyone know how to fix? hostname:myapp username$ rails s /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate i18n (~> 0.4.1, runtime) for ["mail-2.2.10", "actionmailer-3.0.3", "rails-3.0.3"], already activated i18n-0.5.0 for ["activemodel-3.0.3", "actionpack-3.0.3", "rails-3.0.3"] (Gem::LoadError) from /Users/username/.rvm/rubies/ruby-1

Get Gem vendor files in asset pipeline path

陌路散爱 提交于 2019-12-18 21:54:43
问题 I have created a gem with a vendor directory containing stylesheets and javascripts from bootstrap-sass and bootstrap itself. The directory structure is bootstrap-sass-gem/vendor/assets/javascripts and bootstrap-sass-gem/vendor/assets/stylesheets I've required the gem in a test project but whenever I try to require something from that gem I receive a Sprockets::FileNotFound error. For instance, in application.css I added *= require bootstrap . bootstrap is located at bootstrap-sass-gem/vendor

Get Gem vendor files in asset pipeline path

青春壹個敷衍的年華 提交于 2019-12-18 21:54:30
问题 I have created a gem with a vendor directory containing stylesheets and javascripts from bootstrap-sass and bootstrap itself. The directory structure is bootstrap-sass-gem/vendor/assets/javascripts and bootstrap-sass-gem/vendor/assets/stylesheets I've required the gem in a test project but whenever I try to require something from that gem I receive a Sprockets::FileNotFound error. For instance, in application.css I added *= require bootstrap . bootstrap is located at bootstrap-sass-gem/vendor

How to fix error caused by libmysqlclient.15.dylib not being loaded?

↘锁芯ラ 提交于 2019-12-18 21:53:24
问题 I've upgraded to Rails 2.2.2 and installed the MySQL 2.7 gem and am seeing this error when I try to run a migration or start the server: dlopen(/Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle, 9): Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle What's the fix? 回答1: I had to remove the directory from the old