# RSS::Maker and non-permalink guids

**URL:** <https://www.ruby-forum.com/t/rss-maker-and-non-permalink-guids/175354>\
**Category:** Ruby\
**Created:** [September 11, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/rss-maker-and-non-permalink-guids/175354 "2009-09-11T19:10:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjmadsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Post date:** [September 11, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/rss-maker-and-non-permalink-guids/175354/1 "2009-09-11T19:10:04Z")

</div>

I am using RSS::Maker to produce an RSS 2.0 feed. The items in this feed  
are a mix, some having guids that are permalinks and others that are  
not.

It appears that the resulting feed is incorrect when generating an item  
that does not use a permalink guid. The RSS 2.0 specification says:

“isPermaLink is optional, its default value is true.”

([RSS 2.0 Specification (RSS 2.0 at Harvard Law)](http://cyber.law.harvard.edu/rss/rss.html#ltguidgtSubelementOfLtitemgt))

However, this code does not emit a element with  
isPermaLink=“false”:

require ‘rss/maker’  
rss = RSS::Maker.make(‘2.0’) do |maker|  
maker.channel.title = ‘feed title’  
maker.channel.description = ‘desc’  
maker.channel.link = ‘link’  
item = maker.items.new\_item  
item.title = ‘item title’  
item.link = ‘item link’  
item.guid.content = ‘guid’  
item.guid.isPermaLink = false  
end  
puts rss

This looks like a bug. If so, where should I report it?

---

<div class="post-metadata">

**Author:** ![sjmadsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Post date:** [September 12, 2009, 3:18am UTC](https://www.ruby-forum.com/t/rss-maker-and-non-permalink-guids/175354/2 "2009-09-12T03:18:48Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“RSS::Maker and non-permalink guids” on Sat, 12 Sep 2009 02:10:10  
+0900,  
Steve M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> item.link = 'item link'
> item.guid.content = 'guid'
> item.guid.isPermaLink = false
> 
> ```
> 
> end  
> puts rss
> 
> This looks like a bug. If so, where should I report it?

Yes, it’s a bug.  
It had been fixed in the repository:  
[http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24639](http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24639)  
[http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24640](http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24640)

Please use one of them:

- ITS: [http://redmine.ruby-lang.org/projects/show/ruby](http://redmine.ruby-lang.org/projects/show/ruby)
- ruby-talk ML
- ruby-core ML
- ruby-list ML (if you can use Japanese 🙂

Thanks,
