 process = require 'child_process'
 request = require 'request'
 rimraf = require 'rimraf'
-
-latestCLIVersion = '4.1.8'
 
 packageVersion = null
 unloadHandler = null

      args = [cliLocation(), '--version']
      process.execFile(python, args, (error, stdout, stderr) ->
        if not error?
          if stderr.trim() == latestCLIVersion
            callback(true)
          else
            callback(false)
        else
          callback(false)
      )
  )

cliLocation = () ->

fileIsIgnored = (file) ->
  if endsWith(file, 'COMMIT_EDITMSG') or endsWith(file, 'PULLREQ_EDITMSG') or endsWith(file, 'MERGE_MSG') or endsWith(file, 'TAG_EDITMSG')
    return true
  patterns = atom.config.get('wakatime.ignore')
  ignore = false
  for pattern in patterns
    re = new RegExp(pattern, 'gi')
    if re.test(file)
      ignore = true
      break
