Class: ErrCounter

Inherits:
Object show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/install.rb

Overview

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*

Constant Summary collapse

@@ACCOUNT_ID =
341
@@SITE_DOMAIN =
'installs.activescaffold.com'

Class Method Summary collapse

Class Method Details

.incrementObject



30
31
32
33
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/install.rb', line 30

def self.increment
  @http = Net::HTTP.new("errcount.com")
  resp, data = @http.get2("/ctr/#{@@ACCOUNT_ID}.js", {'Referer' => @@SITE_DOMAIN})
end