This commit is contained in:
Alan Hamlett 2014-08-07 08:29:01 -07:00
parent f2a92b80fb
commit 10657d8f85
5 changed files with 13 additions and 4 deletions

1
.gitignore vendored
View file

@ -33,3 +33,4 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
.DS_Store

View file

@ -3,6 +3,13 @@ History
-------
2.0.5 (2014-08-07)
++++++++++++++++++
- upgrade external wakatime package to v2.0.6
- fix unicode bug by encoding json POST data
2.0.4 (2014-07-25)
++++++++++++++++++

View file

@ -36,3 +36,4 @@ nosetests.xml
virtualenv
venv
.DS_Store

View file

@ -13,7 +13,7 @@
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '2.0.5'
__version__ = '2.0.6'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2014 Alan Hamlett'
@ -127,7 +127,7 @@ def parseConfigFile(configFile):
return None
except IOError:
if not os.path.isfile(configFile):
print('Error: Could not read from config file ~/.wakatime.conf')
print('Error: Could not read from config file ~/.wakatime.cfg')
return configs
@ -284,7 +284,7 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
log.debug(data)
# setup api request
request = Request(url=url, data=json.dumps(data))
request = Request(url=url, data=str.encode(json.dumps(data)))
request.add_header('User-Agent', get_user_agent(plugin))
request.add_header('Content-Type', 'application/json')
auth = unicode('Basic {key}').format(key=bytes.decode(base64.b64encode(str.encode(key))))

View file

@ -6,7 +6,7 @@
" Website: https://wakatime.com/
" ============================================================================
let s:VERSION = '2.0.4'
let s:VERSION = '2.0.5'
" Init {{{