[#44909] VRDdeClientについて — Toshiyasu Soejima <clev@...2.so-net.ne.jp>
#
17 messages
2008/05/11
[#44911] Re: VRDdeClientについて
— yukimi_sake <yukimi_sake@...>
2008/05/11
こんにちは、雪見酒です。
[#44923] Re: VRDdeClientについて
— Takahiro Kambe <taca@...>
2008/05/13
In message <4826942F.4080102@ck2.so-net.ne.jp>
[#44910] SimpleDelegator#dupの引数objについて — "SHIMADA Koji" <snoozer.05@...>
しまだです。
6 messages
2008/05/11
[#44936] yamlとencoding — "Yutaka Kanemoto" <kinpoco@...>
金本と申します。
16 messages
2008/05/14
[#44937] Re: yamlとencoding
— "NARUSE, Yui" <naruse@...>
2008/05/14
成瀬です。
[#44952] Re: yamlとencoding
— "NARUSE, Yui" <naruse@...>
2008/05/17
成瀬です。
[#44997] Re: yamlとencoding
— "Yutaka Kanemoto" <kinpoco@...>
2008/06/03
金本と申します.
[#44942] Gemでhpricotインストールエラー — "Yangkook Kim" <yangkookkim@...>
Kimと申します。
8 messages
2008/05/16
[#44945] Re: Gemでhpricotインストールエラー
— rubikitch@...
2008/05/16
From: "Yangkook Kim" <yangkookkim@gmail.com>
[#44980] 重いタスクと平行にirbを使うと遅い? — "takeru sasaki" <sasaki.takeru@...>
佐々木と申します。
8 messages
2008/05/31
[#44981] Re: 重いタスクと平行にirbを使うと遅い?
— rubikitch@...
2008/05/31
From: "takeru sasaki" <sasaki.takeru@gmail.com>
[#44986] Ruby 1.8.7 has been released — "Akinori MUSHA" <knu@...>
Ruby 1.8.7 をリリースしました。
5 messages
2008/05/31
[ruby-list:44938] RSSが生成されない
From:
rubikitch@...
Date:
2008-05-14 21:10:31 UTC
List:
ruby-list #44938
るびきちです。
Ruby 1.8.7 / Ruby 1.9だとRSSが生成されません。
オブジェクトは生成されているようです。
それとも使い方が間違っているのでしょうか?
RUBY_VERSION # => "1.8.6"
RUBY_RELEASE_DATE # => "2008-03-03"
require 'rss/2.0'
feed = RSS::Rss.new("2.0", "2.0", "UTF-8")
chan = RSS::Rss::Channel::new
chan.title = "title"
feed.channel = chan
item = RSS::Rss::Channel::Item.new
item.title = "item.title"
item.description = "item.desc"
feed.channel.items << item
puts feed
# >> <?xml version="2.0" encoding="UTF-8"?>
# >> <rss version="2.0">
# >> <channel>
# >> <title>title</title>
# >> <item>
# >> <title>item.title</title>
# >> <description>item.desc</description>
# >> </item>
# >> </channel>
# >> </rss>
VS
RUBY_VERSION # => "1.8.7"
RUBY_RELEASE_DATE # => "2008-05-14"
require 'rss/2.0'
feed = RSS::Rss.new("2.0", "2.0", "UTF-8")
chan = RSS::Rss::Channel::new
chan.title = "title"
feed.channel = chan
item = RSS::Rss::Channel::Item.new
item.title = "item.title"
item.description = "item.desc"
feed.channel.items << item
feed
# => #<RSS::Rss:0xb7b852c4
# @channel=
# #<RSS::Rss::Channel:0xb7b85170
# @category=[],
# @cloud=nil,
# @converter=nil,
# @copyright=nil,
# @description=nil,
# @do_validate=true,
# @docs=nil,
# @generator=nil,
# @image=nil,
# @item=
# [#<RSS::Rss::Channel::Item:0xb7b850a8
# @author=nil,
# @category=[],
# @comments=nil,
# @converter=nil,
# @description="item.desc",
# @do_validate=true,
# @enclosure=nil,
# @guid=nil,
# @link=nil,
# @parent=nil,
# @pubDate=nil,
# @source=nil,
# @title="item.title">],
# @language=nil,
# @lastBuildDate=nil,
# @link=nil,
# @managingEditor=nil,
# @parent=nil,
# @pubDate=nil,
# @rating=nil,
# @skipDays=nil,
# @skipHours=nil,
# @textInput=nil,
# @title="title",
# @ttl=nil,
# @webMaster=nil>,
# @converter=nil,
# @do_validate=true,
# @encoding="UTF-8",
# @feed_subtype=nil, # !> method redefined; discarding old pp
# @feed_type="rss",
# @feed_version="2.0",
# @output_encoding=nil,
# @parent=nil,
# @standalone=nil,
# @version="2.0",
# @xml_stylesheets=[]>
puts feed
# >>
--
rubikitch
Blog: http://d.hatena.ne.jp/rubikitch/
Site: http://www.rubyist.net/~rubikitch/