tosdr / tosback2

Reimplementing TOSBack with Ruby and using git to see TOS changes!
http://tosback.org
GNU General Public License v2.0
125 stars 32 forks source link

Setting url/@reviewed='false' does not have desired effect #16

Closed colindean closed 10 years ago

colindean commented 10 years ago

I'm in the process of creating a rules set and found that setting reviewed="false" for a URL has the same effect as setting it to true.

colindean commented 10 years ago

I think I found the problem. When a new TOSBackDoc is created, it is passed the raw XPath value of @reviewed. In TOSBackDoc#initialize, on line 16, @reviewed is set to nil only if the passed value is the empty string.