<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,16 +5,12 @@ require 'active_record'
 
 module YamlDb
 	def self.dump(filename)
-		verify_utf8
-
 		disable_logger
 		YamlDb::Dump.dump(File.new(filename, &quot;w&quot;))
 		reenable_logger
 	end
 
 	def self.load(filename)
-		verify_utf8
-
 		disable_logger
 		YamlDb::Load.load(File.new(filename, &quot;r&quot;))
 		reenable_logger
@@ -28,22 +24,6 @@ module YamlDb
 	def self.reenable_logger
 		ActiveRecord::Base.logger = @@old_logger
 	end
-
-	class EncodingException &lt; RuntimeError; end
-
-	def self.verify_utf8
-		raise &quot;RAILS_ENV is not defined&quot; unless defined?(RAILS_ENV)
-
-		unless ActiveRecord::Base.configurations[RAILS_ENV].has_key?('encoding')
-			raise EncodingException, &quot;Your database.yml configuration needs to specify encoding&quot;
-		end
-
-		unless ['unicode', 'utf8'].include?(ActiveRecord::Base.configurations[RAILS_ENV]['encoding'])
-			raise EncodingException, &quot;Your database encoding must be utf8 (mysql) or unicode (postgres)&quot;
-		end
-
-		true
-	end
 end
 
 </diff>
      <filename>lib/yaml_db.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@ describe YamlDb::Dump do
 		ActiveRecord::Base.connection.stub!(:select_one).and_return({&quot;count&quot;=&gt;&quot;2&quot;})
 		ActiveRecord::Base.connection.stub!(:select_all).and_return([ { 'a' =&gt; 1, 'b' =&gt; 2 }, { 'a' =&gt; 3, 'b' =&gt; 4 } ])
 		YamlDb::Utils.stub!(:quote_table).with('mytable').and_return('mytable')
-		YamlDb.stub!(:verify_utf8)
 	end
 
 	before(:each) do</diff>
      <filename>spec/yaml_dump_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,6 @@ require File.dirname(__FILE__) + '/base'
 describe YamlDb::Load do
 	before do
 		YamlDb::Utils.stub!(:quote_table).with('mytable').and_return('mytable')
-		YamlDb.stub!(:verify_utf8)
 
 		ActiveRecord::Base = mock('ActiveRecord::Base', :null_object =&gt; true)
 		ActiveRecord::Base.connection = mock('connection')</diff>
      <filename>spec/yaml_load_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/yaml_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>87faf6beefb49609f3091a51acefede142bc2fd8</id>
    </parent>
  </parents>
  <author>
    <name>Adam Wiggins</name>
    <email>adam@heroku.com</email>
  </author>
  <url>http://github.com/adamwiggins/yaml_db/commit/5e94f245c98e71838bc402462c8d817e8b67492d</url>
  <id>5e94f245c98e71838bc402462c8d817e8b67492d</id>
  <committed-date>2008-10-23T14:54:54-07:00</committed-date>
  <authored-date>2008-10-23T14:54:40-07:00</authored-date>
  <message>Revert &quot;verify the database encoding is utf8 or unicode&quot;

This reverts commit 1917392c269d43962c22ca0f3ec36042522c0909.</message>
  <tree>43a6d1aa5836f3967c62da23d2f813aebe4aa60b</tree>
  <committer>
    <name>Adam Wiggins</name>
    <email>adam@heroku.com</email>
  </committer>
</commit>
