From 00b3727f1d8bd87266b14939c450825e4bffd2d4 Mon Sep 17 00:00:00 2001
From: Sven Fuchs <me@svenfuchs.com>
Date: Wed, 3 Oct 2012 13:50:20 +0200
Subject: [PATCH] add .slugignore

---
 .slugignore     |  6 ++++++
 script/stats.rb | 30 ------------------------------
 2 files changed, 6 insertions(+), 30 deletions(-)
 create mode 100644 .slugignore
 delete mode 100644 script/stats.rb

diff --git a/.slugignore b/.slugignore
new file mode 100644
index 00000000..5750deac
--- /dev/null
+++ b/.slugignore
@@ -0,0 +1,6 @@
+assets
+spec
+tmp
+*.sql
+*.psd
+*.pdf
diff --git a/script/stats.rb b/script/stats.rb
deleted file mode 100644
index 9d4ef771..00000000
--- a/script/stats.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require_relative '../config/environment'
-require 'statistics'
-
-data = Statistics.daily_repository_counts
-exit if data.empty?
-
-next_thousand = 1000
-last_time = data.first.first
-
-growth = data.inject([[data.shift.last, 0]]) do |growth, (time, num)|
-  growth << [num, num - growth.last.first]
-end
-two_weeks = growth.slice(-14, 14)
-average = (two_weeks.inject(0) { |sum, (total, growth)| sum + growth }.to_f / two_weeks.length).round(0)
-
-data.each do |(time, num)|
-  if num >= next_thousand
-    thousand = num - (num % 1000)
-    days = (time - last_time) / (1000 * 60 * 60 * 24)
-    puts "#{thousand} reached on #{Time.at(time / 1000).strftime('%Y-%m-%d')} after #{days} days"
-    next_thousand = thousand + 1000
-    last_time = time
-  end
-end
-remaining = next_thousand - data.last.last
-
-puts
-puts "Average growth within last 14 days: #{average} repositories.\n"
-puts "Will reach #{next_thousand} repositories in #{(remaining.to_f / average).round(2)} days."
-