<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+= 1.1.4
+=== 4th June, 2009
+* Simplified code: removed address setter, just instantiate a new MetaInspector object if you need to scrape a different URL
+
 = 1.1.3
 === 22nd May, 2009
 * Simplified code: now there's no need to call page.scrape!, just initialize it and go directly to page.address, page.title, page.description, page.keywords or page.links, the page will be scraped on the fly</diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -42,12 +42,6 @@ Once scraped, you can see the scraped data like this:
   page.keywords      # meta keywords, as string
   page.links         # array of strings, with every link found on the page
   
-You can also change the address of the page to be scraped using the address= setter, like this:
-
-  page.address=&quot;http://jaimeiniesta.com&quot;
-
-Doing so resets the state of the MetaInspector instance to the initial state (not scraped yet, cleared stored meta data). The page will be re-scraped when you consult any of its metadata again.
-
 The full scraped document if accessible from:
 
   page.document # Nokogiri doc that you can use it to get any element from the page
@@ -80,12 +74,6 @@ You can find some sample scripts on the samples folder, including a basic scrapi
   
   &gt;&gt; page.document.class
   =&gt; Nokogiri::HTML::Document
-  
-  &gt;&gt; page.address=&quot;http://jaimeiniesta.com&quot;
-  =&gt; &quot;http://jaimeiniesta.com&quot;
-  
-  &gt;&gt; page.title
-  =&gt; &quot;ruby on rails freelance developer -- Jaime Iniesta&quot;
     
 = To Do
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,7 @@ require 'nokogiri'
 
 # MetaInspector provides an easy way to scrape web pages and get its elements
 class MetaInspector
-  VERSION = '1.1.3'
+  VERSION = '1.1.4'
   
   attr_reader :address
   
@@ -16,11 +16,6 @@ class MetaInspector
     @document = @title = @description = @keywords = @links = nil
   end
   
-  # Setter for address. Initializes the whole state as the address is being changed.
-  def address=(address)
-    initialize(address)
-  end
-  
   # Returns the parsed document title
   def title
     @title ||= document.css('title').inner_html rescue nil</diff>
      <filename>lib/metainspector.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
   s.name = &quot;metainspector&quot;
-  s.version = &quot;1.1.3&quot;
-  s.date = &quot;2009-05-19&quot;
+  s.version = &quot;1.1.4&quot;
+  s.date = &quot;2009-06-04&quot;
   s.summary = &quot;Ruby gem for web scraping&quot;
   s.email = &quot;jaimeiniesta@gmail.com&quot;
   s.homepage = &quot;http://github.com/jaimeiniesta/metainspector/tree/master&quot;</diff>
      <filename>metainspector.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,9 @@
 require '../lib/metainspector.rb'
 
 puts &quot;Enter a valid http address to scrape it&quot;
-address = gets
+address = gets.strip
 page = MetaInspector.new(address)
-puts &quot;Scraping #{address}&quot;
-puts &quot;...please wait...&quot;
+puts &quot;...please wait while scraping the page...&quot;
 
 puts &quot;Scraping #{page.address} returned these results:&quot;
 puts &quot;TITLE: #{page.title}&quot;</diff>
      <filename>samples/basic_scraping.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ q.push(address)
 
 while q.size &gt; 0
   visited_links &lt;&lt; address = q.pop
-  page.address=address
+  page = MetaInspector.new(address)
   puts &quot;Spidering #{page.address}&quot;
 
   puts &quot;TITLE: #{page.title}&quot;</diff>
      <filename>samples/spider.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,29 +16,4 @@ class TestMetaInspector &lt; Test::Unit::TestCase
     assert_equal m.links[30], 'http://www.nuvio.cz/'
     assert_equal m.document.class, Nokogiri::HTML::Document
   end
-  
-  # Test changing the address resets the state of the instance so it causes a new scraping
-  def test_address_setter
-    m = MetaInspector.new('http://pagerankalert.com')
-    assert_equal m.address, 'http://pagerankalert.com'
-    title_1 = m.title
-    description_1 = m.description
-    keywords_1 = m.keywords
-    links_1 = m.links
-    document_1 = m.document 
-    
-    m.address = 'http://jaimeiniesta.com'
-    assert_equal m.address, 'http://jaimeiniesta.com'
-    title_2 = m.title
-    description_2 = m.description
-    keywords_2 = m.keywords
-    links_2 = m.links
-    document_2 = m.document
-    
-    assert_not_equal title_1, title_2
-    assert_not_equal description_1, description_2
-    assert_not_equal keywords_1, keywords_2
-    assert_not_equal links_1, links_2
-    assert_not_equal document_1, document_2
-  end
 end</diff>
      <filename>test/test_metainspector.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d6d8ee8f3b310388bee119068d20c65de3cf6306</id>
    </parent>
  </parents>
  <author>
    <name>Jaime Iniesta</name>
    <email>jaimeiniesta@gmail.com</email>
  </author>
  <url>http://github.com/jaimeiniesta/metainspector/commit/55abd8f1c0989d0eccec1ba7c74b151ef4bc4b8e</url>
  <id>55abd8f1c0989d0eccec1ba7c74b151ef4bc4b8e</id>
  <committed-date>2009-06-04T02:36:56-07:00</committed-date>
  <authored-date>2009-06-04T02:36:56-07:00</authored-date>
  <message>Removed address setter</message>
  <tree>6651cf76a07f17ea1303635b24b0e0f46904e13f</tree>
  <committer>
    <name>Jaime Iniesta</name>
    <email>jaimeiniesta@gmail.com</email>
  </committer>
</commit>
