<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LICENSE</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class AdminController &lt; ApplicationController
 
   layout 'newsniffer'</diff>
      <filename>app/controllers/admin_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,19 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
 # Filters added to this controller will be run for all controllers in the application.
 # Likewise, all the methods added will be available for all controllers.
 class ApplicationController &lt; ActionController::Base</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class NewsArticlesController &lt; ApplicationController
   layout 'newsniffer'
   </diff>
      <filename>app/controllers/news_articles_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class PagesController &lt; ApplicationController
   layout 'newsniffer'
 </diff>
      <filename>app/controllers/pages_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,19 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
 # Methods added to this helper will be available to all templates in the application.
 module ApplicationHelper
 </diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 module NewsArticlesHelper
   def revision_url(id, va, vb)
    &quot;#{request.env[&quot;HTTP_HOST&quot;]}/articles/#{id}/diff/#{va}/#{vb}&quot;</diff>
      <filename>app/helpers/news_articles_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,19 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class Comment &lt; ActiveRecord::Base
 end</diff>
      <filename>app/models/comment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class NewsArticle &lt; ActiveRecord::Base
   has_many :versions, :class_name =&gt; 'NewsArticleVersion', 
     :order =&gt; 'version desc', :dependent =&gt; :destroy</diff>
      <filename>app/models/news_article.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class NewsArticleVersion &lt; ActiveRecord::Base
   belongs_to :news_article
   before_create :set_new_version</diff>
      <filename>app/models/news_article_version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class RevisionistaObserver &lt; ActiveRecord::Observer
   observe NewsArticle, NewsArticleVersion, Vote
 </diff>
      <filename>app/models/revisionista_observer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class Variable &lt; ActiveRecord::Base
   def self.get(key)
     v = self.find_by_key(key)</diff>
      <filename>app/models/variable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 class Vote &lt; ActiveRecord::Base
 
   before_destroy :dec_class_votes</diff>
      <filename>app/models/vote.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,38 +10,6 @@ CREATE TABLE `comments` (
   KEY `comments_linktype_index` (`linktype`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
-CREATE TABLE `hys_comments` (
-  `id` int(11) NOT NULL auto_increment,
-  `hys_thread_id` int(11) default NULL,
-  `created_at` datetime default NULL,
-  `bbcid` mediumint(9) default NULL,
-  `updated_at` datetime default NULL,
-  `text` text,
-  `author` varchar(128) default NULL,
-  `censored` tinyint(4) default '1',
-  `modified_at` datetime default NULL,
-  `votes` int(11) default '0',
-  PRIMARY KEY  (`id`),
-  KEY `hys_thread_id_key` (`hys_thread_id`),
-  KEY `bbcid_key` (`bbcid`),
-  KEY `hys_comments_votes_index` (`votes`),
-  KEY `hys_comments_updated_at_index` (`updated_at`),
-  KEY `censored` (`censored`)
-) ENGINE=MyISAM AUTO_INCREMENT=328144 DEFAULT CHARSET=latin1;
-
-CREATE TABLE `hys_threads` (
-  `id` int(11) NOT NULL auto_increment,
-  `created_at` datetime default NULL,
-  `updated_at` datetime default NULL,
-  `bbcid` mediumint(9) default NULL,
-  `title` varchar(255) NOT NULL,
-  `rsssize` int(11) default NULL,
-  `last_rss_pubdate` datetime default NULL,
-  `description` text,
-  PRIMARY KEY  (`id`),
-  KEY `bbcid_key` (`bbcid`)
-) ENGINE=MyISAM AUTO_INCREMENT=725 DEFAULT CHARSET=latin1;
-
 CREATE TABLE `news_article_versions` (
   `id` int(11) NOT NULL auto_increment,
   `news_article_id` int(11) default NULL,
@@ -58,7 +26,7 @@ CREATE TABLE `news_article_versions` (
   KEY `news_article_versions_text_hash_index` (`text_hash`),
   KEY `news_article_versions_comments_count_index` (`comments_count`),
   KEY `news_article_versions_votes_index` (`votes`)
-) ENGINE=MyISAM AUTO_INCREMENT=59514 DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=latin1;
 
 CREATE TABLE `news_articles` (
   `id` int(11) NOT NULL auto_increment,
@@ -74,7 +42,7 @@ CREATE TABLE `news_articles` (
   PRIMARY KEY  (`id`),
   KEY `news_articles_guid_index` (`guid`),
   KEY `news_articles_source_index` (`source`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+) ENGINE=InnoDB AUTO_INCREMENT=451 DEFAULT CHARSET=latin1;
 
 CREATE TABLE `schema_info` (
   `version` int(11) default NULL</diff>
      <filename>db/development_structure.sql</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,8 @@
 == Newssniffer
 
-Newssniffer is a project to monitor news media organisations.
+Newssniffer is a project to monitor news media organisations released under the
+terms of the GNU Affero General Public License v3 or any later version.  See the 
+LICENSE file for more info.
 
 It started out as &quot;Watch Your Mouth&quot; which detected when the BBC censored comments
 from their &quot;Have Your Say&quot; discussion forum.  Then &quot;Revisionista&quot; was added that
@@ -71,4 +73,5 @@ should develop:
 * Show exactly which parts of each line changed (currently we only show which lines)
 * Highlight changes in headlines too
 * User comments, so changes can be discussed by visitors
-* Changes taggable by users?  Maybe this will help classify the types of changes (typo, new facts, political)
\ No newline at end of file
+* Changes taggable by users?  Maybe this will help classify the types of changes (typo, new facts, political)
+* um, more tests.
\ No newline at end of file</diff>
      <filename>doc/README_FOR_APP</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,19 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
 module HTTP
   require 'open-uri'
   def self.head_hash(url)</diff>
      <filename>lib/http.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
 module NewsPage
   require 'digest'
   require 'cgi'</diff>
      <filename>lib/news_page.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,20 @@
+#    News Sniffer
+#    Copyright (C) 2007-2008 John Leach
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as published by
+#    the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
+
+#
       def zget(uri)
         @data = nil
         </diff>
      <filename>lib/zget.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ffc4573aec357982524cc3ef0be9f5d313b918c1</id>
    </parent>
  </parents>
  <author>
    <name>John Leach</name>
    <email>john@johnleach.co.uk</email>
  </author>
  <url>http://github.com/johnl/news-sniffer/commit/55530caf708b265050d1efc91527510a6b7a4208</url>
  <id>55530caf708b265050d1efc91527510a6b7a4208</id>
  <committed-date>2008-07-25T10:54:04-07:00</committed-date>
  <authored-date>2008-07-25T10:54:04-07:00</authored-date>
  <message>Add licensing for release (AGPL)</message>
  <tree>79b5fc10ee15247df53d485b523783cf9b85de2f</tree>
  <committer>
    <name>John Leach</name>
    <email>john@johnleach.co.uk</email>
  </committer>
</commit>
