Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > BOOK: Ruby on Rails for Microsoft Developers
| Search | Today's Posts | Mark Forums Read
BOOK: Ruby on Rails for Microsoft Developers
This is the forum to discuss the Wrox book Ruby on Rails for Microsoft Developers by Antonio Cangiano; ISBN: 9780470374955
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ruby on Rails for Microsoft Developers section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 13th, 2010, 09:58 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default gem.bat install RedCloth (p 186) and config.gem (p 198)

Hi,
This book is simply great.
I am running into trouble with RedCloth gem isntall. Similarly with the mislav-will_paginate.

here are the two lines in /config/environment.rb

config.gem "RedCloth", :version => ">=3.301", :source => "http://code.whytheluckystiff.net"

config.gem 'mislav-will_paginate', :version => '>2.3.2', :lib => 'will_paginate', :source => 'http://gems.github.com'

And here is the sad reply:


C:\Ruby\projects\blog>rake gems:install
(in C:/Ruby/projects/blog)
gem.bat install RedCloth --version ">= 3.301" --source http://code.whytheluckystiff.net
ERROR: http://code.whytheluckystiff.net/ does not appear to be a repository
ERROR: could not find gem RedCloth locally or in a repository

gem.bat install mislav-will_paginate --version "> 2.3.2" --source http://gems.github.com
ERROR: http://gems.github.com/ does not appear to be a repository
ERROR: could not find gem mislav-will_paginate locally or in a repository

Granted i tried to change the RedCloth address to rubyforge's but same problem.

Can anyone help?.
It sort of stalls my learning!

ah one last thing the versions are:
C:\Ruby\projects\blog>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

C:\Ruby\projects\blog>gem -v
1.3.5
 
Old January 13th, 2010, 11:09 AM
Registered User
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

thank you for your kind words. Regarding the errors, they are due to two events in the Ruby community:
  • Why the lucky stiff, the persona behind RedCloth, decided to disappear from the community. His code is still around, but his sites are no longer active;
  • GitHub stopped serving gems, in favor of GemCutter.
For RedCloth you will need to first install the gem:

Code:
gem install RedCloth


And then specify the dependency in config/environment.rb:

Code:
config.gem "RedCloth", :lib => "redcloth"
For will_paginate, you can use:

Code:
config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'
I hope this solves the issues you've encountered.

All the best,
Antonio
 
Old January 13th, 2010, 11:48 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RedCloth blues

Thank you for your prompt reply.

just at the console i issued the command as you adviced: but alas....

C:\Ruby>gem install RedCloth
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem RedCloth locally or in a repository

Then it occured to me that there was a problem with our security system.
so i figured and found out our proxy.
gem install -help gave me the http-proxy switch.
i manually installed the two gems with success!

thank you again so much for this help and this great book.




Similar Threads
Thread Thread Starter Forum Replies Last Post
gem has no -system option. erik8085 BOOK: Ruby on Rails for Microsoft Developers 1 October 27th, 2009 06:29 AM
date()-186 crmpicco Classic ASP Components 3 January 31st, 2005 12:31 PM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.