<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>install_assets.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,11 +4,11 @@
 require File.dirname(__FILE__) + '/environment'
 
 ##
-## Run the install script, too, just to make sure
+## Run the install assets script, too, just to make sure
 ## But at least rescue the action in production
 ##
 begin
-  require File.dirname(__FILE__) + '/install'
+  require File.dirname(__FILE__) + '/install_assets'
 rescue
   raise $! unless RAILS_ENV == 'production'
 end</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,36 +1,40 @@
-# Workaround a problem with script/plugin and http-based repos.
-# See http://dev.rubyonrails.org/ticket/8189
-Dir.chdir(Dir.getwd.sub(/vendor.*/, '')) do
-
-##
-## Copy over asset files (javascript/css/images) from the plugin directory to public/
-##
-
-def copy_files(source_path, destination_path, directory)
-  source, destination = File.join(directory, source_path), File.join(RAILS_ROOT, destination_path)
-  FileUtils.mkdir(destination) unless File.exist?(destination)
-  FileUtils.cp_r(Dir.glob(source+'/*.*'), destination)
-end
-
-directory = File.dirname(__FILE__)
-
-copy_files(&quot;/public&quot;, &quot;/public&quot;, directory)
-
-available_frontends = Dir[File.join(directory, 'frontends', '*')].collect { |d| File.basename d }
-[ :stylesheets, :javascripts, :images].each do |asset_type|
-  path = &quot;/public/#{asset_type}/active_scaffold&quot;
-  copy_files(path, path, directory)
-  
-  File.open(File.join(RAILS_ROOT, path, 'DO_NOT_EDIT'), 'w') do |f|
-    f.puts &quot;Any changes made to files in sub-folders will be lost.&quot;
-    f.puts &quot;See http://activescaffold.com/tutorials/faq#custom-css.&quot;
-  end
-
-  available_frontends.each do |frontend|
-    source = &quot;/frontends/#{frontend}/#{asset_type}/&quot;
-    destination = &quot;/public/#{asset_type}/active_scaffold/#{frontend}&quot;
-    copy_files(source, destination, directory)
-  end
-end
-
+##
+## Install ActiveScaffold assets into /public 
+##
+
+require File.dirname(__FILE__) + '/install_assets'
+
+##
+## Install Counter
+##
+#
+# What's going on here? 
+#   We're incrementing a web counter so we can track SVN installs of ActiveScaffold 
+# 
+# How? 
+#   We're making a GET request to errcount.com to update a simple counter. No data is transmitted.
+# 
+# Why?
+#   So we can know how many people are using ActiveScaffold and modulate our level of effort accordingly.
+#   Despite numerous pleas our Googly overlords still only provide us with download stats for the zip distro.
+# 
+# *Thanks for your understanding* 
+#
+
+class ErrCounter # using errcount.com
+  require &quot;net/http&quot;
+  
+  @@ACCOUNT_ID = 341
+  @@SITE_DOMAIN = 'installs.activescaffold.com'
+  
+  def self.increment
+    @http = Net::HTTP.new(&quot;errcount.com&quot;)
+    resp, data = @http.get2(&quot;/ctr/#{@@ACCOUNT_ID}.js&quot;, {'Referer' =&gt; @@SITE_DOMAIN})
+    puts resp.body
+  end  
+end
+
+begin
+  ErrCounter.increment
+rescue
 end
\ No newline at end of file</diff>
      <filename>install.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>450b007acfb9d51a38b9813413b91d4df133d702</id>
    </parent>
  </parents>
  <author>
    <name>rrwhite</name>
    <email>rrwhite@561dde7e-7729-0410-be8e-ef83869d6c7d</email>
  </author>
  <url>http://github.com/activescaffold/active_scaffold/commit/7bd9e6da61ae0725ce1d80f80ec2b9024f434e5f</url>
  <id>7bd9e6da61ae0725ce1d80f80ec2b9024f434e5f</id>
  <committed-date>2008-02-24T18:22:10-08:00</committed-date>
  <authored-date>2008-02-24T18:22:10-08:00</authored-date>
  <message>Moved the asset copying code out of install.rb and install_assets.rb. That way I could have init.rb call install_assets.rb every time the server is started without compromising the intent of install.rb (only run once). I also add an install counter to install.rb that &quot;phones home&quot; using a GET request so we can keep track of SVN installs. Feel free to edit my copy in install.rb that explains to the developer what and why we're doing with the install counter.

git-svn-id: http://activescaffold.googlecode.com/svn/trunk@728 561dde7e-7729-0410-be8e-ef83869d6c7d</message>
  <tree>150a178ed316f73075a08e70e6abf3f8116cd8bd</tree>
  <committer>
    <name>rrwhite</name>
    <email>rrwhite@561dde7e-7729-0410-be8e-ef83869d6c7d</email>
  </committer>
</commit>
