<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,11 @@
+= 2.1
+=== 20th July, 2009
+* Support for authenticated calls to Amazon
+
+= 2.0
+=== 18th June, 2009
+* Setup with Jeweler for packaging and deployment
+
 = 1.4
 === 11th October, 2008
 * Added load_from_amazon and load_from_amazon! methods to load up Amazon attributes into a local object directly (see the README for usage)</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -8,9 +8,6 @@ require 'fileutils'
 include FileUtils
 
 NAME = &quot;acts_as_amazon_product&quot;
-# REV = File.read(&quot;.svn/entries&quot;)[/committed-rev=&quot;(\d+)&quot;/, 1] rescue nil
-# VERS = ENV['VERSION'] || (&quot;1.1&quot; + (REV ? &quot;.#{REV}&quot; : &quot;&quot;))
-VERS = ENV['VERSION'] || &quot;1.4.1&quot;
 CLEAN.include ['**/.*.sw?', '*.gem', '.config', 'test/test.log']
 
 desc 'Default: run unit tests.'
@@ -26,40 +23,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_files.include('lib/**/*.rb')
 end
 
-# Gem::manage_gems
-# require 'rake/gempackagetask'
-# spec = Gem::Specification.new do |s|
-#     s.platform  =   Gem::Platform::RUBY
-#     s.name      =   NAME
-#     s.version   =   VERS
-#     s.author    =   &quot;Scott Nedderman&quot;
-#     s.email     =   &quot;scott@netphase.com&quot;
-#     s.homepage  =   &quot;http://netphase.com&quot;
-#     s.summary   =   &quot;A package for simplifying use of the Amazon/ECS API&quot;
-#     s.files     =   FileList['lib/*.rb', 'test/*'].to_a.reject {|f| f.match /config\.yml/ }
-#     s.require_path  =   &quot;lib&quot;
-#     # s.autorequire   =   &quot;acts_as_amazon_product&quot;
-#     s.test_files = Dir.glob('tests/*.rb')
-#     s.has_rdoc  =   true
-#     s.extra_rdoc_files  =   [&quot;README&quot;]
-#     s.add_dependency(&quot;amazon-ecs&quot;, &quot;&gt;=0.5.1&quot;)
-# end
-# Rake::GemPackageTask.new(spec) do |pkg|
-#     pkg.need_tar = true
-# end
-# task :default =&gt; &quot;pkg/#{spec.name}-#{spec.version}.gem&quot; do
-#     puts &quot;generated latest version&quot;
-# end
-# 
-# task :install do
-#   sh %{rake package}
-#   sh %{sudo gem install pkg/#{NAME}-#{VERS}}
-# end
-# 
-# task :uninstall =&gt; [:clean] do
-#   sh %{sudo gem uninstall #{NAME}}
-# end
-
 desc 'Test the acts_as_amazon_product plugin.'
 Rake::TestTask.new(:test) do |t|
   t.libs &lt;&lt; 'lib'
@@ -75,7 +38,7 @@ begin
     gemspec.email = &quot;scott@netphase.com&quot;
     gemspec.homepage = &quot;http://github.com/netphase/aaap&quot;
     gemspec.authors = [&quot;Scott Nedderman&quot;,&quot;Chris Beck&quot;]
-    gemspec.add_dependency(&quot;amazon-ecs&quot;, &quot;&gt;=0.5.1&quot;)
+    gemspec.add_dependency(&quot;amazon-ecs&quot;, &quot;&gt;=0.5.6&quot;)
     gemspec.files.exclude 'test/config.yml'
     
   end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-2.0.0
+2.1.0</diff>
      <filename>VERSION</filename>
    </modified>
    <modified>
      <diff>@@ -47,11 +47,11 @@ Gem::Specification.new do |s|
     s.specification_version = 2
 
     if Gem::Version.new(Gem::RubyGemsVersion) &gt;= Gem::Version.new('1.2.0') then
-      s.add_runtime_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.1&quot;])
+      s.add_runtime_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.6&quot;])
     else
-      s.add_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.1&quot;])
+      s.add_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.6&quot;])
     end
   else
-    s.add_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.1&quot;])
+    s.add_dependency(%q&lt;amazon-ecs&gt;, [&quot;&gt;= 0.5.6&quot;])
   end
 end</diff>
      <filename>acts_as_amazon_product.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ module Netphase
             :asin =&gt; 'asin',
             :name =&gt; 'name',
             :access_key =&gt; ENV['AMAZON_ACCESS_KEY_ID'],
+            :secret_key =&gt; ENV['AMAZON_SECRET_KEY'],
             :associate_tag =&gt; ENV['AMAZON_ASSOCIATE_TAG'],
             :search_index =&gt; 'Books',
             :response_group =&gt; 'Medium',
@@ -29,17 +30,22 @@ module Netphase
           }
           options = defaults.merge options
 
-          Amazon::Ecs.options = {:aWS_access_key_id =&gt; options[:access_key], 
-            :associate_tag =&gt; options[:associate_tag], :response_group =&gt; options[:response_group]}
+          Amazon::Ecs.options = {
+            :aWS_access_key_id =&gt; options[:access_key],
+            :aWS_secret_key =&gt; options[:secret_key],
+            :associate_tag =&gt; options[:associate_tag], 
+            :response_group =&gt; options[:response_group]
+          }
 
           write_inheritable_attribute(:amazon_asin, options[:asin])    
           write_inheritable_attribute(:amazon_name, options[:name])
-          write_inheritable_attribute(:amazon_search_index, options[:search_index])    
-          write_inheritable_attribute(:amazon_associate_key, options[:associate_key])
+          write_inheritable_attribute(:amazon_search_index, options[:search_index])
+          write_inheritable_attribute(:amazon_associate_tag, options[:associate_tag])
           write_inheritable_attribute(:auto_load_fields, options[:auto_load_fields])
           write_inheritable_attribute(:ignore_fields, options[:ignore_fields])
           write_inheritable_attribute(:auto_delete_amazon, options[:auto_delete_amazon])
