Open-uri problem

e$B$k$S$-$A$G$9!#e(B

open-urie$B$G%(%i!<$,=P$^$9!#e(B

RUBY_VERSION # => “1.9.0”
RUBY_RELEASE_DATE # => “2008-01-31”
require ‘open-uri’
ruby_site = URI(“http://www.ruby-lang.org/en/”).read

~> /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:411:in `meta_add_field’:

undefined method `[]=’ for nil:NilClass (NoMethodError)

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:326:in `block in

open_http’

~> from /pkgs/ruby19/lib/ruby/1.9.0/net/http.rb:1297:in `block in

each_header’

~> from /pkgs/ruby19/lib/ruby/1.9.0/net/http.rb:1296:in `each’

~> from /pkgs/ruby19/lib/ruby/1.9.0/net/http.rb:1296:in

`each_header’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:326:in `open_http’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:735:in `buffer_open’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:197:in `block in

open_loop’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:195:in `catch’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:195:in `open_loop’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:141:in `open_uri’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:637:in `open’

~> from /pkgs/ruby19/lib/ruby/1.9.0/open-uri.rb:645:in `read’

~> from -:2:in `’

[ruby-dev:32987]e$B$Ge(B e$B$J$+$`$i$5$s$,Js9p$7$F$^$7$?!#$,!"e(B
e$B$^[email protected]$7$F$$$J$$$_$?$$$G$9!#e(B

2008/2/1, [email protected] [email protected]:

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:33562] Re: open-uri problem”
on Feb.01,2008 20:40:41, [email protected] wrote:
| [ruby-dev:32987]e$B$Ge(B e$B$J$+$`$i$5$s$,Js9p$7$F$^$7$?!#$,!"e(B
| e$B$^[email protected]$7$F$$$J$$$_$?$$$G$9!#e(B

ruby-coree$B$G$b2?7o$+;XE&$,Mh$F$k$h$&$G$9$,!"$$$$2C8:$I$&$K$+$7e(B
e$B$^$;$s$+!"$3$l!#e(B

e$B$=$l$G$O!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:33587] Re: open-uri problem”
on Mon, 4 Feb 2008 10:23:39 +0900, “U.Nakamura”
[email protected] writes:

|ruby-coree$B$G$b2?7o$+;XE&$,Mh$F$k$h$&$G$9$,!"$$$$2C8:$I$&$K$+$7e(B
|e$B$^$;$s$+!"$3$l!#e(B

e$B%3%_%C%H$7$F$/[email protected]$5$$!#860xDI5a$9$k<j4V$,<h$l$^$;$s$G$7$?!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:33590] Re: open-uri problem”
on Mon, 4 Feb 2008 12:23:43 +0900, “U.Nakamura”
[email protected] writes:

|| e$B%3%_%C%H$7$F$/[email protected]$5$$!#860xDI5a$9$k<j4V$,<h$l$^$;$s$G$7$?!#e(B
|
|e$B860x$Oe(B[ruby-dev:33116][email protected]>;3$5$s$,8+$D$1$F$$$F!"$"$H$O$I$&D>e(B
|e$B$9$+$H$$$&OC$Ge(B[ruby-dev:33118]e$B$G$^$D$b$H$5$s$,9M$($F$?$1$I7ke(B
|[email protected]$,=P$F$J$$$+$i%Z%s%G%#%s%0!"$H$$$&>[email protected]$HM}2r$7$F$$$?$N$Ge(B
|e$B$9$,!#e(B

e$BK:$l$F$^$7$?!#$I$&$be(B(e$B$$$D$b$N$h$&$Ke(B)e$B?2$$1$F$$$k$h$&$G$9!#e(B

|e$BD>$7J}$H$7$F$O!"e(B[ruby-dev:33117]e$B$K;d$,=q$$$?$h$&$Ke(Bextende$B$NE>e(B
|e$BAw$r$d$a$k$+!“e(B[ruby-dev:33118]e$B$G$^$D$b$H$5$s$,=q$$$?$h$&$Ke(B
|instance_eval(e$B$He(Binstance_exec)e$B$rE>Aw$9$k$+!”$N$I$A$i$+$K$J$ke(B
|e$B$H;W$$$^$9!#e(B
|e$B$I$C$A$Ge(Bcommite$B$7$^$9$+e(B?

e$B$H$j$"$($:e(Bextende$B$NE>Aw$r;_$a$kJ}8~$G!#e(Binstance_evale$B$Oe(B
BasicObjecte$B$G$bI,MW$H$5$l$k4pK\E*$J%a%=%C%[email protected]$=$&$G$9!#e(B
e$B$3$l$rE>Aw$7$F$O$$$1$J$$$N$G$7$g$&!"$-$C$H!#e(B

e$B$=$l$O$=$l$H$7$Fe(B1.9e$B$He(B1.8e$B$G$OE>Aw$9$k%a%=%C%I$NHO0O$,BgI}$K0ce(B
e$B$$$^$9$,!"[email protected]$9$k$D$b$j$O$"$j$^$9$,!"$b$&$A$g$C$He(B
e$B9M$([email protected]$,=P$J$$$N$G!"$H$j$"$($:BP1~$7$F$*$$$F$/[email protected]$5$$!#e(B

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:33589] Re: open-uri problem”
on Feb.04,2008 12:13:28, [email protected] wrote:
| |ruby-coree$B$G$b2?7o$+;XE&$,Mh$F$k$h$&$G$9$,!"$$$$2C8:$I$&$K$+$7e(B
| |e$B$^$;$s$+!"$3$l!#e(B
|
| e$B%3%_%C%H$7$F$/[email protected]$5$$!#860xDI5a$9$k<j4V$,<h$l$^$;$s$G$7$?!#e(B

e$B860x$Oe(B[ruby-dev:33116][email protected]>;3$5$s$,8+$D$1$F$$$F!"$"$H$O$I$&D>e(B
e$B$9$+$H$$$&OC$Ge(B[ruby-dev:33118]e$B$G$^$D$b$H$5$s$,9M$($F$?$1$I7ke(B
[email protected]$,=P$F$J$$$+$i%Z%s%G%#%s%0!"$H$$$&>[email protected]$HM}2r$7$F$$$?$N$Ge(B
e$B$9$,!#e(B

e$BD>$7J}$H$7$F$O!"e(B[ruby-dev:33117]e$B$K;d$,=q$$$?$h$&$Ke(Bextende$B$NE>e(B
e$BAw$r$d$a$k$+!“e(B[ruby-dev:33118]e$B$G$^$D$b$H$5$s$,=q$$$?$h$&$Ke(B
instance_eval(e$B$He(Binstance_exec)e$B$rE>Aw$9$k$+!”$N$I$A$i$+$K$J$ke(B
e$B$H;W$$$^$9!#e(B
e$B$I$C$A$Ge(Bcommite$B$7$^$9$+e(B?

e$B$=$l$G$O!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs