// Generated by IcedCoffeeScript 1.7.1-c
(function() {
  var PackageJson, constants, fs, log, package_json, path;

  path = require('path');

  fs = require('fs');

  log = require('./log');

  package_json = require('../package.json');

  constants = require('./constants').constants;

  exports.PackageJson = PackageJson = (function() {
    function PackageJson() {
      this.json = package_json;
    }

    PackageJson.prototype.version = function() {
      var _ref;
      return (_ref = this.json) != null ? _ref.version : void 0;
    };

    PackageJson.prototype.bin = function() {
      var k, v, _ref;
      _ref = this.json.bin;
      for (k in _ref) {
        v = _ref[k];
        return k;
      }
    };

    PackageJson.prototype.track_obj = function() {
      return {
        name: constants.client_name,
        version: this.version()
      };
    };

    PackageJson.prototype.identify_as = function() {
      return "" + constants.client_name + " v" + (this.version()) + " " + process.platform;
    };

    PackageJson.prototype.user_agent = function() {
      var ua;
      ua = constants.user_agent;
      return "" + ua.main + "/" + (this.version()) + " (" + ua.details + ")";
    };

    return PackageJson;

  })();

}).call(this);
