From halostatue at gmail.com Sat Jan 1 09:07:53 2005 From: halostatue at gmail.com (Austin Ziegler) Date: Sat Jan 1 09:06:01 2005 Subject: [Rubygems-developers] Wiki Spam -- GRRRRRR! In-Reply-To: <48424.192.223.163.6.1104424485.squirrel@weirichhouse.org> References: <1104422899.8234.18.camel@hal> <48424.192.223.163.6.1104424485.squirrel@weirichhouse.org> Message-ID: <9e7db911050101060749f9a5c@mail.gmail.com> Ruwiki doesn't support the full feature set, but authentication is working. I haven't had time to update the pages on the Ruwiki website, but look at ruwiki.rubyforge.org -- you can't edit pages there unless you're logged in as a RubyForge user. If Tom and others want to install it centrally (using the 0.9.x gem) and make it available as an option, we can do that now. -austin On Thu, 30 Dec 2004 16:34:45 -0000 (UTC), Jim Weirich wrote: > > Tom Copeland said: > > On Thu, 2004-12-30 at 10:54, Curt Hibbs wrote: > >> I thought that your usemod patch had been installed on the RubyGems wiki > >> (the one that requires HTTP instead of http for external links). Am I > >> wrong > >> about this? > > > > It wasn't, but now it is, and I've converted the "http"s on the front > > page to be "HTTP"s. > > Thanks. I was actually despamming pages (yes, again, the same 30 pages > even!) while you did the install. For about a 30 seconds the pages were > all coming back empty! Wow, did I panic. > > Then the pages came back and I started getting external link errors and I > suspected that you were busy behind the scenes. > > Thanks! I hope this will hold us until the RuWiki authorization is in place. > > -- > -- Jim Weirich jim@weirichhouse.org http://onestepback.org > ----------------------------------------------------------------- > "Beware of bugs in the above code; I have only proved it correct, > not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca From assaph at gmail.com Tue Jan 4 17:45:30 2005 From: assaph at gmail.com (Assaph Mehr) Date: Tue Jan 4 17:43:32 2005 Subject: [Rubygems-developers] [BUG?] 'No metadata found' using gems 0.8.4 Message-ID: <3ff47be90501041445791a6201@mail.gmail.com> Hi, Due to unfortunate setup at work (authenticating proxy), I have to manually download .gem files and install locally. Using RubyGems 0.8.4, I am no longer able to do that for new gems: c:\Tools\Ruby\gems>gem i rubyslippers-0.93.gem Attempting local installation of 'rubyslippers-0.93.gem' ERROR: Error installing gem rubyslippers-0.93.gem[.gem]: No metadata found! c:\Tools\Ruby\gems>gem env Rubygems Environment: - VERSION: 0.8.4 (0.8.4) - INSTALLATION DIRECTORY: c:/bin/ruby/lib/ruby/gems/1.8 - GEM PATH: - c:/bin/ruby/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org Funny thing is that if I try to install an already installed gem (repeat install of exact version) it installs OK. Tried going back to 0.8.3: some gems installed OK, some still game the 'no metadata found' error. As an aside, what happened to the --backtrace option? I wanted to include it in the report. Also, I didn't see any difference between the output of gem list --details and --no-details. Cheers, Assaph ps. Anybody know (regardless of gems) if net/http can handle authenticating proxies? I am unable to get it to work (keep getting 407 HTTPProxyAuthenticationRequired errors). From twa at post.com Tue Jan 4 16:03:42 2005 From: twa at post.com (Tom Ayerst) Date: Tue Jan 4 18:37:10 2005 Subject: [Rubygems-developers] Trouble installing gems through firewall Message-ID: <41DB04AE.9060203@post.com> Hi, I posted this to the rubygems help forum but looking at the amount of traffic there I thought I would post it here too. Sorry if its the wrong place... I am trying to install gems from behind a firewall. I am using the one-click ruby 1.8.2 final installation on Windows XP I am getting: C:\Dev\ruby_stuff>gem install --debug -p incache rails C:\Dev\ruby_stuff>"c:\dev\ruby\bin\ruby.exe" "c:\dev\ruby\bin\gem" install --debug -p incache rails Attempting local installation of 'rails' Local gem file not found: rails*.gem Attempting remote installation of 'rails' Updating Gem source index for: http://gems.rubyforge.org Exception `NoMethodError' at c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined method `proxy_open' for # Exception `NoMethodError' at c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined method `proxy_open' for # ERROR: While executing gem ... (NoMethodError) undefined method `proxy_open' for # C:\Dev\ruby_stuff>gem update --debug -p incache C:\Dev\ruby_stuff>"c:\dev\ruby\bin\ruby.exe" "c:\dev\ruby\bin\gem" update --debug -p incache Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org Exception `NoMethodError' at c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined method `proxy_open' for # Exception `NoMethodError' at c:/dev/ruby/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:167 - undefined method `proxy_open' for # ERROR: While executing gem ... (NoMethodError) undefined method `proxy_open' for # C:\Dev\ruby_stuff> I downloaded rubygems 0.8.4 and used: gem install rubygems-update-0.8.4.gem (ah, probably should have been gem update...) but when I type gem -v it still comes up 0.8.3. As usal I am probably doing something dumb but any pointers would be appreciated. thanks Tom -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004 From assaph at gmail.com Tue Jan 4 18:46:17 2005 From: assaph at gmail.com (Assaph Mehr) Date: Tue Jan 4 18:44:15 2005 Subject: [Rubygems-developers] Trouble installing gems through firewall In-Reply-To: <41DB04AE.9060203@post.com> References: <41DB04AE.9060203@post.com> Message-ID: <3ff47be9050104154610c048d7@mail.gmail.com> Not sure, but it looks like a proxy problem. I think it want's the protocol and port of your proxy as well. You can try: > C:\Dev\ruby_stuff>gem install --debug -p incache rails gem install --debug -p http://incache/ rails or better be explicit about the port (assuming port 80 on the proxy): gem install --debug -p http://incache:80/ rails HTH, Assaph From assaph at gmail.com Tue Jan 4 18:47:44 2005 From: assaph at gmail.com (Assaph Mehr) Date: Tue Jan 4 18:45:42 2005 Subject: [Rubygems-developers] Re: [BUG?] 'No metadata found' using gems 0.8.4 In-Reply-To: <3ff47be90501041445791a6201@mail.gmail.com> References: <3ff47be90501041445791a6201@mail.gmail.com> Message-ID: <3ff47be90501041547672c1cbb@mail.gmail.com> Just found the --debug options: c:\Tools\Ruby\gems>gem i --debug actionmailer-0.5.0.gem Attempting local installation of 'actionmailer-0.5.0.gem' Exception `RuntimeError' at c:/bin/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:498 - No metadata found! ERROR: Error installing gem actionmailer-0.5.0.gem[.gem]: No metadata found! HTH, Assaph On Wed, 5 Jan 2005 09:45:30 +1100, Assaph Mehr wrote: > Hi, > > Due to unfortunate setup at work (authenticating proxy), I have to > manually download .gem files and install locally. Using RubyGems > 0.8.4, I am no longer able to do that for new gems: > > c:\Tools\Ruby\gems>gem i rubyslippers-0.93.gem > Attempting local installation of 'rubyslippers-0.93.gem' > ERROR: Error installing gem rubyslippers-0.93.gem[.gem]: No metadata found! > > c:\Tools\Ruby\gems>gem env > Rubygems Environment: > - VERSION: 0.8.4 (0.8.4) > - INSTALLATION DIRECTORY: c:/bin/ruby/lib/ruby/gems/1.8 > - GEM PATH: > - c:/bin/ruby/lib/ruby/gems/1.8 > - REMOTE SOURCES: > - http://gems.rubyforge.org > > Funny thing is that if I try to install an already installed gem > (repeat install of exact version) it installs OK. Tried going back to > 0.8.3: some gems installed OK, some still game the 'no metadata found' > error. > > As an aside, what happened to the --backtrace option? I wanted to > include it in the report. > Also, I didn't see any difference between the output of gem list > --details and --no-details. > > Cheers, > Assaph > > ps. Anybody know (regardless of gems) if net/http can handle > authenticating proxies? I am unable to get it to work (keep getting > 407 HTTPProxyAuthenticationRequired errors). > From jim at weirichhouse.org Tue Jan 4 23:01:41 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Tue Jan 4 22:57:30 2005 Subject: [Rubygems-developers] [BUG?] 'No metadata found' using gems 0.8.4 In-Reply-To: <3ff47be90501041445791a6201@mail.gmail.com> References: <3ff47be90501041445791a6201@mail.gmail.com> Message-ID: <200501042301.42000.jim@weirichhouse.org> On Tuesday 04 January 2005 05:45 pm, Assaph Mehr wrote: > Hi, > > Due to unfortunate setup at work (authenticating proxy), I have to > manually download .gem files and install locally. Using RubyGems > 0.8.4, I am no longer able to do that for new gems: > > c:\Tools\Ruby\gems>gem i rubyslippers-0.93.gem > Attempting local installation of 'rubyslippers-0.93.gem' > ERROR: Error installing gem rubyslippers-0.93.gem[.gem]: No metadata > found! How ... interesting :) I just ran the above command on my Debian box and it had no problems. Is the downloaded file corrupted? Run the following script on the rubyslippers gem and see what you get. #!/usr/bin/env ruby require 'md5' ARGV.each do |file_name| data = open(file_name, 'rb') { |f| f.read } md5 = MD5.new(data) printf "%s %s\n", md5.hexdigest, file_name end I get ... e317f49d28b04ddfc68e4a2480b9ea37 rubyslippers-0.93.gem -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From jim at weirichhouse.org Tue Jan 4 23:15:34 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Tue Jan 4 23:11:23 2005 Subject: [Rubygems-developers] [BUG?] 'No metadata found' using gems 0.8.4 In-Reply-To: <3ff47be90501041445791a6201@mail.gmail.com> References: <3ff47be90501041445791a6201@mail.gmail.com> Message-ID: <200501042315.34105.jim@weirichhouse.org> On Tuesday 04 January 2005 05:45 pm, Assaph Mehr wrote: > As an aside, what happened to the --backtrace option? I wanted to > include it in the report. The backtrace option is still there, however the local installer traps that error, displays an error message and returns. I'm making a note to rework that error handler to allow the exception to propagate up to the top level handler (where backtrace is implemented). > Also, I didn't see any difference between the output of gem list > --details and --no-details. Hmmm ... it seems that --details is an option that is settable, but never tested. It should probably be removed (or implemented). Thanks for the feedback. Little details like this really make a difference. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From jim at weirichhouse.org Wed Jan 5 13:04:22 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Wed Jan 5 13:02:19 2005 Subject: [Rubygems-developers] (no subject) Message-ID: <32400.192.223.163.6.1104948262.squirrel@weirichhouse.org> Paul Haddad said: > I'm trying to install the postgres and mysql gems, but neither are > working since I've installed the libraries in a non standard location > (/usr/local/psql/lib /usr/local/mysql/lib). Is it possible to install > the gems with this setup (would probably need to pass an arg to the > configure portion of the build). > --- > Paul Haddad (paul@pth.com) Paul, the gem command will ignore parameters after a double dash (--). So you can pass build parameters to the gem command like this ... gem install blah.gem --remote -- --with-gcc I've not done this personally (and the docs are real vague in this area) so I'm copying the rubygems-dev mailing list so someone there can double check my answer. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From chad at chadfowler.com Wed Jan 5 15:56:16 2005 From: chad at chadfowler.com (chad@chadfowler.com) Date: Wed Jan 5 14:50:07 2005 Subject: [Rubygems-developers] (no subject) In-Reply-To: <32400.192.223.163.6.1104948262.squirrel@weirichhouse.org> References: <32400.192.223.163.6.1104948262.squirrel@weirichhouse.org> Message-ID: <53390.216.77.69.67.1104958576.squirrel@216.77.69.67> > Paul Haddad said: >> I'm trying to install the postgres and mysql gems, but neither are >> working since I've installed the libraries in a non standard location >> (/usr/local/psql/lib /usr/local/mysql/lib). Is it possible to install >> the gems with this setup (would probably need to pass an arg to the >> configure portion of the build). >> --- >> Paul Haddad (paul@pth.com) > > Paul, the gem command will ignore parameters after a double dash (--). So > you can pass build parameters to the gem command like this ... > > gem install blah.gem --remote -- --with-gcc > > I've not done this personally (and the docs are real vague in this area) > so I'm copying the rubygems-dev mailing list so someone there can double > check my answer. > I've done this personally, and it should work as advertised. Please let us know if you have problems! Thanks, Chad From retsofaj at mac.com Thu Jan 6 00:21:07 2005 From: retsofaj at mac.com (Jason Foster) Date: Thu Jan 6 00:19:07 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 Message-ID: > hook /Users/jafoster/Downloads/rubygems-0.8.4/./post-install.rb failed: > wrong # of arguments(2 for 1) Ummm... help? Thanks! From chad at chadfowler.com Thu Jan 6 06:58:21 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 6 06:56:14 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: References: Message-ID: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> On 06-Jan-05, at 12:21 AM, Jason Foster wrote: >> hook /Users/jafoster/Downloads/rubygems-0.8.4/./post-install.rb >> failed: >> wrong # of arguments(2 for 1) > > Ummm... help? Thanks! > > Jason, Were you sitting in the rubygems directory when you ran setup.rb? Meaning, did you do something like: $ tar xzvf rubygems-0.8.4.tar.gz $ cd rubygems-0.8.4 $ sudo ruby setup.rb ? Thanks, Chad From retsofaj at mac.com Thu Jan 6 11:34:21 2005 From: retsofaj at mac.com (Jason Foster) Date: Thu Jan 6 11:32:18 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> References: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> Message-ID: > Were you sitting in the rubygems directory when you ran setup.rb? > Meaning, did you do something like: > > $ tar xzvf rubygems-0.8.4.tar.gz > $ cd rubygems-0.8.4 > $ sudo ruby setup.rb Close. My sequence went as per (I think) the instructions... > $ tar xzvf rubygems-0.8.4.tar.gz > $ cd rubygems-0.8.4 > $ sudo ruby setup.rb config > $ sudo ruby setup.rb setup > $ sudo ruby setup.rb install I'm figuring that it's a Mac-ism, but don't know how to diagnose :( From chad at chadfowler.com Thu Jan 6 12:52:39 2005 From: chad at chadfowler.com (chad@chadfowler.com) Date: Thu Jan 6 11:46:10 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: References: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> Message-ID: <62776.216.77.69.67.1105033959.squirrel@216.77.69.67> >> Were you sitting in the rubygems directory when you ran setup.rb? >> Meaning, did you do something like: >> >> $ tar xzvf rubygems-0.8.4.tar.gz >> $ cd rubygems-0.8.4 >> $ sudo ruby setup.rb > > Close. My sequence went as per (I think) the instructions... > >> $ tar xzvf rubygems-0.8.4.tar.gz >> $ cd rubygems-0.8.4 >> $ sudo ruby setup.rb config >> $ sudo ruby setup.rb setup >> $ sudo ruby setup.rb install > > I'm figuring that it's a Mac-ism, but don't know how to diagnose :( > > Hmm....I do everything on a Mac. So does Rich. I doubt it's a Mac-ism in that case. Let me try this again when I get home to see if I can reproduce. Thanks, Chad From jim at weirichhouse.org Thu Jan 6 13:04:16 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Thu Jan 6 13:02:12 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: References: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> Message-ID: <52520.192.223.163.6.1105034656.squirrel@weirichhouse.org> Jason Foster said: > Close. My sequence went as per (I think) the instructions... > >> $ tar xzvf rubygems-0.8.4.tar.gz >> $ cd rubygems-0.8.4 >> $ sudo ruby setup.rb config >> $ sudo ruby setup.rb setup >> $ sudo ruby setup.rb install I just helped a friend install rubygems 0.8.4 on their Mac on Tuesday. We did exactly those steps except that we only used sudo on the install step. config and setup were performed as a non-root user. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From retsofaj at mac.com Thu Jan 6 13:53:08 2005 From: retsofaj at mac.com (Jason Foster) Date: Thu Jan 6 13:51:08 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: <52520.192.223.163.6.1105034656.squirrel@weirichhouse.org> References: <4330463C-5FDA-11D9-B291-000D9337C01C@chadfowler.com> <52520.192.223.163.6.1105034656.squirrel@weirichhouse.org> Message-ID: <34B157E4-6014-11D9-B567-000A95BC7B88@mac.com> I have isolated the problem to... > if is_apparent_stub[file] ... in post-install.rb In my case "file" evaluates to "/usr/local/lib/ruby/site_ruby/1.6/rubygems.rb". From wenn0029 at tc.umn.edu Thu Jan 6 15:41:38 2005 From: wenn0029 at tc.umn.edu (Trevor) Date: Thu Jan 6 15:39:41 2005 Subject: [Rubygems-developers] my interesting path problems Message-ID: <41DDA282.8080607@tc.umn.edu> Hello, Origionally I had started a discussion on the Rails list regarding this issue, but I think it's more related to Gems than Rails. It seems particular to my installation on an sgi-solaris machine, as I tried the exact same installation on a Linux box and it worked perfectly. machine > gem /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in `require': No such file to load -- rubygems/builder (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:58:in `manage_gems' from /opt/local/bin/gem:4 If I create a script with the following: #--- require 'rubygems' require 'rake' puts $LOAD_PATH puts Gem.path #--- machine > ruby testpath.rb /usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/bin /usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib /usr/local/lib/ruby/site_ruby/1.8 /usr/local/lib/ruby/site_ruby/1.8/sparc-solaris2.7 /usr/local/lib/ruby/site_ruby /usr/local/lib/ruby/1.8 /usr/local/lib/ruby/1.8/sparc-solaris2.7 . /usr/local/lib/ruby/gems/1.8 If I create another script with the following: #--- require 'rubygems' require 'rake/gempackagetask' puts $LOAD_PATH puts Gem.path #--- machine > ruby testpath.rb /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in `require': No such file to load -- rubygems/builder (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:58:in `manage_gems' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib/rake/gempackagetask.rb:11 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in `require__' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in `require' from testpath.rb:2 If I create a third script with the following: #--- require 'rubygems' require 'rake/runtest.rb' puts $LOAD_PATH puts Gem.path #--- machine > ruby testpath.rb /usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/bin /usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib /usr/local/lib/ruby/site_ruby/1.8 /usr/local/lib/ruby/site_ruby/1.8/sparc-solaris2.7 /usr/local/lib/ruby/site_ruby /usr/local/lib/ruby/1.8 /usr/local/lib/ruby/1.8/sparc-solaris2.7 . /usr/local/lib/ruby/gems/1.8 Loaded suite testpath Started Finished in 0.001528 seconds. 0 tests, 0 assertions, 0 failures, 0 errors The admin for this machine says that she was able to get gem to run once (to install Rails and the dependencies), however it seems to have developed some sort of path issue in the 24hrs following the install. Does anybody have any ideas how I could diagnose and solve this problem? Thanks for any help you may have, Trevor From mneumann at ntecs.de Sun Jan 9 10:40:45 2005 From: mneumann at ntecs.de (Michael Neumann) Date: Sun Jan 9 10:38:39 2005 Subject: [Rubygems-developers] Can't install a gem local which has a remote dependency. Message-ID: <200501091640.45639.mneumann@ntecs.de> Hi, I've build a gem using "gem build xxx.gem", which depends on "wee-0.3.1" (add_dependency('wee', '>= 0.3.1')). But if I try to install it via "gem install xxx.gem", the following error is raised: > gem install nemo-0.1.0.gem Attempting local installation of 'nemo-0.1.0.gem' -> Local installation can't proceed due to LoadError: Could not find RubyGem wee (>= 0.3.1) Attempting remote installation of 'nemo-0.1.0.gem' ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find nemo-0.1.0.gem (> 0) in the repository Seems like rubygems is not able to handle mixed remote/local installations? Regards, Michael From chad at chadfowler.com Sun Jan 9 16:51:01 2005 From: chad at chadfowler.com (chad@chadfowler.com) Date: Sun Jan 9 15:44:23 2005 Subject: [Rubygems-developers] Can't install a gem local which has a remote dependency. In-Reply-To: <200501091640.45639.mneumann@ntecs.de> References: <200501091640.45639.mneumann@ntecs.de> Message-ID: <3404.12.202.18.137.1105307461.squirrel@12.202.18.137> > Hi, > > I've build a gem using "gem build xxx.gem", which depends on > "wee-0.3.1" (add_dependency('wee', '>= 0.3.1')). But if I try to install > it > via "gem install xxx.gem", the following error is raised: > >> gem install nemo-0.1.0.gem > Attempting local installation of 'nemo-0.1.0.gem' > -> Local installation can't proceed due to LoadError: > Could not find RubyGem wee (>= 0.3.1) > Attempting remote installation of 'nemo-0.1.0.gem' > ERROR: While executing gem ... (Gem::GemNotFoundException) > Could not find nemo-0.1.0.gem (> 0) in the repository > > > Seems like rubygems is not able to handle mixed remote/local > installations? > That's correct. It's an intentional (but bad) decision we made. I believe Jim has something in the works that will unify remote vs. local and allow us to easily support this. It's a definite must-have change for v 1.0. Chad From wenn0029 at tc.umn.edu Sun Jan 9 18:04:33 2005 From: wenn0029 at tc.umn.edu (Trevor) Date: Sun Jan 9 18:02:29 2005 Subject: [Rubygems-developers] Problems with fresh install on Ubuntu: No such file to load -- rubygems/builder (LoadError) In-Reply-To: References: Message-ID: <41E1B881.9040307@tc.umn.edu> Continuing to work with my RubyGems install issues, I setup a fresh installation of Ubuntu Linux to test it out. All the latest Ubuntu packages are installed ("hoary") with the available ruby packages (ruby1.8-dev, ruby1.8, libruby1.8, libruby1.8-d). I've attempted to install RubyGems, but get "No such file to load -- rubygems/builder (LoadError)". The full output is listed below. I believe this is related to my other problems on a sgi-solaris machine, if I could figure out a fix for this than I may be able to fix those as well. Thanks for any help or suggestions any one has to offer. This is a very frustrating problem that's affecting me in multiple environments and I have no idea where to start with it. root@tabby:~/rubygems-0.8.4 # ruby -v ruby 1.8.2 (2004-12-23) [i386-linux] root@tabby:~/rubygems-0.8.4 # ruby setup.rb ---> bin <--- bin ---> lib ---> lib/rubygems <--- lib/rubygems <--- lib ---> bin <--- bin ---> lib ---> lib/rubygems <--- lib/rubygems <--- lib rm -f InstalledFiles ---> bin mkdir -p /usr/bin/ install generate_yaml_index.rb /usr/bin/ install update_rubygems /usr/bin/ install gem_server /usr/bin/ install gem /usr/bin/ <--- bin ---> lib mkdir -p /usr/local/lib/site_ruby/1.8/ install rubygems.rb /usr/local/lib/site_ruby/1.8/ install ubygems.rb /usr/local/lib/site_ruby/1.8/ ---> lib/rubygems mkdir -p /usr/local/lib/site_ruby/1.8/rubygems install timer.rb /usr/local/lib/site_ruby/1.8/rubygems install specification.rb /usr/local/lib/site_ruby/1.8/rubygems install source_index.rb /usr/local/lib/site_ruby/1.8/rubygems install old_format.rb /usr/local/lib/site_ruby/1.8/rubygems install command.rb /usr/local/lib/site_ruby/1.8/rubygems install custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems install installer.rb /usr/local/lib/site_ruby/1.8/rubygems install validator.rb /usr/local/lib/site_ruby/1.8/rubygems install remote_installer.rb /usr/local/lib/site_ruby/1.8/rubygems install config_file.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems install format.rb /usr/local/lib/site_ruby/1.8/rubygems install open-uri.rb /usr/local/lib/site_ruby/1.8/rubygems install rubygems_version.rb /usr/local/lib/site_ruby/1.8/rubygems install loadpath_manager.rb /usr/local/lib/site_ruby/1.8/rubygems install doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems install builder.rb /usr/local/lib/site_ruby/1.8/rubygems install cmd_manager.rb /usr/local/lib/site_ruby/1.8/rubygems install package.rb /usr/local/lib/site_ruby/1.8/rubygems install version.rb /usr/local/lib/site_ruby/1.8/rubygems install gem_commands.rb /usr/local/lib/site_ruby/1.8/rubygems install user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems <--- lib/rubygems <--- lib As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in `require': No such file to load -- rubygems/builder (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:58:in `manage_gems' from /root/rubygems-0.8.4/./post-install.rb:63:in `install_sources' from /root/rubygems-0.8.4/./post-install.rb:74:in `instance_eval' from setup.rb:583:in `instance_eval' from setup.rb:583:in `try_run_hook' from setup.rb:577:in `run_hook' from setup.rb:1315:in `exec_task_traverse' from setup.rb:1168:in `exec_install' from setup.rb:887:in `exec_install' from setup.rb:705:in `invoke' from setup.rb:674:in `invoke' from setup.rb:1352 root@tabby:~/rubygems-0.8.4 # Thanks again, Trevor From ned at squeakland.org Mon Jan 10 14:43:41 2005 From: ned at squeakland.org (Ned Konz) Date: Mon Jan 10 14:41:27 2005 Subject: [Rubygems-developers] Undocumented requirement for rdoc? Message-ID: <200501101143.42049.ned@squeakland.org> Hi folks, I'm new to the list. I've not been too active with Ruby for the last couple years (I've been Squeaking instead), but just wanted to try out Rubygems and Pimki. I just downloaded rubygems 0.8.4, and had a problem using it: $ sudo gem install Pimki Attempting local installation of 'Pimki' Local gem file not found: Pimki*.gem Attempting remote installation of 'Pimki' Successfully installed Pimki, version 1.3.092 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in `require': No such file to load -- rdoc/rdoc (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb:42:in `generate_rdoc' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:175:in `execute' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:174:in `each' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:174:in `execute' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:129:in `each' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:129:in `execute' from /usr/local/lib/site_ruby/1.8/rubygems/command.rb:49:in `invoke' from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:90:in `process_args' from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' from /usr/bin/gem:11 $ locate '*rdoc/rdoc*' $ I have a Debian Linux system, with Ruby 1.8.2 installed. In my case, I needed to install the 'rdoc1.8' package. Perhaps Rubygems should install rdoc if it needs it? Thanks, -- Ned Konz http://bike-nomad.com/squeak/ From halostatue at gmail.com Mon Jan 10 15:37:44 2005 From: halostatue at gmail.com (Austin Ziegler) Date: Mon Jan 10 15:35:28 2005 Subject: [Rubygems-developers] Undocumented requirement for rdoc? In-Reply-To: <200501101143.42049.ned@squeakland.org> References: <200501101143.42049.ned@squeakland.org> Message-ID: <9e7db911050110123770371982@mail.gmail.com> On Mon, 10 Jan 2005 11:43:41 -0800, Ned Konz wrote: > I'm new to the list. I've not been too active with Ruby for the > last couple years (I've been Squeaking instead), but just wanted > to try out Rubygems and Pimki. > > I just downloaded rubygems 0.8.4, and had a problem using it: > > $ sudo gem install Pimki > Attempting local installation of 'Pimki' > Local gem file not found: Pimki*.gem > Attempting remote installation of 'Pimki' > Successfully installed Pimki, version 1.3.092 > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in > `require': No such file to load -- rdoc/rdoc (LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb:42:in > `generate_rdoc' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:175:in > `execute' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:174:in > `each' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:174:in > `execute' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:129:in > `each' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:129:in > `execute' > from /usr/local/lib/site_ruby/1.8/rubygems/command.rb:49:in > `invoke' > from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:90:in > `process_args' > from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:63:in > `run' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:9:in > `run' > from /usr/bin/gem:11 > $ locate '*rdoc/rdoc*' > I have a Debian Linux system, with Ruby 1.8.2 installed. In my > case, I needed to install the 'rdoc1.8' package. > Perhaps Rubygems should install rdoc if it needs it? This is not a problem of Rubygems. This is a problem of idiotic Debian package maintainers (although to be fair, I don't think that Debian is the only one that's done this, they're just the most frequent problem on this matter). RDoc (and ri) is part of the standard Ruby 1.8 distribution, which means that Rubygems is not in a position to install it -- it's simply supposed to be there. The Debian maintainers have seen fit to keep it separate (as it was in Ruby 1.6). Debian users are advised to use the meta packages until the Debian package maintainers get the message and either make this clearer or make Debian/Ruby packages work right from the get go. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca From assaph at gmail.com Mon Jan 10 16:48:41 2005 From: assaph at gmail.com (Assaph Mehr) Date: Mon Jan 10 16:46:25 2005 Subject: [Rubygems-developers] Undocumented requirement for rdoc? In-Reply-To: <200501101143.42049.ned@squeakland.org> References: <200501101143.42049.ned@squeakland.org> Message-ID: <3ff47be90501101348680635ff@mail.gmail.com> > I'm new to the list. I've not been too active with Ruby for the last couple years > (I've been Squeaking instead), but just wanted to try out Rubygems and Pimki. > > I just downloaded rubygems 0.8.4, and had a problem using it: > > $ sudo gem install Pimki Hi Ned, As stated this particular problem is probably a debian issue. However if you run into any other issues with Pimki please let me know. Cheers, Assaph From drbrain at segment7.net Mon Jan 10 20:47:21 2005 From: drbrain at segment7.net (Eric Hodel) Date: Mon Jan 10 20:45:48 2005 Subject: [Rubygems-developers] Fwd: [FreeBSD-Announce] FreeBSD ports scheduled for removal Message-ID: Begin forwarded message: > From: Kris Kennaway > Date: 08 January 2005 21:41:44 PST > To: announce@FreeBSD.org > Subject: [FreeBSD-Announce] FreeBSD ports scheduled for removal > > Dear FreeBSD users, > > The following ports are scheduled for removal over the next few > months, if they are still unbuildable at the scheduled removal time > and no PRs have been submitted to fix them. If you are interested in > saving these ports, please send your patches to the maintainer listed > below. If the maintainer is unresponsive or the maintainer is listed > as "ports@FreeBSD.org" (i.e. the port is unmaintained), then please > submit the fix via send-pr(1) (and consider volunteering to maintain > these or other unmaintained ports to help out the FreeBSD community). > > In most cases, the build error logs can be obtained from > > http://pointyhat.freebsd.org/ > > Further information can be obtained from the CVS commit logs at > > http://cvsweb.freebsd.org/ports/ > > If you use any of these ports and wish to keep them in the ports > collection, please act now! > > Kris "Port Reaper" Kennaway > > Port Listed maintainer Removal date > ==================================================================== [...] > devel/ruby-gems alecn2002@yandex.ru 2005-02-18 [...] I'll see if I can get a PR in to fix this, but I can't guarantee I'll have time. Does anybody else have a FreeBSD box handy? -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20050110/07f2312e/PGP.bin From drbrain at segment7.net Mon Jan 10 20:52:19 2005 From: drbrain at segment7.net (Eric Hodel) Date: Mon Jan 10 20:50:44 2005 Subject: [Rubygems-developers] Fwd: [FreeBSD-Announce] FreeBSD ports scheduled for removal In-Reply-To: References: Message-ID: <6D98BC4D-6373-11D9-A888-000D93436DA0@segment7.net> On 10 Jan 2005, at 17:47, Eric Hodel wrote: > Begin forwarded message: > >> Port Listed maintainer Removal date >> ==================================================================== > [...] >> devel/ruby-gems alecn2002@yandex.ru 2005-02-18 > [...] > > I'll see if I can get a PR in to fix this, but I can't guarantee I'll > have time. Does anybody else have a FreeBSD box handy? Actually, the port has a PR attached, but for an old version: http://portsmon.firepipe.net/portoverview.py? category=devel&portname=ruby-gems&wildcard= -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20050110/9b50ab7e/PGP.bin From nakohl at gmail.com Mon Jan 10 22:28:24 2005 From: nakohl at gmail.com (Neil Kohl) Date: Mon Jan 10 22:26:08 2005 Subject: [Rubygems-developers] [PATCH] Authenticated proxy support Message-ID: <7530f5cc05011019282989704d@mail.gmail.com> Hi, all. At work I'm behind a proxy server that requires authentication. I noticed on the list archives that this isn't supported by rubygems. After a bit of tinkering I came up with the attached patch that adds support. Username and password must be part of the proxy URL, http://user:password@proxy.mycompany.com:8080/ Notes and caveats: * I'm a complete ruby newbie so please sanity check this code. * Patch modifies open-uri.rb and remote_installer.rb which appear to be the only files that contain methods that do network stuff. * The patch was tested on Windows XP and Mac OS X installs of ruby 1.8.2 and gem 0.8.4 against two different proxy servers. It was tested for installation (gem install) ?and remote search (gem query -r ). * Proxy login is Basic only and will fail if NTLM authentication is required. ?NTLM is a royal pain to implement. Cheers! -- Neil Kohl nakohl@gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: proxy-auth.patch Type: application/octet-stream Size: 1495 bytes Desc: not available Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20050110/16dcdfcc/proxy-auth.obj From chad at chadfowler.com Tue Jan 11 08:02:11 2005 From: chad at chadfowler.com (Chad Fowler) Date: Tue Jan 11 07:59:57 2005 Subject: [Rubygems-developers] Fwd: [FreeBSD-Announce] FreeBSD ports scheduled for removal In-Reply-To: <6D98BC4D-6373-11D9-A888-000D93436DA0@segment7.net> References: <6D98BC4D-6373-11D9-A888-000D93436DA0@segment7.net> Message-ID: <0223B87A-63D1-11D9-8CE7-000A95F02B4A@chadfowler.com> On Jan 10, 2005, at 8:52 PM, Eric Hodel wrote: > On 10 Jan 2005, at 17:47, Eric Hodel wrote: > >> Begin forwarded message: >> >>> Port Listed maintainer Removal date >>> ==================================================================== >> [...] >>> devel/ruby-gems alecn2002@yandex.ru 2005-02-18 >> [...] >> >> I'll see if I can get a PR in to fix this, but I can't guarantee I'll >> have time. Does anybody else have a FreeBSD box handy? > > Actually, the port has a PR attached, but for an old version: > > http://portsmon.firepipe.net/portoverview.py? > category=devel&portname=ruby-gems&wildcard= > Thanks, Eric. I can't tell obviously what's wrong by looking at this (I also don't have a freebsd box ATM). It would be great for it not to go away, though. Chad From chad at chadfowler.com Tue Jan 11 08:04:38 2005 From: chad at chadfowler.com (Chad Fowler) Date: Tue Jan 11 08:02:24 2005 Subject: [Rubygems-developers] [PATCH] Authenticated proxy support In-Reply-To: <7530f5cc05011019282989704d@mail.gmail.com> References: <7530f5cc05011019282989704d@mail.gmail.com> Message-ID: <598D876E-63D1-11D9-8CE7-000A95F02B4A@chadfowler.com> Thanks, Neil! I have a bit of concern about the need to patch open-uri.rb, since that's something we're only temporarily including (it's a more up-to-date version of a lib that ships with Ruby). Would it be possible to do what you've done without the need to patch open-uri? Much appreciated! Chad On Jan 10, 2005, at 10:28 PM, Neil Kohl wrote: > n From wenn0029 at tc.umn.edu Tue Jan 11 18:12:13 2005 From: wenn0029 at tc.umn.edu (Trevor) Date: Tue Jan 11 18:09:13 2005 Subject: [Rubygems-developers] Problems with fresh install on Ubuntu: No such file to load -- rubygems/builder (LoadError) In-Reply-To: <41E1B881.9040307@tc.umn.edu> References: <41E1B881.9040307@tc.umn.edu> Message-ID: <41E45D4D.1020006@tc.umn.edu> Trevor wrote: > > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in > `require': No such file to load -- rubygems/builder (LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:58:in `manage_gems' > from /root/rubygems-0.8.4/./post-install.rb:63:in > `install_sources' > from /root/rubygems-0.8.4/./post-install.rb:74:in `instance_eval' > from setup.rb:583:in `instance_eval' > from setup.rb:583:in `try_run_hook' > from setup.rb:577:in `run_hook' > from setup.rb:1315:in `exec_task_traverse' > from setup.rb:1168:in `exec_install' > from setup.rb:887:in `exec_install' > from setup.rb:705:in `invoke' > from setup.rb:674:in `invoke' > from setup.rb:1352 It turns out that Ubuntu needed some ruby libraries installed - libzlib-ruby I believe. Would there be a way to have RubyGems report when it fails a dependency requirement for itself? Instead of "/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in `require': No such file to load -- rubygems/builder (LoadError)", something about zlib would be more helpful. Thanks for the work on this great utility - it was definitly worth the install. Trevor From assaph at gmail.com Tue Jan 11 18:57:20 2005 From: assaph at gmail.com (Assaph Mehr) Date: Tue Jan 11 18:55:02 2005 Subject: [Rubygems-developers] [PATCH] Authenticated proxy support In-Reply-To: <7530f5cc05011019282989704d@mail.gmail.com> References: <7530f5cc05011019282989704d@mail.gmail.com> Message-ID: <3ff47be90501111557273092c0@mail.gmail.com> Hi all, > * Proxy login is Basic only and will fail if NTLM authentication is > required. NTLM is a royal pain to implement. Googling for NTLM proxy authentication gave me this: http://www.geocities.com/rozmanov/ntlm/. It's a local proxy running on my machine that can do the NTLM authentication with the corporate proxy. I have managed to get ruby (both net/http and open-uri) connect this way to the internet. This proxy also supports basic authentications However, using rubygems with this proxy gave a timeout error: c:\>gem l --debug --backtrace -r -p http://localhost:5865/ *** REMOTE GEMS *** Updating Gem source index for: http://gems.rubyforge.org Exception `Timeout::Error' at c:/bin/ruby/lib/ruby/1.8/timeout.rb:42 - execution expired c:/bin/ruby/lib/ruby/1.8/timeout.rb:42:in `rbuf_fill': execution expired (Timeout::Error) from c:/bin/ruby/lib/ruby/1.8/net/protocol.rb:196:in `timeout' from c:/bin/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout' from c:/bin/ruby/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill' from c:/bin/ruby/lib/ruby/1.8/net/protocol.rb:160:in `readuntil' from c:/bin/ruby/lib/ruby/1.8/net/protocol.rb:171:in `readline' from c:/bin/ruby/lib/ruby/1.8/net/http.rb:1554:in `read_status_line' from c:/bin/ruby/lib/ruby/1.8/net/http.rb:1538:in `read_new' from c:/bin/ruby/lib/ruby/1.8/net/http.rb:833:in `request' ... 16 levels... from c:/bin/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in `process_args' from c:/bin/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' from c:/bin/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' from c:/bin/ruby/bin/gem:11 removing C:/DOCUME~1/AssaphM/LOCALS~1/Temp/open-uri2952.0...done While this is not an ideal solution (heck, it's in Python :-), it might offer a solution to others in the same situation. I will try and see if I can find what's the problem. Is there a way to get the full backtrace? (as the problem looks to be in the snipped part :-). Cheers, Assaph From halostatue at gmail.com Tue Jan 11 21:52:25 2005 From: halostatue at gmail.com (Austin Ziegler) Date: Tue Jan 11 21:50:07 2005 Subject: [Rubygems-developers] Problems with fresh install on Ubuntu: No such file to load -- rubygems/builder (LoadError) In-Reply-To: <41E45D4D.1020006@tc.umn.edu> References: <41E1B881.9040307@tc.umn.edu> <41E45D4D.1020006@tc.umn.edu> Message-ID: <9e7db91105011118522c5c946b@mail.gmail.com> On Tue, 11 Jan 2005 17:12:13 -0600, Trevor wrote: > Trevor wrote: >> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in >> `require': No such file to load -- rubygems/builder (LoadError) >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:58:in >> `manage_gems' from /root/rubygems-0.8.4/./post-install.rb:63:in >> `install_sources' from >> /root/rubygems-0.8.4/./post-install.rb:74:in `instance_eval' >> from setup.rb:583:in `instance_eval' >> from setup.rb:583:in `try_run_hook' >> from setup.rb:577:in `run_hook' >> from setup.rb:1315:in `exec_task_traverse' >> from setup.rb:1168:in `exec_install' >> from setup.rb:887:in `exec_install' >> from setup.rb:705:in `invoke' >> from setup.rb:674:in `invoke' >> from setup.rb:1352 > It turns out that Ubuntu needed some ruby libraries installed - > libzlib-ruby I believe. Would there be a way to have RubyGems > report when it fails a dependency requirement for itself? Instead > of "/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:26:in > `require': No such file to load -- rubygems/builder (LoadError)", > something about zlib would be more helpful. > > Thanks for the work on this great utility - it was definitly worth > the install. Ubuntu is based on Debian, as I recall. Bitch at your package maintainers for being a bit stupid in their packaging of Ruby. zlib is a standard part of Ruby and it is expected to be installed. So is OpenSSL and several other packages that may not be prepared by default for Ruby by these people who think that they know bettter on how to prepare and distribute Ruby than Matz and company. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca From halostatue at gmail.com Wed Jan 19 13:02:54 2005 From: halostatue at gmail.com (Austin Ziegler) Date: Wed Jan 19 13:00:20 2005 Subject: [Rubygems-developers] Fwd: Bug in Rubygems: Testing of packages, missing return. In-Reply-To: <41EEA077.1020701@space.ch> References: <41EEA077.1020701@space.ch> Message-ID: <9e7db911050119100216f76012@mail.gmail.com> I am working with Kaspar Schiess on the release of Text::Reform (now part of the Text Formatting project on Rubyforge) and we were doing some checking around and found the following problem. He's also got a resolution for you. ---------- Forwarded message ---------- From: Kaspar Schiess Date: Wed, 19 Jan 2005 19:01:27 +0100 Subject: Bug in Rubygems: Testing of packages, missing return. To: Austin Ziegler Hello Austin, Thank you for forwarding: Installing a package with gem install -t package.gem fails with ERROR: While executing gem ... (NoMethodError) undefined method `passed?' for 0:Fixnum because of Validator#unit_test NOT returning result. The attached patch will fix that ('return' being optional, that's a question of style, but it tends not to be forgotten that way.. ;) ). --- validator.rb Wed Jan 19 18:56:43 2005 +++ validator.rb.new Wed Jan 19 18:55:48 2005 @@ -139,6 +139,7 @@ #end end Dir.chdir(start_dir) + return result end def remove_leading_dot_dir(path) best regards, kaspar hand manufactured code - www.tua.ch/ruby -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca From chad at chadfowler.com Thu Jan 20 07:52:51 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 20 07:50:20 2005 Subject: [Rubygems-developers] Fwd: Bug in Rubygems: Testing of packages, missing return. In-Reply-To: <9e7db911050119100216f76012@mail.gmail.com> References: <41EEA077.1020701@space.ch> <9e7db911050119100216f76012@mail.gmail.com> Message-ID: <31933476-6AE2-11D9-9D10-000A95F02B4A@chadfowler.com> On Jan 19, 2005, at 1:02 PM, Austin Ziegler wrote: > I am working with Kaspar Schiess on the release of Text::Reform (now > part of the Text Formatting project on Rubyforge) and we were doing > some checking around and found the following problem. He's also got a > resolution for you. > Thanks. Applied. Chad > ---------- Forwarded message ---------- > From: Kaspar Schiess > Date: Wed, 19 Jan 2005 19:01:27 +0100 > Subject: Bug in Rubygems: Testing of packages, missing return. > To: Austin Ziegler > > Hello Austin, > > Thank you for forwarding: > > Installing a package with > > gem install -t package.gem > > fails with > > ERROR: While executing gem ... (NoMethodError) > undefined method `passed?' for 0:Fixnum > > because of Validator#unit_test NOT returning result. The attached patch > will fix that ('return' being optional, that's a question of style, but > it tends not to be forgotten that way.. ;) ). > > --- validator.rb Wed Jan 19 18:56:43 2005 > +++ validator.rb.new Wed Jan 19 18:55:48 2005 > @@ -139,6 +139,7 @@ > #end > end > Dir.chdir(start_dir) > + return result > end > > def remove_leading_dot_dir(path) > > best regards, > kaspar > > hand manufactured code - www.tua.ch/ruby > > > > > -- > Austin Ziegler * halostatue@gmail.com > * Alternate: austin@halostatue.ca > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From marcpower at realityengineering.org Sat Jan 22 02:32:55 2005 From: marcpower at realityengineering.org (Marc Power) Date: Sat Jan 22 02:30:17 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 Message-ID: I get the same error on OS X 10.3.7 using the OS X supplied ruby (1.6.8) I'm new to ruby/gems I just wanted to play with rails but I haven't get that far yet. From drbrain at segment7.net Sat Jan 22 02:43:30 2005 From: drbrain at segment7.net (Eric Hodel) Date: Sat Jan 22 02:41:15 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: References: Message-ID: <4F8C11C4-6C49-11D9-AFB0-000D93436DA0@segment7.net> On 21 Jan 2005, at 23:32, Marc Power wrote: > I get the same error on OS X 10.3.7 using the OS X supplied ruby > (1.6.8) > > I'm new to ruby/gems I just wanted to play with rails but I haven't > get that far yet. To use Rails you will need to install your own Ruby, it will not run on ruby 1.6.8. Fortunately, this is terribly simple. (But this isn't the place to answer that question). -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20050121/4ff4d443/PGP.bin From marcpower at realityengineering.org Sat Jan 22 03:51:36 2005 From: marcpower at realityengineering.org (Marc Power) Date: Sat Jan 22 03:48:56 2005 Subject: [Rubygems-developers] Install error on OS X 10.3.6 In-Reply-To: <4F8C11C4-6C49-11D9-AFB0-000D93436DA0@segment7.net> References: <4F8C11C4-6C49-11D9-AFB0-000D93436DA0@segment7.net> Message-ID: Thanks Eric, I installed & built the ruby 1.8.2 snapshot, now gem installs fine. And I am running the rails install as I type this. Cheers! Marc On Jan 22, 2005, at 2:43 AM, Eric Hodel wrote: > On 21 Jan 2005, at 23:32, Marc Power wrote: > >> I get the same error on OS X 10.3.7 using the OS X supplied ruby >> (1.6.8) >> >> I'm new to ruby/gems I just wanted to play with rails but I haven't >> get that far yet. > > To use Rails you will need to install your own Ruby, it will not run > on ruby 1.6.8. > > Fortunately, this is terribly simple. (But this isn't the place to > answer that question). > > -- > Eric Hodel - drbrain@segment7.net - http://segment7.net > FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From chad at chadfowler.com Sat Jan 22 20:57:11 2005 From: chad at chadfowler.com (Chad Fowler) Date: Sat Jan 22 20:54:54 2005 Subject: [Rubygems-developers] SLOW Rubygems Message-ID: <1852310C-6CE2-11D9-AA00-000D9337C01C@chadfowler.com> Ryan Davis just pointed me to this. http://www.artima.com/forums/flat.jsp?forum=123&thread=89970 I don't know what it is yet, but we need to do something about this for a release sometime soon. Chad From lyle.johnson at gmail.com Sat Jan 22 21:51:01 2005 From: lyle.johnson at gmail.com (Lyle Johnson) Date: Sat Jan 22 21:48:20 2005 Subject: [Rubygems-developers] Require fails when multiple directories listed in require_paths Message-ID: I just submitted a bug report about this one, as well as a (short) patch to fix it. Short story is that there's a bug (for RubyGems 0.8.4) that can cause 'require' to fail if the Gem has more than one directory listed in its spec's require_paths array. And since FXRuby falls into that category, it is breaking things... Just in case there's a pending RubyGems release -- say, to address the Rails performance problem -- I'm hoping this patch can make it in as well. I'll even cook up a test case if that would help close the deal. ;) From chad at chadfowler.com Sun Jan 23 10:20:58 2005 From: chad at chadfowler.com (Chad Fowler) Date: Sun Jan 23 10:18:20 2005 Subject: [Rubygems-developers] Require fails when multiple directories listed in require_paths In-Reply-To: References: Message-ID: <61E05376-6D52-11D9-99C5-000A95F02B4A@chadfowler.com> On Jan 22, 2005, at 9:51 PM, Lyle Johnson wrote: > I just submitted a bug report about this one, as well as a (short) > patch to fix it. Short story is that there's a bug (for RubyGems > 0.8.4) that can cause 'require' to fail if the Gem has more than one > directory listed in its spec's require_paths array. And since FXRuby > falls into that category, it is breaking things... > > Just in case there's a pending RubyGems release -- say, to address the > Rails performance problem -- I'm hoping this patch can make it in as > well. I'll even cook up a test case if that would help close the deal. > ;) > _______________________________________________ > Hi, Lyle. Not that it's a contractual contingency, but if you want to cook up a test case, go for it :) I'll apply the patch now. Chad From curt at hibbs.com Wed Jan 26 10:53:06 2005 From: curt at hibbs.com (Curt Hibbs) Date: Wed Jan 26 10:50:18 2005 Subject: [Rubygems-developers] RubyGems Bug? Message-ID: I just went to update my Rails gem, and it also tried to update FXRuby (see below). I'm running the one-click ruby installer for windows, which has RubyGems 0.8.3 pre-installed. Here's my console log: C:\rails\cookbook>gem update -p http://www-stl-proxy4.boeing.com:31060 rails C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p http://www- stl-proxy4.boeing.com:31060 rails Upgrading installed gems... Updating Gem source index for: http://gems.rubyforge.org Attempting remote upgrade of actionpack Attempting remote installation of 'actionpack' Successfully installed actionpack, version 1.4.0 Installing RDoc documentation for actionpack-1.4.0... lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic string: "#{model_id.id2name}" Attempting remote upgrade of activerecord Attempting remote installation of 'activerecord' Successfully installed activerecord, version 1.6.0 Installing RDoc documentation for activerecord-1.6.0... Attempting remote upgrade of fxruby Attempting remote installation of 'fxruby' Select which gem to install for your platform (i386-mswin32) 1. fxruby 1.2.3 (mswin32) 2. fxruby 1.2.3 (ruby) 3. fxruby 1.2.2 (ruby) 4. fxruby 1.2.2 (mswin32) 5. fxruby 1.2.1 (mswin32) 6. fxruby 1.2.1 (ruby) 7. Cancel installation > Curt From curt at hibbs.com Wed Jan 26 11:29:52 2005 From: curt at hibbs.com (Curt Hibbs) Date: Wed Jan 26 12:15:47 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: Message-ID: I was concerned that my rails upgrade may not have been complete, so I thought I would start over and first update Rubygems to 0.8.4. So I: - uninstalled ruby - reinstalled the one-click installer 1.8.2-14 - updated rubygems to 0.8.4 But now I get am error when I try to use the proxy option. Here my console log: C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails Attempting local installation of 'rails' Local gem file not found: rails*.gem Attempting remote installation of 'rails' ERROR: While executing gem ... (NameError) undefined local variable or method `http_proxy' for # Curt Curt Hibbs wrote: > > I just went to update my Rails gem, and it also tried to update > FXRuby (see > below). I'm running the one-click ruby installer for windows, which has > RubyGems 0.8.3 pre-installed. > > Here's my console log: > > C:\rails\cookbook>gem update -p http://www-stl-proxy4.boeing.com:31060 > rails > > C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p > http://www- > stl-proxy4.boeing.com:31060 rails > Upgrading installed gems... > Updating Gem source index for: http://gems.rubyforge.org > Attempting remote upgrade of actionpack > Attempting remote installation of 'actionpack' > Successfully installed actionpack, version 1.4.0 > Installing RDoc documentation for actionpack-1.4.0... > > lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic > string: > "#{model_id.id2name}" > Attempting remote upgrade of activerecord > Attempting remote installation of 'activerecord' > Successfully installed activerecord, version 1.6.0 > Installing RDoc documentation for activerecord-1.6.0... > Attempting remote upgrade of fxruby > Attempting remote installation of 'fxruby' > Select which gem to install for your platform (i386-mswin32) > 1. fxruby 1.2.3 (mswin32) > 2. fxruby 1.2.3 (ruby) > 3. fxruby 1.2.2 (ruby) > 4. fxruby 1.2.2 (mswin32) > 5. fxruby 1.2.1 (mswin32) > 6. fxruby 1.2.1 (ruby) > 7. Cancel installation > > > > Curt > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > From curt at hibbs.com Wed Jan 26 13:51:49 2005 From: curt at hibbs.com (Curt Hibbs) Date: Wed Jan 26 13:49:01 2005 Subject: [Rubygems-developers] RubyGems Problem with "Rolling with Ruby on Rails" Message-ID: The users whose message is below, is trying to install Rails behind an authenticating proxy. How do you do this with RubyGems? Curt -----Original Message----- From: help@oreillynet.com [mailto:help@oreillynet.com] Sent: Wednesday, January 26, 2005 12:41 PM To: curt@hibbs.com; chromatic@oreilly.com Subject: New talkback on "Rolling with Ruby on Rails" A new message was posted to your article or weblog! Rolling with Ruby on Rails http://www.oreillynet.com/pub/a/onlamp/2005/01/20/rails.html?page=last#threa d Subject: difficulty installing Author: Challman Text of message: I'm behind a corporate firewall and proxy (with authentication). I can't get the "gem install rails --remote" to establish a connection. I've tried pointing local but it keeps looking to the 'net. I downloaded and ran install.rb for actionmailer, actionpack, activerecord and rake. I then tried "gem install rails" but it failed again. I then did a --force and it appeared to install: C:\rails>gem install rails.gem --force Attempting local installation of 'rails.gem' Successfully installed rails, version 0.9.5 Installing RDoc documentation for rails-0.9.5... WARNING: Generating RDoc on .gem that may not have RDoc. lib/rails_generator.rb:34:46: Skipping require of dynamic string: "#{path}/#{nam e}_generator.rb" However, I can't execute "rails cookbook". Here is what I get: C:\rails>rails cookbook c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:131:in `activate': (Gem::LoadError) Could not find RubyGem rake (>= 0.4.15) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:150:in `activate' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `each' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:34:in `require_gem' from c:/ruby/bin/rails:18 I've googled and searched and read but I still can't find something that helps. Any ideas? -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 From jim at weirichhouse.org Wed Jan 26 16:25:52 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Wed Jan 26 16:23:03 2005 Subject: [Rubygems-developers] RubyGems Problem with "Rolling with Ruby onRails" In-Reply-To: References: Message-ID: <19145.192.223.163.6.1106774752.squirrel@weirichhouse.org> Curt Hibbs said: > The users whose message is below, is trying to install Rails behind an > authenticating proxy. How do you do this with RubyGems? Rubygems uses open-uri to access remote gems. AFAIK, open-uri does not support authenticating proxies. However, I did see on the Rails list someone replied with a workaround. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From assaph at gmail.com Wed Jan 26 17:12:39 2005 From: assaph at gmail.com (Assaph Mehr) Date: Wed Jan 26 17:09:51 2005 Subject: [Rubygems-developers] RubyGems Problem with "Rolling with Ruby onRails" In-Reply-To: <19145.192.223.163.6.1106774752.squirrel@weirichhouse.org> References: <19145.192.223.163.6.1106774752.squirrel@weirichhouse.org> Message-ID: <3ff47be9050126141264b6ea53@mail.gmail.com> On Wed, 26 Jan 2005 21:25:52 -0000 (UTC), Jim Weirich wrote: > Curt Hibbs said: > > The users whose message is below, is trying to install Rails behind an > > authenticating proxy. How do you do this with RubyGems? > > Rubygems uses open-uri to access remote gems. AFAIK, open-uri does not > support authenticating proxies. > > However, I did see on the Rails list someone replied with a workaround. There was indeed patch for open-uri by Neil Kohl posted here a couple of weeks ago (let me know if you can't find a copy). It supports proxies with basic authentication only, so will not work with MS proxies that do authentication through NTLM. I found a local proxy that'll do the NTLM authentication with the main proxy (http://apserver.sourceforge.net/). I have managed to get ruby scripts to work through it using both net/http and open-uri, but the gem command times-out. I did not have the chance yet to find out why. HTH, Assaph From chad at chadfowler.com Thu Jan 27 07:13:56 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 27 07:11:09 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: References: Message-ID: On Jan 26, 2005, at 10:53 AM, Curt Hibbs wrote: > I just went to update my Rails gem, and it also tried to update FXRuby > (see > below). I'm running the one-click ruby installer for windows, which has > RubyGems 0.8.3 pre-installed. > > This is a UI issue (so much of an issue that it should be called a bug). As of now, "gem update" updates _all_ of your installed gems, even if you supply a command line argument. We need to fix it. Thanks, Chad From chad at chadfowler.com Thu Jan 27 07:15:46 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 27 07:13:04 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: References: Message-ID: <2C51486A-705D-11D9-8669-000A95F02B4A@chadfowler.com> On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: > I was concerned that my rails upgrade may not have been complete, so I > thought I would start over and first update Rubygems to 0.8.4. So I: > - uninstalled ruby > - reinstalled the one-click installer 1.8.2-14 > - updated rubygems to 0.8.4 > > But now I get am error when I try to use the proxy option. Here my > console > log: > > C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails > Attempting local installation of 'rails' > Local gem file not found: rails*.gem > Attempting remote installation of 'rails' > ERROR: While executing gem ... (NameError) > undefined local variable or method `http_proxy' for > # x2dcd758> > > Curt, can you run this again and add "--backtrace"? I'm fortunate enough to not work in an environment where I have to use a proxy anymore ;), but that means I can't do much with the proxy code until I can setup my own proxy server. Jim, do you have one? Thanks, Chad > Curt Hibbs wrote: >> >> I just went to update my Rails gem, and it also tried to update >> FXRuby (see >> below). I'm running the one-click ruby installer for windows, which >> has >> RubyGems 0.8.3 pre-installed. >> >> Here's my console log: >> >> C:\rails\cookbook>gem update -p http://www-stl-proxy4.boeing.com:31060 >> rails >> >> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p >> http://www- >> stl-proxy4.boeing.com:31060 rails >> Upgrading installed gems... >> Updating Gem source index for: http://gems.rubyforge.org >> Attempting remote upgrade of actionpack >> Attempting remote installation of 'actionpack' >> Successfully installed actionpack, version 1.4.0 >> Installing RDoc documentation for actionpack-1.4.0... >> >> lib/action_controller/scaffolding.rb:87:37: Skipping require of >> dynamic >> string: >> "#{model_id.id2name}" >> Attempting remote upgrade of activerecord >> Attempting remote installation of 'activerecord' >> Successfully installed activerecord, version 1.6.0 >> Installing RDoc documentation for activerecord-1.6.0... >> Attempting remote upgrade of fxruby >> Attempting remote installation of 'fxruby' >> Select which gem to install for your platform (i386-mswin32) >> 1. fxruby 1.2.3 (mswin32) >> 2. fxruby 1.2.3 (ruby) >> 3. fxruby 1.2.2 (ruby) >> 4. fxruby 1.2.2 (mswin32) >> 5. fxruby 1.2.1 (mswin32) >> 6. fxruby 1.2.1 (ruby) >> 7. Cancel installation >>> >> >> Curt >> >> _______________________________________________ >> Rubygems-developers mailing list >> Rubygems-developers@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubygems-developers >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >> > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From chad at chadfowler.com Thu Jan 27 07:51:45 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 27 07:48:58 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: References: Message-ID: <33A4255A-7062-11D9-8669-000A95F02B4A@chadfowler.com> On Jan 27, 2005, at 7:13 AM, Chad Fowler wrote: > > On Jan 26, 2005, at 10:53 AM, Curt Hibbs wrote: > >> I just went to update my Rails gem, and it also tried to update >> FXRuby (see >> below). I'm running the one-click ruby installer for windows, which >> has >> RubyGems 0.8.3 pre-installed. >> >> > > This is a UI issue (so much of an issue that it should be called a > bug). As of now, "gem update" updates _all_ of your installed gems, > even if you supply a command line argument. We need to fix it. > Fixed in CVS. I'd appreciate some testing from anyone who has a chance. You can now do: gem update rails # update rails and its dependencies or gem update rake bluecloth redcloth # to update only these three and their dependencies Thanks, Chad From jim at weirichhouse.org Thu Jan 27 09:39:57 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Thu Jan 27 09:37:08 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: <33A4255A-7062-11D9-8669-000A95F02B4A@chadfowler.com> References: <33A4255A-7062-11D9-8669-000A95F02B4A@chadfowler.com> Message-ID: <33969.192.223.163.6.1106836797.squirrel@weirichhouse.org> Chad Fowler said: > Fixed in CVS. I'd appreciate some testing from anyone who has a > chance. You can now do: > > gem update rails # update rails and its dependencies > > or > > gem update rake bluecloth redcloth # to update only these three and > their dependencies Excellent! -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From jim at weirichhouse.org Thu Jan 27 09:43:39 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Thu Jan 27 09:40:48 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: <2C51486A-705D-11D9-8669-000A95F02B4A@chadfowler.com> References: <2C51486A-705D-11D9-8669-000A95F02B4A@chadfowler.com> Message-ID: <47970.192.223.163.6.1106837019.squirrel@weirichhouse.org> Chad Fowler said: > Curt, can you run this again and add "--backtrace"? I'm fortunate > enough to not work in an environment where I have to use a proxy > anymore ;), but that means I can't do much with the proxy code until I > can setup my own proxy server. Jim, do you have one? Chad, I *think* I setup a functional test for the proxy logic. I run a local gem server and then setup the proxy to talk to the local server (which doesn't realize its a proxy, it just answers as it normally would). This exercises the proxy logic without needing a real proxy. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From curt at hibbs.com Thu Jan 27 10:41:38 2005 From: curt at hibbs.com (Curt Hibbs) Date: Thu Jan 27 10:38:32 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: <2C51486A-705D-11D9-8669-000A95F02B4A@chadfowler.com> Message-ID: Sorry it took me a while to respond (too many meetings). Here's the backtrace you asked for: C:\>gem install rails --backtrace -p http://www-stl-proxy4.boeing.com:31060 Attempting local installation of 'rails' Local gem file not found: rails*.gem Attempting remote installation of 'rails' ERROR: While executing gem ... (NameError) undefined local variable or method `http_proxy' for # c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:337:in `initialize' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `new' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `execute' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in `execute' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in `process_args' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' c:/ruby/bin/gem:11 C:\> Chad Fowler wrote: > > On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: > > > I was concerned that my rails upgrade may not have been complete, so I > > thought I would start over and first update Rubygems to 0.8.4. So I: > > - uninstalled ruby > > - reinstalled the one-click installer 1.8.2-14 > > - updated rubygems to 0.8.4 > > > > But now I get am error when I try to use the proxy option. Here my > > console > > log: > > > > C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails > > Attempting local installation of 'rails' > > Local gem file not found: rails*.gem > > Attempting remote installation of 'rails' > > ERROR: While executing gem ... (NameError) > > undefined local variable or method `http_proxy' for > > # > x2dcd758> > > > > > > > Curt, can you run this again and add "--backtrace"? I'm fortunate > enough to not work in an environment where I have to use a proxy > anymore ;), but that means I can't do much with the proxy code until I > can setup my own proxy server. Jim, do you have one? > > Thanks, > Chad > > > Curt Hibbs wrote: > >> > >> I just went to update my Rails gem, and it also tried to update > >> FXRuby (see > >> below). I'm running the one-click ruby installer for windows, which > >> has > >> RubyGems 0.8.3 pre-installed. > >> > >> Here's my console log: > >> > >> C:\rails\cookbook>gem update -p http://www-stl-proxy4.boeing.com:31060 > >> rails > >> > >> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p > >> http://www- > >> stl-proxy4.boeing.com:31060 rails > >> Upgrading installed gems... > >> Updating Gem source index for: http://gems.rubyforge.org > >> Attempting remote upgrade of actionpack > >> Attempting remote installation of 'actionpack' > >> Successfully installed actionpack, version 1.4.0 > >> Installing RDoc documentation for actionpack-1.4.0... > >> > >> lib/action_controller/scaffolding.rb:87:37: Skipping require of > >> dynamic > >> string: > >> "#{model_id.id2name}" > >> Attempting remote upgrade of activerecord > >> Attempting remote installation of 'activerecord' > >> Successfully installed activerecord, version 1.6.0 > >> Installing RDoc documentation for activerecord-1.6.0... > >> Attempting remote upgrade of fxruby > >> Attempting remote installation of 'fxruby' > >> Select which gem to install for your platform (i386-mswin32) > >> 1. fxruby 1.2.3 (mswin32) > >> 2. fxruby 1.2.3 (ruby) > >> 3. fxruby 1.2.2 (ruby) > >> 4. fxruby 1.2.2 (mswin32) > >> 5. fxruby 1.2.1 (mswin32) > >> 6. fxruby 1.2.1 (ruby) > >> 7. Cancel installation > >>> > >> > >> Curt > >> > >> _______________________________________________ > >> Rubygems-developers mailing list > >> Rubygems-developers@rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rubygems-developers > >> -- > >> No virus found in this incoming message. > >> Checked by AVG Anti-Virus. > >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > >> > > > > _______________________________________________ > > Rubygems-developers mailing list > > Rubygems-developers@rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubygems-developers > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > From lumbergh at gmail.com Thu Jan 27 11:52:33 2005 From: lumbergh at gmail.com (Peter Marreck) Date: Thu Jan 27 11:56:24 2005 Subject: [Rubygems-developers] Ruby doesn't see my Gems (n00b assistance) In-Reply-To: <200501271538.j0RFcbdS019992@rubyforge.org> References: <200501271538.j0RFcbdS019992@rubyforge.org> Message-ID: Hi all, new (but eager) Ruby developer here. I got Rubygems up and running and installing some gems in a certain location, but my installation of Ruby (1.8.0) refuses to see them when I try to use the gems in code. So my (hopefully simple) question is this- How exactly does Ruby know where to look for these, and how can I point it to the right location? Is there a list of paths somewhere that I can edit? The installation is on an OS X machine and I installed Ruby via Fink (since the stock Apple Ruby install is 1.6 and I'd rather not overwrite it for now). I've changed my PATH env variable to look for Ruby in /sw/bin first, and "ruby --version" returns "ruby 1.8.0 (2003-08-04) [powerpc-darwin]", so it's using the correct version. (At some point I will overwrite this one with a compile of 1.8.3, but haven't gotten around to that yet.) Thanks for any tips. Due to all the Rails buzz, I can't wait to start playing with it... but I need to get Ruby to see it first! Regards, Peter -- I was RAISED on the command line... beeotch. http://marreck.com/littlegeek.jpg "What is in my heart must come out and so I write it down." Beethoven From jim at weirichhouse.org Thu Jan 27 12:19:45 2005 From: jim at weirichhouse.org (Jim Weirich) Date: Thu Jan 27 12:16:54 2005 Subject: [Rubygems-developers] Ruby doesn't see my Gems (n00b assistance) In-Reply-To: References: <200501271538.j0RFcbdS019992@rubyforge.org> Message-ID: <18488.192.223.163.6.1106846385.squirrel@weirichhouse.org> Peter Marreck said: > Hi all, new (but eager) Ruby developer here. > > I got Rubygems up and running and installing some gems in a certain > location, but my installation of Ruby (1.8.0) refuses to see them when > I try to use the gems in code. So my (hopefully simple) question is > this- How exactly does Ruby know where to look for these, and how can > I point it to the right location? Is there a list of paths somewhere > that I can edit? Are you enabling RubyGems by either the -rubygems command line option or the RUBYOPT=rubygems environment variable (see http://onestepback.org/articles/rubygemsfacets/demoreview2.html) -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas) From chad at chadfowler.com Thu Jan 27 22:18:42 2005 From: chad at chadfowler.com (Chad Fowler) Date: Thu Jan 27 22:15:49 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: References: Message-ID: <5031AF84-70DB-11D9-964A-000D9337C01C@chadfowler.com> Thanks, Curt. Is it possible for you to try the latest CVS version? I believe I've fixed it but would appreciate a check from an actual proxy user :) Thanks, Chad On 27-Jan-05, at 10:41 AM, Curt Hibbs wrote: > Sorry it took me a while to respond (too many meetings). Here's the > backtrace you asked for: > > C:\>gem install rails --backtrace -p > http://www-stl-proxy4.boeing.com:31060 > Attempting local installation of 'rails' > Local gem file not found: rails*.gem > Attempting remote installation of 'rails' > ERROR: While executing gem ... (NameError) > undefined local variable or method `http_proxy' for > # x2dcda28> > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:337:in > `initialize' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `new' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in > `execute' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in `each' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in > `execute' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in > `process_args' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' > c:/ruby/bin/gem:11 > > C:\> > > Chad Fowler wrote: >> >> On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: >> >>> I was concerned that my rails upgrade may not have been complete, so >>> I >>> thought I would start over and first update Rubygems to 0.8.4. So I: >>> - uninstalled ruby >>> - reinstalled the one-click installer 1.8.2-14 >>> - updated rubygems to 0.8.4 >>> >>> But now I get am error when I try to use the proxy option. Here my >>> console >>> log: >>> >>> C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails >>> Attempting local installation of 'rails' >>> Local gem file not found: rails*.gem >>> Attempting remote installation of 'rails' >>> ERROR: While executing gem ... (NameError) >>> undefined local variable or method `http_proxy' for >>> #>> x2dcd758> >>> >>> >> >> >> Curt, can you run this again and add "--backtrace"? I'm fortunate >> enough to not work in an environment where I have to use a proxy >> anymore ;), but that means I can't do much with the proxy code until >> I >> can setup my own proxy server. Jim, do you have one? >> >> Thanks, >> Chad >> >>> Curt Hibbs wrote: >>>> >>>> I just went to update my Rails gem, and it also tried to update >>>> FXRuby (see >>>> below). I'm running the one-click ruby installer for windows, which >>>> has >>>> RubyGems 0.8.3 pre-installed. >>>> >>>> Here's my console log: >>>> >>>> C:\rails\cookbook>gem update -p >>>> http://www-stl-proxy4.boeing.com:31060 >>>> rails >>>> >>>> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p >>>> http://www- >>>> stl-proxy4.boeing.com:31060 rails >>>> Upgrading installed gems... >>>> Updating Gem source index for: http://gems.rubyforge.org >>>> Attempting remote upgrade of actionpack >>>> Attempting remote installation of 'actionpack' >>>> Successfully installed actionpack, version 1.4.0 >>>> Installing RDoc documentation for actionpack-1.4.0... >>>> >>>> lib/action_controller/scaffolding.rb:87:37: Skipping require of >>>> dynamic >>>> string: >>>> "#{model_id.id2name}" >>>> Attempting remote upgrade of activerecord >>>> Attempting remote installation of 'activerecord' >>>> Successfully installed activerecord, version 1.6.0 >>>> Installing RDoc documentation for activerecord-1.6.0... >>>> Attempting remote upgrade of fxruby >>>> Attempting remote installation of 'fxruby' >>>> Select which gem to install for your platform (i386-mswin32) >>>> 1. fxruby 1.2.3 (mswin32) >>>> 2. fxruby 1.2.3 (ruby) >>>> 3. fxruby 1.2.2 (ruby) >>>> 4. fxruby 1.2.2 (mswin32) >>>> 5. fxruby 1.2.1 (mswin32) >>>> 6. fxruby 1.2.1 (ruby) >>>> 7. Cancel installation >>>>> >>>> >>>> Curt >>>> >>>> _______________________________________________ >>>> Rubygems-developers mailing list >>>> Rubygems-developers@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>>> -- >>>> No virus found in this incoming message. >>>> Checked by AVG Anti-Virus. >>>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >>>> >>> >>> _______________________________________________ >>> Rubygems-developers mailing list >>> Rubygems-developers@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubygems-developers >> >> _______________________________________________ >> Rubygems-developers mailing list >> Rubygems-developers@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubygems-developers >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >> > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From curt at hibbs.com Thu Jan 27 22:28:33 2005 From: curt at hibbs.com (Curt Hibbs) Date: Thu Jan 27 22:25:43 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: <5031AF84-70DB-11D9-964A-000D9337C01C@chadfowler.com> Message-ID: Chad Fowler wrote: > > Thanks, Curt. Is it possible for you to try the latest CVS version? I > believe I've fixed it but would appreciate a check from an actual proxy > user :) > > Thanks, > Chad Sure... I'll check it out tomorrow at work. Curt > On 27-Jan-05, at 10:41 AM, Curt Hibbs wrote: > > > Sorry it took me a while to respond (too many meetings). Here's the > > backtrace you asked for: > > > > C:\>gem install rails --backtrace -p > > http://www-stl-proxy4.boeing.com:31060 > > Attempting local installation of 'rails' > > Local gem file not found: rails*.gem > > Attempting remote installation of 'rails' > > ERROR: While executing gem ... (NameError) > > undefined local variable or method `http_proxy' for > > # > x2dcda28> > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:337:in > > `initialize' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `new' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in > > `execute' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in `each' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in > > `execute' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in > > `process_args' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' > > c:/ruby/bin/gem:11 > > > > C:\> > > > > Chad Fowler wrote: > >> > >> On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: > >> > >>> I was concerned that my rails upgrade may not have been complete, so > >>> I > >>> thought I would start over and first update Rubygems to 0.8.4. So I: > >>> - uninstalled ruby > >>> - reinstalled the one-click installer 1.8.2-14 > >>> - updated rubygems to 0.8.4 > >>> > >>> But now I get am error when I try to use the proxy option. Here my > >>> console > >>> log: > >>> > >>> C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails > >>> Attempting local installation of 'rails' > >>> Local gem file not found: rails*.gem > >>> Attempting remote installation of 'rails' > >>> ERROR: While executing gem ... (NameError) > >>> undefined local variable or method `http_proxy' for > >>> # >>> x2dcd758> > >>> > >>> > >> > >> > >> Curt, can you run this again and add "--backtrace"? I'm fortunate > >> enough to not work in an environment where I have to use a proxy > >> anymore ;), but that means I can't do much with the proxy code until > >> I > >> can setup my own proxy server. Jim, do you have one? > >> > >> Thanks, > >> Chad > >> > >>> Curt Hibbs wrote: > >>>> > >>>> I just went to update my Rails gem, and it also tried to update > >>>> FXRuby (see > >>>> below). I'm running the one-click ruby installer for windows, which > >>>> has > >>>> RubyGems 0.8.3 pre-installed. > >>>> > >>>> Here's my console log: > >>>> > >>>> C:\rails\cookbook>gem update -p > >>>> http://www-stl-proxy4.boeing.com:31060 > >>>> rails > >>>> > >>>> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update -p > >>>> http://www- > >>>> stl-proxy4.boeing.com:31060 rails > >>>> Upgrading installed gems... > >>>> Updating Gem source index for: http://gems.rubyforge.org > >>>> Attempting remote upgrade of actionpack > >>>> Attempting remote installation of 'actionpack' > >>>> Successfully installed actionpack, version 1.4.0 > >>>> Installing RDoc documentation for actionpack-1.4.0... > >>>> > >>>> lib/action_controller/scaffolding.rb:87:37: Skipping require of > >>>> dynamic > >>>> string: > >>>> "#{model_id.id2name}" > >>>> Attempting remote upgrade of activerecord > >>>> Attempting remote installation of 'activerecord' > >>>> Successfully installed activerecord, version 1.6.0 > >>>> Installing RDoc documentation for activerecord-1.6.0... > >>>> Attempting remote upgrade of fxruby > >>>> Attempting remote installation of 'fxruby' > >>>> Select which gem to install for your platform (i386-mswin32) > >>>> 1. fxruby 1.2.3 (mswin32) > >>>> 2. fxruby 1.2.3 (ruby) > >>>> 3. fxruby 1.2.2 (ruby) > >>>> 4. fxruby 1.2.2 (mswin32) > >>>> 5. fxruby 1.2.1 (mswin32) > >>>> 6. fxruby 1.2.1 (ruby) > >>>> 7. Cancel installation > >>>>> > >>>> > >>>> Curt > >>>> > >>>> _______________________________________________ > >>>> Rubygems-developers mailing list > >>>> Rubygems-developers@rubyforge.org > >>>> http://rubyforge.org/mailman/listinfo/rubygems-developers > >>>> -- > >>>> No virus found in this incoming message. > >>>> Checked by AVG Anti-Virus. > >>>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > >>>> > >>> > >>> _______________________________________________ > >>> Rubygems-developers mailing list > >>> Rubygems-developers@rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/rubygems-developers > >> > >> _______________________________________________ > >> Rubygems-developers mailing list > >> Rubygems-developers@rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rubygems-developers > >> -- > >> No virus found in this incoming message. > >> Checked by AVG Anti-Virus. > >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > >> > > > > _______________________________________________ > > Rubygems-developers mailing list > > Rubygems-developers@rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubygems-developers > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > From curt at hibbs.com Fri Jan 28 10:45:33 2005 From: curt at hibbs.com (Curt Hibbs) Date: Fri Jan 28 10:42:51 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: Message-ID: It worked perfectly! Thanks, Curt Curt Hibbs wrote: > > Chad Fowler wrote: > > > > Thanks, Curt. Is it possible for you to try the latest CVS version? I > > believe I've fixed it but would appreciate a check from an actual proxy > > user :) > > > > Thanks, > > Chad > > Sure... I'll check it out tomorrow at work. > > Curt > > > > On 27-Jan-05, at 10:41 AM, Curt Hibbs wrote: > > > > > Sorry it took me a while to respond (too many meetings). Here's the > > > backtrace you asked for: > > > > > > C:\>gem install rails --backtrace -p > > > http://www-stl-proxy4.boeing.com:31060 > > > Attempting local installation of 'rails' > > > Local gem file not found: rails*.gem > > > Attempting remote installation of 'rails' > > > ERROR: While executing gem ... (NameError) > > > undefined local variable or method `http_proxy' for > > > # > > x2dcda28> > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:337:in > > > `initialize' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `new' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in > > > `execute' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in `each' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in > > > `execute' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in > > > `process_args' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' > > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' > > > c:/ruby/bin/gem:11 > > > > > > C:\> > > > > > > Chad Fowler wrote: > > >> > > >> On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: > > >> > > >>> I was concerned that my rails upgrade may not have been > complete, so > > >>> I > > >>> thought I would start over and first update Rubygems to 0.8.4. So I: > > >>> - uninstalled ruby > > >>> - reinstalled the one-click installer 1.8.2-14 > > >>> - updated rubygems to 0.8.4 > > >>> > > >>> But now I get am error when I try to use the proxy option. Here my > > >>> console > > >>> log: > > >>> > > >>> C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails > > >>> Attempting local installation of 'rails' > > >>> Local gem file not found: rails*.gem > > >>> Attempting remote installation of 'rails' > > >>> ERROR: While executing gem ... (NameError) > > >>> undefined local variable or method `http_proxy' for > > >>> # > >>> x2dcd758> > > >>> > > >>> > > >> > > >> > > >> Curt, can you run this again and add "--backtrace"? I'm fortunate > > >> enough to not work in an environment where I have to use a proxy > > >> anymore ;), but that means I can't do much with the proxy > code until > > >> I > > >> can setup my own proxy server. Jim, do you have one? > > >> > > >> Thanks, > > >> Chad > > >> > > >>> Curt Hibbs wrote: > > >>>> > > >>>> I just went to update my Rails gem, and it also tried to update > > >>>> FXRuby (see > > >>>> below). I'm running the one-click ruby installer for windows, which > > >>>> has > > >>>> RubyGems 0.8.3 pre-installed. > > >>>> > > >>>> Here's my console log: > > >>>> > > >>>> C:\rails\cookbook>gem update -p > > >>>> http://www-stl-proxy4.boeing.com:31060 > > >>>> rails > > >>>> > > >>>> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" > update -p > > >>>> http://www- > > >>>> stl-proxy4.boeing.com:31060 rails > > >>>> Upgrading installed gems... > > >>>> Updating Gem source index for: http://gems.rubyforge.org > > >>>> Attempting remote upgrade of actionpack > > >>>> Attempting remote installation of 'actionpack' > > >>>> Successfully installed actionpack, version 1.4.0 > > >>>> Installing RDoc documentation for actionpack-1.4.0... > > >>>> > > >>>> lib/action_controller/scaffolding.rb:87:37: Skipping require of > > >>>> dynamic > > >>>> string: > > >>>> "#{model_id.id2name}" > > >>>> Attempting remote upgrade of activerecord > > >>>> Attempting remote installation of 'activerecord' > > >>>> Successfully installed activerecord, version 1.6.0 > > >>>> Installing RDoc documentation for activerecord-1.6.0... > > >>>> Attempting remote upgrade of fxruby > > >>>> Attempting remote installation of 'fxruby' > > >>>> Select which gem to install for your platform (i386-mswin32) > > >>>> 1. fxruby 1.2.3 (mswin32) > > >>>> 2. fxruby 1.2.3 (ruby) > > >>>> 3. fxruby 1.2.2 (ruby) > > >>>> 4. fxruby 1.2.2 (mswin32) > > >>>> 5. fxruby 1.2.1 (mswin32) > > >>>> 6. fxruby 1.2.1 (ruby) > > >>>> 7. Cancel installation > > >>>>> > > >>>> > > >>>> Curt > > >>>> > > >>>> _______________________________________________ > > >>>> Rubygems-developers mailing list > > >>>> Rubygems-developers@rubyforge.org > > >>>> http://rubyforge.org/mailman/listinfo/rubygems-developers > > >>>> -- > > >>>> No virus found in this incoming message. > > >>>> Checked by AVG Anti-Virus. > > >>>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: > 1/25/2005 > > >>>> > > >>> > > >>> _______________________________________________ > > >>> Rubygems-developers mailing list > > >>> Rubygems-developers@rubyforge.org > > >>> http://rubyforge.org/mailman/listinfo/rubygems-developers > > >> > > >> _______________________________________________ > > >> Rubygems-developers mailing list > > >> Rubygems-developers@rubyforge.org > > >> http://rubyforge.org/mailman/listinfo/rubygems-developers > > >> -- > > >> No virus found in this incoming message. > > >> Checked by AVG Anti-Virus. > > >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > > >> > > > > > > _______________________________________________ > > > Rubygems-developers mailing list > > > Rubygems-developers@rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubygems-developers > > > > _______________________________________________ > > Rubygems-developers mailing list > > Rubygems-developers@rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubygems-developers > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 > From lumbergh at gmail.com Fri Jan 28 14:03:25 2005 From: lumbergh at gmail.com (Peter Marreck) Date: Fri Jan 28 14:00:31 2005 Subject: [Rubygems-developers] Ruby doesn't see my Gems (n00b assistance) - fixed! In-Reply-To: <18488.192.223.163.6.1106846385.squirrel@weirichhouse.org> References: <200501271538.j0RFcbdS019992@rubyforge.org> <18488.192.223.163.6.1106846385.squirrel@weirichhouse.org> Message-ID: I fixed the issue by starting from scratch and following the directions on this page to install all the parts via DarwinPorts: http://www.sateh.com/projects/sateh/wiki/InstallingRailsOnOSX This worked out well anyway as DarwinPorts had a later port of Ruby (1.8.2) than Fink did (1.8.0). Mistakes I made along the way (for posterity): 1) Including an "export RUBYOPT=rubygems" in my .profile would continually result in an odd "not found- ubygems" error (missing "r" and all) during ruby compilation, aborting compilation attempts. Removing this line fixed that issue. (I had to put it back later in order for Ruby to see gems. Thanks for that tip!) 2) You have to compile things like sqlite separately before you add the gem for it (n00b error). Unfortunately, the error you get when you try to do the reverse is not very informative ("ERROR: Failed to build gem native extension.") I figured this out by getting the gist that it was seeking a header file, and proceeded to smack my forehead with a "header files are installed with the library itself! it must not be doing so" remark. 3) The link above has an unnecessary step- it's not necessary to create a "darwinports" directory yourself, the install does that for you. So I had a "~/darwinports/darwinports/etc.." directory ugliness I wanted to fix, because I'm anal like that. But if you happen to move the "darwinports" directory somewhere else, you will get all kinds of errors (surprise, not). Googling the error revealed that the location is stored in a config file called "sources.conf", and I had to rebuild my locate.updatedb first before I could find out where that file was put (it was not in the location I found via googling). But it's there (right in /usr/local/etc/ports/sources.conf)... and changing the path fixed that. 4) Fixed my PATH to prefer the /usr/local/bin version of Ruby vs. the standard OS X-installed one. So now it works! I'm OK with struggling through these issues for the time being (as long as I can continue to figure them out), but I wish that someone would finish an OS X packaged install for these things =) Regards, Peter On Thu, 27 Jan 2005 17:19:45 -0000 (UTC), Jim Weirich wrote: > Are you enabling RubyGems by either the -rubygems command line option or > the RUBYOPT=rubygems environment variable (see > http://onestepback.org/articles/rubygemsfacets/demoreview2.html) -- I was RAISED on the command line... beeotch. http://marreck.com/littlegeek.jpg "What is in my heart must come out and so I write it down." Beethoven From chad at chadfowler.com Fri Jan 28 21:04:27 2005 From: chad at chadfowler.com (Chad Fowler) Date: Fri Jan 28 21:01:29 2005 Subject: [Rubygems-developers] RubyGems Bug? In-Reply-To: References: Message-ID: <1AEA510C-719A-11D9-884F-000D9337C01C@chadfowler.com> Great, thanks. Chad On 28-Jan-05, at 10:45 AM, Curt Hibbs wrote: > It worked perfectly! > > Thanks, > Curt > > > Curt Hibbs wrote: >> >> Chad Fowler wrote: >>> >>> Thanks, Curt. Is it possible for you to try the latest CVS version? >>> I >>> believe I've fixed it but would appreciate a check from an actual >>> proxy >>> user :) >>> >>> Thanks, >>> Chad >> >> Sure... I'll check it out tomorrow at work. >> >> Curt >> >> >>> On 27-Jan-05, at 10:41 AM, Curt Hibbs wrote: >>> >>>> Sorry it took me a while to respond (too many meetings). Here's the >>>> backtrace you asked for: >>>> >>>> C:\>gem install rails --backtrace -p >>>> http://www-stl-proxy4.boeing.com:31060 >>>> Attempting local installation of 'rails' >>>> Local gem file not found: rails*.gem >>>> Attempting remote installation of 'rails' >>>> ERROR: While executing gem ... (NameError) >>>> undefined local variable or method `http_proxy' for >>>> #>>> x2dcda28> >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:337:in >>>> `initialize' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in `new' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:163:in >>>> `execute' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in >>>> `each' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:129:in >>>> `execute' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in `invoke' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in >>>> `process_args' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in `run' >>>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run' >>>> c:/ruby/bin/gem:11 >>>> >>>> C:\> >>>> >>>> Chad Fowler wrote: >>>>> >>>>> On Jan 26, 2005, at 11:29 AM, Curt Hibbs wrote: >>>>> >>>>>> I was concerned that my rails upgrade may not have been >> complete, so >>>>>> I >>>>>> thought I would start over and first update Rubygems to 0.8.4. So >>>>>> I: >>>>>> - uninstalled ruby >>>>>> - reinstalled the one-click installer 1.8.2-14 >>>>>> - updated rubygems to 0.8.4 >>>>>> >>>>>> But now I get am error when I try to use the proxy option. Here my >>>>>> console >>>>>> log: >>>>>> >>>>>> C:\>gem install -p http://www-stl-proxy4.boeing.com:31060 rails >>>>>> Attempting local installation of 'rails' >>>>>> Local gem file not found: rails*.gem >>>>>> Attempting remote installation of 'rails' >>>>>> ERROR: While executing gem ... (NameError) >>>>>> undefined local variable or method `http_proxy' for >>>>>> #>>>>> x2dcd758> >>>>>> >>>>>> >>>>> >>>>> >>>>> Curt, can you run this again and add "--backtrace"? I'm fortunate >>>>> enough to not work in an environment where I have to use a proxy >>>>> anymore ;), but that means I can't do much with the proxy >> code until >>>>> I >>>>> can setup my own proxy server. Jim, do you have one? >>>>> >>>>> Thanks, >>>>> Chad >>>>> >>>>>> Curt Hibbs wrote: >>>>>>> >>>>>>> I just went to update my Rails gem, and it also tried to update >>>>>>> FXRuby (see >>>>>>> below). I'm running the one-click ruby installer for windows, >>>>>>> which >>>>>>> has >>>>>>> RubyGems 0.8.3 pre-installed. >>>>>>> >>>>>>> Here's my console log: >>>>>>> >>>>>>> C:\rails\cookbook>gem update -p >>>>>>> http://www-stl-proxy4.boeing.com:31060 >>>>>>> rails >>>>>>> >>>>>>> C:\rails\cookbook>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" >> update -p >>>>>>> http://www- >>>>>>> stl-proxy4.boeing.com:31060 rails >>>>>>> Upgrading installed gems... >>>>>>> Updating Gem source index for: http://gems.rubyforge.org >>>>>>> Attempting remote upgrade of actionpack >>>>>>> Attempting remote installation of 'actionpack' >>>>>>> Successfully installed actionpack, version 1.4.0 >>>>>>> Installing RDoc documentation for actionpack-1.4.0... >>>>>>> >>>>>>> lib/action_controller/scaffolding.rb:87:37: Skipping require of >>>>>>> dynamic >>>>>>> string: >>>>>>> "#{model_id.id2name}" >>>>>>> Attempting remote upgrade of activerecord >>>>>>> Attempting remote installation of 'activerecord' >>>>>>> Successfully installed activerecord, version 1.6.0 >>>>>>> Installing RDoc documentation for activerecord-1.6.0... >>>>>>> Attempting remote upgrade of fxruby >>>>>>> Attempting remote installation of 'fxruby' >>>>>>> Select which gem to install for your platform (i386-mswin32) >>>>>>> 1. fxruby 1.2.3 (mswin32) >>>>>>> 2. fxruby 1.2.3 (ruby) >>>>>>> 3. fxruby 1.2.2 (ruby) >>>>>>> 4. fxruby 1.2.2 (mswin32) >>>>>>> 5. fxruby 1.2.1 (mswin32) >>>>>>> 6. fxruby 1.2.1 (ruby) >>>>>>> 7. Cancel installation >>>>>>>> >>>>>>> >>>>>>> Curt >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Rubygems-developers mailing list >>>>>>> Rubygems-developers@rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>>>>>> -- >>>>>>> No virus found in this incoming message. >>>>>>> Checked by AVG Anti-Virus. >>>>>>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: >> 1/25/2005 >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Rubygems-developers mailing list >>>>>> Rubygems-developers@rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>>>> >>>>> _______________________________________________ >>>>> Rubygems-developers mailing list >>>>> Rubygems-developers@rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>>>> -- >>>>> No virus found in this incoming message. >>>>> Checked by AVG Anti-Virus. >>>>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: >>>>> 1/25/2005 >>>>> >>>> >>>> _______________________________________________ >>>> Rubygems-developers mailing list >>>> Rubygems-developers@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>> >>> _______________________________________________ >>> Rubygems-developers mailing list >>> Rubygems-developers@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubygems-developers >>> -- >>> No virus found in this incoming message. >>> Checked by AVG Anti-Virus. >>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >>> >> _______________________________________________ >> Rubygems-developers mailing list >> Rubygems-developers@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubygems-developers >> >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >> > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers@rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From chad at chadfowler.com Mon Jan 31 07:11:24 2005 From: chad at chadfowler.com (Chad Fowler) Date: Mon Jan 31 07:08:28 2005 Subject: [Rubygems-developers] Fwd: Problems with Rails' gemspec and with RiubyGems Message-ID: Can someone on the list take a look at this? I'm heading out of town and will be useless for the next week. Sounds like this one is a big enough deal that it should get some attention before then. Thanks, Chad Begin forwarded message: > From: "Curt Hibbs" > Date: 30 January 2005 8:35:15 PM EST > To: "Chad Fowler" > Cc: "David Heinemeier Hansson" , "Curt Hibbs" > > Subject: RE: Problems with Rails' gemspec and with RiubyGems > > Chad Fowler wrote: >> >> If you don't mind, I'm going to send this to the rubygems-developers >> list . I'm headed out of town tomorrow and will be out of touch for >> most of the week. > > Sure, the only reason I sent this direct was I wanted to make sure it > got > attention. > >> FWIW, on the Mac, I was able to install rails 0.9.4 without a problem. >> I wonder if it's a Windows-specific problem? > > I can install 0.9.4 on windows too without any problem, too. Its just > that > it won't work because it installs activerecord 1.6.0 instead of > activerecord > 1.5.0, and it installs actionpack 1.4.0 instead of 1.3.0. This part is > not a > RubyGems problem, its a problem with the rails gemspec. > > The part that I think may be a RubyGems problem is that if I first > install > activerecord 1.4.0 and actionpack 1.3.0, and then I try to install > rails > 0.9.4, somehow rails 0.9.5 gets installed (in addition to rails 0.9.4). > > Curt > >> On 30-Jan-05, at 1:01 PM, Curt Hibbs wrote: >> >>> There is a problem with Rails' gemspec that makes it impossible to >>> install >>> an older version of using the simple command: >>> >>> gem install rails -v 0.9.4.1 >>> >>> Please see my text below for more details. But the bottom line is >>> that >>> doing >>> this installs rails-0.9.4 and the latest versions of activerecord and >>> actionpack. Unfortunately, this combination is incompatible and >>> causes >>> some >>> bizarre problems (see the link to the onlamp feedback). I think the >>> rails >>> package should specify specific versions of the other packages (the >>> ones it >>> was tested with, released together, and known to work). >>> >>> Further, due to some problem in RubyGems, I can't even manually >>> install >>> specific versions of activerecord, actionpack, and rails (see >>> below), I >>> always end up with the latest version of all packages installed. It >>> seems to >>> me that this is a bug in RubyGems. >>> >>> Can you guys please look into this? >>> >>> Thanks, >>> Curt >>> >>> -----Original Message----- >>> From: help@oreillynet.com [mailto:help@oreillynet.com] >>> Sent: Sunday, January 30, 2005 11:27 AM >>> To: curt@hibbs.com; chromatic@oreilly.com >>> Subject: New talkback on "Rolling with Ruby on Rails" >>> >>> >>> >>> A new message was posted to your article or weblog! >>> >>> Rolling with Ruby on Rails >>> http://www.oreillynet.com/pub/a/onlamp/2005/01/20/rails.html? >>> page=last#threa >>> d >>> >>> >>> Subject: Not working as advertised >>> Author: curth >>> >>> Text of message: >>> Part of the problem (at least the part I understand) has to do with >>> the fact >>> that the RubyGems package named "rails" is composed of some glue code >>> that >>> binds together three other, independent RubyGems packages named >>> "activerecord", "actionpack" and "actionmailer. >>> >>> And, for example, the rails-0.9.4 package says it depends on the >>> packages >>> activerecord-1.5.0 or greater, actionspack-1.3.0 or greater, and >>> actionmailer-0.6.0 or greater. Rails-0.9.5 uses more recent versions >>> of all >>> three packages. The problem here is with the "or greater" part. >>> >>> When you "gem uninstall rails" it only removes the rails package, and >>> not >>> the others. When you say "gem install rails -v 0.9.4" it happily >>> installs >>> rails-0.9.4, but keeps using the more recent versions of the other >>> packages >>> because the "or greater" part of the dependency tells RubyGems those >>> packages work fine rails-0.9.4. The problem is that they don't, and >>> cause >>> the weird URLs that you are seeing. This has got to be an unforseen >>> bug in >>> Rails' gemspec, and I need to post a bug report for this. >>> >>> To make matters worse, you can't even go back to rails-0.9.4 by >>> trying >>> to >>> install the desired packages manually. I tried to do this last night: >>> >>>
>>>   gem install activerecord -v 1.5.0
>>>   gem install actionpack -v 1.3.0
>>>   gem install actionmailer -v 0.6.0
>>>   gem install rails -v 0.9.4
>>> 
>>> >>> When installing rails-0.9.4 RubyGems should notice that all the other >>> needed >>> packages are already installed and just install the rails package. >>> Unfortunately, it does install rails-0.9.4 and then proceeds to >>> install >>> rails-0.9.5 and the latest version of all the other packages. This >>> has >>> got >>> to be a bug in the RubyGems package manager, and I will report this >>> as >>> well. >>> >>> But, the bottom line is that there is currently no way to correctly >>> install >>> anything but the latest version of rails, and the uninstall/reinstall >>> instructions that I gave earlier not only don't work, but also cause >>> bizarre >>> strangeness due to these unintended incompatibilities. >>> >>> I would recommens that you wipe out everything and reinstall from a >>> clean >>> slate, stick with rails-0.9.5 and do not attempt to install an >>> older >>> version. >>> >>> >>> >>> >>> -- >>> No virus found in this incoming message. >>> Checked by AVG Anti-Virus. >>> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Anti-Virus. >> Version: 7.0.300 / Virus Database: 265.7.4 - Release Date: 1/25/2005 >> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 5729 bytes Desc: not available Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20050131/f8464ec5/attachment.bin From it at onestopent.com.au Mon Jan 10 12:59:28 2005 From: it at onestopent.com.au (Jason Savidge) Date: Mon Mar 7 13:56:58 2005 Subject: [Rubygems-developers] Ruby Gem Install Problem on OSX Message-ID: Hi, I am trying to install Ruby and Rails so I can begin testing it for web development on OSX. I seem to have gotten Ruby installed and Rubygems but I get the following error when trying to get to next step of installing rails. I installed 1.8 as specified for OSX which leaves 1.6 still on the OSX system. It seems to be looking towards the 1.6 default install of ruby for some reason. Thanks for any help you can give. Jason ------------------------------------------------------------------ stevieray:~/desktop $ gem install rails /usr/local/lib/ruby/site_ruby/1.6/rubygems.rb:353:in `require': /usr/local/lib/ruby/site_ruby/1.6/rubygems/specification.rb:312: return appeared outside of method (SyntaxError) return @default_executable if @default_executable ^ /usr/local/lib/ruby/site_ruby/1.6/rubygems/specification.rb:315: return appeared outside of method return @executables.first if @executables.size == 1 ^ from /usr/local/lib/ruby/site_ruby/1.6/rubygems.rb:353 from /usr/bin/gem:3:in `require' from /usr/bin/gem:3