[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
Hi --
Hi,
On Tue, 2 Mar 2004 08:44:25 +0900, Yukihiro Matsumoto wrote:
Hi,
On Wednesday, 3 March 2004 at 8:00:09 +0900, Yukihiro Matsumoto wrote:
Hi,
Hi,
On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:
Hi,
On Thu, 4 Mar 2004, Yukihiro Matsumoto wrote:
Hi,
[#2575] Comment football being played... with lib/test/unit.rb — Nathaniel Talbott <nathaniel@...>
[Resent because I accidentally signed it the first time]
[#2577] problem with Net::HTTP in 1.8.1 — Ian Macdonald <ian@...>
Hello,
Hi,
[#2582] One more proc question — Dave Thomas <dave@...>
Sorry about this... :)
Hi,
On Friday, 5 March 2004 at 12:52:15 +0900, Yukihiro Matsumoto wrote:
Hi,
[#2588] Duck typing chapter — Dave Thomas <dave@...>
I've posted a rough first pass at a chapter about duck typing (and
[#2606] Thought about class definitions — Dave Thomas <dave@...>
If we allowed
[#2628] YAML complaint while generating RDoc — Dave Thomas <dave@...>
With the latest CVS, I get
[#2640] patch to tempfile.rb to handle ENAMETOOLONG — Joel VanderWerf <vjoel@...>
[#2644] RDoc proporsal — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hi, rubyists.
[#2646] Problems rdoc'ing cvs... — Hugh Sasse Staff Elec Eng <hgs@...>
I have just done
On Friday, March 12, 2004, 4:15:42 AM, Dave wrote:
On Fri, 12 Mar 2004, Dave Thomas wrote:
[#2661] Pathological slowdown in 1.8 — Ryan Davis <ryand@...>
Hi all,
[#2697] lib/ruby/1.9/yaml.rb:193: [BUG] Segmentation fault — Mauricio Fern疣dez <batsman.geo@...>
Mauricio Fern疣dez wrote:
On Sun, Mar 28, 2004 at 09:42:42AM +0900, why the lucky stiff wrote:
[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>
This patch adds support to Net::POP for doing POP over SSL. Modeled on how
This is v2 of the patch. Cleaned up a bit and added some more docs.
v3 of the patch:
Hi,
I agree that there are a lot of arguments to #start, but I think it is the
On Tue, 30 Mar 2004 16:24:17 +0900, Daniel Hobe wrote:
On Wed, 31 Mar 2004 13:27:31 +0900, Daniel Hobe wrote:
On Tue, Mar 30, 2004 at 04:05:06PM +0900, Minero Aoki wrote:
[#2709] typos in lib/singleton.rb — Ian Macdonald <ian@...>
Hello,
[#2713] more spelling and grammar fixes — Ian Macdonald <ian@...>
Hello,
> Hello,
Hi,
Problems rdoc'ing cvs...
I have just done
cvs update -d
both for rdoc and for my ruby cvs directory. Running rdoc on the
results gave:
[...]
beginmainend.rb:
test_beginendblock.rb: c....
test_trackback.rb: c....
test_syndication.rb: c.c
RDoc failure in test/rss/test_syndication.rb at or around line 22 column 37
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
/usr/local/lib/ruby/site_ruby/1.8/rdoc/parsers/parse_rb.rb:2287:in `get_symbol_or_name': Name or symbol expected (got #<RubyToken::TkLPAREN:0x1c9ca00>) (RuntimeError)
from /usr/local/lib/ruby/site_ruby/1.8/rdoc/parsers/parse_rb.rb:2293:in `parse_alias'
from /usr/local/lib/ruby/site_ruby/1.8/rdoc/parsers/parse_rb.rb:1679:in `parse_statements'
from /usr/local/lib/ruby/site_ruby/1.8/rdoc/parsers/parse_rb.rb:1753:in `parse_class'
brains hgs 63 %>
The file looks like:
brains hgs 72 %> cat -n test/rss/test_syndication.rb | body 30 36
30
31 @sy_nodes = @elems.collect do |name, value|
32 "<#{@prefix}:#{name}>#{CGI.escapeHTML(value.to_s)}</#{@prefix}:#{name}>"
33 end.join("\n")
34
35 @rss_source = make_RDF(<<-EOR, {@prefix => @uri})
36 #{make_channel(@sy_nodes)}
brains hgs 73 %>
I then get an error at line 22, then 70. These seemed to relate to
alias_method(:this,:that). Removing the brackets helped. I did
this for test_dublincore.rb also and it was happier. I don't know
if this is something that should be changed in rdoc, or if it is
actually preferred to avoid the brackets (as this has not shown up
in the other files), but my patch, for what it is worth, is below.
Something seems to have happened to the spacing where I changed end
to }.
Hugh
--- ./ruby/test/rss/test_syndication.rb.orig 2004-02-26 13:42:34.958102000 +0000
+++ ./ruby/test/rss/test_syndication.rb 2004-03-11 16:27:18.859748000 +0000
@@ -19,7 +19,7 @@
t = Time.iso8601("2000-01-01T12:00:05+00:00")
class << t
- alias_method(:to_s, :iso8601)
+ alias_method :to_s, :iso8601
end
@elems = {
@@ -28,9 +28,9 @@
:updateBase => t,
}
- @sy_nodes = @elems.collect do |name, value|
+ @sy_nodes = @elems.collect { |name, value|
"<#{@prefix}:#{name}>#{CGI.escapeHTML(value.to_s)}</#{@prefix}:#{name}>"
- end.join("\n")
+ }.join("\n")
@rss_source = make_RDF(<<-EOR, {@prefix => @uri})
#{make_channel(@sy_nodes)}
@@ -65,7 +65,7 @@
t = Time.iso8601("2003-01-01T12:00:23+09:00")
class << t
- alias_method(:to_s, :iso8601)
+ alias_method :to_s, :iso8601
end
new_value = {
--- ./ruby/test/rss/test_dublincore.rb.orig 2004-02-26 13:42:34.854453000 +0000
+++ ./ruby/test/rss/test_dublincore.rb 2004-03-11 16:31:51.302868000 +0000
@@ -19,7 +19,7 @@
t = Time.iso8601("2000-01-01T12:00:05+00:00")
class << t
- alias_method(:to_s, :iso8601)
+ alias_method :to_s, :iso8601
end
@elems = {
@@ -88,7 +88,7 @@
if name == :date
t = Time.iso8601("2003-01-01T02:30:23+09:00")
class << t
- alias_method(:to_s, :iso8601)
+ alias_method :to_s, :iso8601
end
@rss.send(parent).send("dc_#{name}=", t.iso8601)
assert_equal(t, @rss.send(parent).send("dc_#{name}"))