<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/people_image_downloader_spec.rb</filename>
    </added>
    <added>
      <filename>spec/spec_helper.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,8 @@
 # website.
 # For example, Under Mac OS X this is likely to be something like:
 web_root: &quot;/Library/WebServer/Documents/openaustralia&quot;
+
+
 # Under Linux, this is likely to be something like:
 #web_root: &quot;/var/www/openaustralia-app&quot;
 </diff>
      <filename>configuration.yml</filename>
    </modified>
    <modified>
      <diff>@@ -6,33 +6,33 @@ class Configuration
     :regmem_pdf_path, :base_dir
   
   @@conf = nil
+  # Load the configuration
+  def global_conf
+    @@conf ||= YAML.load_file( &quot;#{File.dirname(__FILE__)}/../configuration.yml&quot; ) || {}
+  end
   
   def initialize
-    if @@conf.nil?
-      # Load the configuration
-      @@conf = YAML::load( File.open( &quot;#{File.dirname(__FILE__)}/../configuration.yml&quot; ) )
-      @@conf = {} if !@@conf
-    end
-    
     # Load the information from the mysociety configuration
     require &quot;#{web_root}/rblib/config&quot;
+
     MySociety::Config.set_file(&quot;#{web_root}/twfy/conf/general&quot;)
-    @database_host = MySociety::Config.get('DB_HOST')
-    @database_user = MySociety::Config.get('DB_USER')
+
+    @database_host     = MySociety::Config.get('DB_HOST')
+    @database_user     = MySociety::Config.get('DB_USER')
     @database_password = MySociety::Config.get('DB_PASSWORD')
-    @database_name = MySociety::Config.get('DB_NAME')
-    @file_image_path = MySociety::Config.get('FILEIMAGEPATH')
-    @members_xml_path = MySociety::Config.get('PWMEMBERS')
-    @xml_path = MySociety::Config.get('RAWDATA')
-    @regmem_pdf_path = MySociety::Config.get('REGMEMPDFPATH')
-    @base_dir = MySociety::Config.get('BASEDIR')
+    @database_name     = MySociety::Config.get('DB_NAME')
+    @file_image_path   = MySociety::Config.get('FILEIMAGEPATH')
+    @members_xml_path  = MySociety::Config.get('PWMEMBERS')
+    @xml_path          = MySociety::Config.get('RAWDATA')
+    @regmem_pdf_path   = MySociety::Config.get('REGMEMPDFPATH')
+    @base_dir          = MySociety::Config.get('BASEDIR')
   end
   
   # Ruby magic
   def method_missing(method_id)
     name = method_id.id2name
-    if @@conf.has_key?(name)
-      @@conf[name]
+    if global_conf.has_key?(name)
+      global_conf[name]
     else
       super
     end</diff>
      <filename>lib/configuration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ecd5caa93c20072ee6acc231e7d4757982dc0ca7</id>
    </parent>
  </parents>
  <author>
    <name>lachie</name>
    <email>lachiec@gmail.com</email>
  </author>
  <url>http://github.com/lachie/openaustralia-parser/commit/25db6fcd776b6c36977d2c33d1b055e346c4f323</url>
  <id>25db6fcd776b6c36977d2c33d1b055e346c4f323</id>
  <committed-date>2009-06-13T00:11:13-07:00</committed-date>
  <authored-date>2009-06-13T00:11:13-07:00</authored-date>
  <message>twiddling bits and pieces for spec to run in isolation</message>
  <tree>9c9d6ac3856954be4397e74b086b2281a9d8d262</tree>
  <committer>
    <name>lachie</name>
    <email>lachiec@gmail.com</email>
  </committer>
</commit>
