<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -92,7 +92,10 @@ Usage
 	payment.message
 	payment.status
 	payment.id
-
+	
+	# you can set a different configuration file
+	Locaweb::Base.config_file = &quot;some/path&quot;
+	
 TO-DO
 -----
 </diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -8,12 +8,24 @@ module Locaweb
     
     # Return the configuration for the current environment
     def config
-      CONFIG[RAILS_ENV]
+      Locaweb::Base::CONFIG[RAILS_ENV]
     end
     
     # Load the configuration and set it to the CONFIG constant
     def self.config!
-      CONFIG.merge!(YAML.load_file(CONFIG_FILE))
+      Locaweb::Base::CONFIG.merge!(YAML.load_file(CONFIG_FILE))
+    end
+    
+    def self.config_file=(path)
+      Locaweb::Base::CONFIG_FILE.gsub!(/^.*?$/, path)
+    end
+    
+    # Ported silence_warnings method from rails to remove ActiveSupport dependency
+    def silence_warnings
+    	old_verbose, $VERBOSE = $VERBOSE, nil
+      yield
+    ensure
+      $VERBOSE = old_verbose
     end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/locaweb/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,7 @@ require File.dirname(__FILE__) + &quot;/spec_helper&quot;
 
 describe &quot;Payment&quot; do
   before(:each) do
-    silence_warnings do
-      Locaweb::Base::CONFIG_FILE = File.dirname(__FILE__) + &quot;/fixtures/locaweb-payment.yml&quot;
-    end
+    Locaweb::Base.config_file = File.dirname(__FILE__) + &quot;/fixtures/locaweb-payment.yml&quot;
     
     @wsdl    = mock(&quot;wsdl&quot;, :null_object =&gt; true)
     @factory = mock(&quot;factory&quot;, :null_object =&gt; true, :create_rpc_driver =&gt; @wsdl)</diff>
      <filename>spec/payment_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>06808ff0d33153bdd21cff829b824244df0c97d8</id>
    </parent>
  </parents>
  <author>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </author>
  <url>http://github.com/fnando/locaweb-payment/commit/1ce72418cc0f4d95f7dd9261ed2659546b53fc90</url>
  <id>1ce72418cc0f4d95f7dd9261ed2659546b53fc90</id>
  <committed-date>2009-02-08T14:33:43-08:00</committed-date>
  <authored-date>2009-02-08T14:33:43-08:00</authored-date>
  <message>Added config_file method for set different paths. Ported silence_warnings method.</message>
  <tree>731d01670b80e7d683ef844136c0e3586b13aef1</tree>
  <committer>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </committer>
</commit>