-          class_inheritable_reader :amazon_asin, :amazon_name, :amazon_search_index, :amazon_associate_key
+          class_inheritable_reader :amazon_asin, :amazon_name, :amazon_search_index
+          class_inheritable_reader :amazon_associate_tag
           class_inheritable_reader :auto_load_fields, :ignore_fields, :auto_delete_amazon
           
           has_one :amazon_product, :as =&gt; :amazonable   #, :dependent =&gt; :delete</diff>
      <filename>lib/acts_as_amazon_product.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,15 +2,14 @@ require 'test/unit'
 require 'yaml'
 
 require File.expand_path(File.dirname(__FILE__) + &quot;/../lib/acts_as_amazon_product&quot;)
-
 require File.expand_path(File.dirname(__FILE__) + &quot;/../init&quot;)
 
-config = open(File.dirname(__FILE__) + &quot;/../test/config.yml&quot;) { |f| YAML.load(f.read)}
-ActiveRecord::Base.establish_connection(config[&quot;database&quot;])
+@@config = open(File.dirname(__FILE__) + &quot;/../test/config.yml&quot;) { |f| YAML.load(f.read)}
+ActiveRecord::Base.establish_connection(@@config[&quot;database&quot;])
 
-#Amazon::Ecs.options = {:aWS_access_key_id =&gt; config['amazon']['access_key']}
-@@access_key = config['amazon']['access_key']
-@@associate_tag = config['amazon']['associate_tag']
+ENV['AMAZON_ACCESS_KEY_ID'] = @@config['amazon']['access_key']
+ENV['AMAZON_SECRET_KEY'] = @@config['amazon']['secret_key']
+ENV['AMAZON_ASSOCIATE_TAG'] = @@config['amazon']['associate_tag']
 
 ActiveRecord::Base.connection.drop_table :amazon_products rescue nil
 ActiveRecord::Base.connection.drop_table :books rescue nil
@@ -54,31 +53,31 @@ ActiveRecord::Base.connection.create_table :amazon_products do |t|  # , :id =&gt; f
   t.column :amazonable_type, :string, :limit =&gt; 15, :default =&gt; &quot;&quot;, :null =&gt; false
 end
 
+
+
 class Book &lt; ActiveRecord::Base
-  acts_as_amazon_product(
-    :asin =&gt; 'isbn', :name =&gt; 'title', 
-    :access_key =&gt; @@access_key, :associate_tag =&gt; @@associate_tag)
+  acts_as_amazon_product(:asin =&gt; 'isbn', :name =&gt; 'title')
 end
 
 class EANBook &lt; Book
-  acts_as_amazon_product(
-    :asin =&gt; 'ean', :name =&gt; 'title',
-    :access_key =&gt; @@access_key, :associate_tag =&gt; @@associate_tag)
+  acts_as_amazon_product(:asin =&gt; 'ean', :name =&gt; 'title' )
 end
 
 class Movie &lt; ActiveRecord::Base
-  acts_as_amazon_product :access_key =&gt; @@access_key, :associate_tag =&gt; @@associate_tag
+  acts_as_amazon_product 
 end
 
 class Magazine &lt; ActiveRecord::Base
-  acts_as_amazon_product :search_index =&gt; 'Magazines', :access_key =&gt; @@access_key,
-    :associate_tag =&gt; @@associate_tag
+  acts_as_amazon_product :search_index =&gt; 'Magazines'
 end
 
 class LocalBook &lt; ActiveRecord::Base
   acts_as_amazon_product(
+    :access_key =&gt; @@config['amazon']['access_key'], 
+    :secret_key =&gt; @@config['amazon']['secret_key'], 
+    :associate_tag =&gt; @@config['amazon']['associate_tag'], 
     :asin =&gt; 'isbn', :name =&gt; 'title', 
-    :access_key =&gt; @@access_key, :associate_tag =&gt; @@associate_tag, :ignore_fields =&gt; [:small_image_url, :medium_image_url]
+    :ignore_fields =&gt; [:small_image_url, :medium_image_url]
   ) 
 end
 
@@ -99,6 +98,10 @@ class ActAsAmazonProductTest &lt; Test::Unit::TestCase
     @local_roots = LocalBook.load_from_amazon!('Roots', true)
   end
   
+  def test_associate_tag
+    assert_equal(@@config['amazon']['associate_tag'], Book.amazon_associate_tag)
+  end
+  
   def test_isbn
     assert_not_nil(@book_gtd.amazon)
     assert_equal(&quot;0142000280&quot;, @book_gtd.amazon.isbn)</diff>
      <filename>test/acts_as_amazon_product_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc3161fe064c461d96abb963604b7e7176cf5be8</id>
    </parent>
  </parents>
  <author>
    <name>Scott Nedderman</name>
    <email>scott@netphase.com</email>
  </author>
  <url>http://github.com/netphase/aaap/commit/a082c3204d3477202bd8579c0b1f7a9b21bf85ae</url>
  <id>a082c3204d3477202bd8579c0b1f7a9b21bf85ae</id>
  <committed-date>2009-07-20T20:44:07-07:00</committed-date>
  <authored-date>2009-07-20T20:15:23-07:00</authored-date>
  <message>Upgraded to ecs 0.5.6 to enable authenticating calls</message>
  <tree>b8b5faf3b74c551fa6bae6bc19dcd13a10ebe7d5</tree>
  <committer>
    <name>Scott Nedderman</name>
    <email>scott@netphase.com</email>
  </committer>
</commit>
