upgrade wakatime package to v2.1.6 to fix list index error when detecting subversion project.
This commit is contained in:
parent
9367f15ef1
commit
b0bdbf4b52
4 changed files with 20 additions and 4 deletions
|
@ -3,6 +3,18 @@ History
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
||||||
|
2.1.6 (2014-11-18)
|
||||||
|
++++++++++++++++++
|
||||||
|
|
||||||
|
- fix list index error when detecting subversion project
|
||||||
|
|
||||||
|
|
||||||
|
2.1.5 (2014-11-17)
|
||||||
|
++++++++++++++++++
|
||||||
|
|
||||||
|
- catch exceptions when getting current machine time zone
|
||||||
|
|
||||||
|
|
||||||
2.1.4 (2014-11-12)
|
2.1.4 (2014-11-12)
|
||||||
++++++++++++++++++
|
++++++++++++++++++
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
__title__ = 'wakatime'
|
__title__ = 'wakatime'
|
||||||
__version__ = '2.1.4'
|
__version__ = '2.1.6'
|
||||||
__author__ = 'Alan Hamlett'
|
__author__ = 'Alan Hamlett'
|
||||||
__license__ = 'BSD'
|
__license__ = 'BSD'
|
||||||
__copyright__ = 'Copyright 2014 Alan Hamlett'
|
__copyright__ = 'Copyright 2014 Alan Hamlett'
|
||||||
|
@ -287,7 +287,10 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
|
||||||
request.add_header('Authorization', auth)
|
request.add_header('Authorization', auth)
|
||||||
|
|
||||||
# add Olson timezone to request
|
# add Olson timezone to request
|
||||||
|
try:
|
||||||
tz = tzlocal.get_localzone()
|
tz = tzlocal.get_localzone()
|
||||||
|
except:
|
||||||
|
tz = None
|
||||||
if tz:
|
if tz:
|
||||||
request.add_header('TimeZone', u(tz.zone))
|
request.add_header('TimeZone', u(tz.zone))
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ class Subversion(BaseProject):
|
||||||
if isinstance(line, bytes):
|
if isinstance(line, bytes):
|
||||||
line = bytes.decode(line)
|
line = bytes.decode(line)
|
||||||
line = line.split(': ', 1)
|
line = line.split(': ', 1)
|
||||||
|
if len(line) == 2:
|
||||||
info[line[0]] = line[1]
|
info[line[0]] = line[1]
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ let s:VERSION = '2.0.11'
|
||||||
if !filereadable(expand("$HOME/.wakatime.cfg"))
|
if !filereadable(expand("$HOME/.wakatime.cfg"))
|
||||||
let key = input("[WakaTime] Enter your wakatime.com api key: ")
|
let key = input("[WakaTime] Enter your wakatime.com api key: ")
|
||||||
if key != ''
|
if key != ''
|
||||||
call writefile(['[settings]', printf("api_key=%s", key)], expand("$HOME/.wakatime.cfg"))
|
call writefile(['[settings]', printf("api_key = %s", key), 'ignore =', ' ^COMMIT_EDITMSG$', ' ^TAG_EDITMSG$'], expand("$HOME/.wakatime.cfg"))
|
||||||
echo "[WakaTime] Setup complete! Visit http://wakatime.com to view your logged time."
|
echo "[WakaTime] Setup complete! Visit http://wakatime.com to view your logged time."
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue