<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,9 @@
+== 1.0.1 2009-07-19
+
+* 2 minor enhancements:
+  * Removed dependency on ActiveSupport
+  * Removed old internal version of HookR
+
 == 1.0.0 2008-11-28
 
 * 1 major enhancement:</diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,8 @@ $hoe = Hoe.new('alter-ego', AlterEgo::VERSION) do |p|
   p.changes              = p.paragraphs_of(&quot;History.txt&quot;, 0..1).join(&quot;\n\n&quot;)
   p.rubyforge_name       = p.name # TODO this is default value
   p.extra_deps         = [
-    ['activesupport','&gt;= 2.0.0'],
-    ['fail-fast',    '&gt;= 1.0.0']
+    ['fail-fast',    '~&gt; 1.1.0'],
+    ['hookr',        '~&gt; 1.0.0']
   ]
   p.extra_dev_deps = [
     ['newgem', &quot;&gt;= #{::Newgem::VERSION}&quot;]</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,17 @@
 $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
+gem 'hookr',     &quot;~&gt; 1.0.0&quot;
+gem 'fail-fast', &quot;~&gt; 1.1.0&quot;
+
 require 'forwardable'
 require 'singleton'
 require 'rubygems'
-require 'activesupport'
 require 'fail_fast'
 require 'hookr'
 
 module AlterEgo
-  VERSION = '1.0.0'
+  VERSION = '1.0.1'
 
   include FailFast::Assertions
 
@@ -70,11 +72,11 @@ module AlterEgo
     end
   end
 
-  # A customization of Hookr::Hook to deal with the fact that State internal
+  # A customization of HookR::Hook to deal with the fact that State internal
   # callbacks need to be executed in the context of the state's context, not the
   # state object itself.
-  class StateHook &lt; Hookr::Hook
-    class StateContextCallback &lt; Hookr::InternalCallback
+  class StateHook &lt; HookR::Hook
+    class StateContextCallback &lt; HookR::InternalCallback
       def call(event)
         context = event.arguments.first
         context.instance_eval(&amp;block)
@@ -91,10 +93,10 @@ module AlterEgo
   class State
     include FailFast::Assertions
     extend FailFast::Assertions
-    include Hookr::Hooks
+    include HookR::Hooks
 
     def self.transition(options, &amp;trans_action)
-      options.assert_valid_keys(:to, :on, :if)
+      assert_only_keys(options, :to, :on, :if)
       assert_keys(options, :to)
       guard    = options[:if]
       to_state = options[:to]
@@ -216,6 +218,8 @@ module AlterEgo
   end
 
   module ClassMethods
+    include FailFast::Assertions
+
     def state(identifier, options={}, &amp;block)
       if states.has_key?(identifier)
         raise InvalidDefinitionError, &quot;State #{identifier.inspect} already defined&quot;
@@ -229,7 +233,7 @@ module AlterEgo
     end
 
     def request_filter(options, &amp;block)
-      options.assert_valid_keys(:state, :request, :new_state, :action)
+      assert_only_keys(options, :state, :request, :new_state, :action)
       options = {
         :state     =&gt; not_nil,
         :request   =&gt; not_nil,
@@ -256,7 +260,7 @@ module AlterEgo
     end
 
     def add_state(new_state, identifier=new_state.identifier, options = {})
-      options.assert_valid_keys(:default)
+      assert_only_keys(options, :default)
 
       self.states[identifier] = new_state.new
 </diff>
      <filename>lib/alter_ego.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/hookr.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>ec80c1c415234e476ca98908cf5484a1f9a3a876</id>
    </parent>
  </parents>
  <author>
    <name>Avdi Grimm</name>
    <email>avdi@avdi.org</email>
  </author>
  <url>http://github.com/avdi/alter-ego/commit/d2cca0c31f96b92f8bb6b0a051f25378cddcb986</url>
  <id>d2cca0c31f96b92f8bb6b0a051f25378cddcb986</id>
  <committed-date>2009-07-18T23:35:53-07:00</committed-date>
  <authored-date>2009-07-18T23:35:53-07:00</authored-date>
  <message>Removed dependency on ActiveSupport; Removed internal HookR.</message>
  <tree>e6f628854b34b3f9d472255bbc038a59c97563cf</tree>
  <committer>
    <name>Avdi Grimm</name>
    <email>avdi@avdi.org</email>
  </committer>
</commit>
