mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5e2e1be779 | |||
b1d344cb46 | |||
7245cbeb58 | |||
21395579ea |
14
HISTORY.rst
14
HISTORY.rst
@ -3,6 +3,20 @@ History
|
||||
-------
|
||||
|
||||
|
||||
2.0.17 (2014-11-18)
|
||||
++++++++++++++++++
|
||||
|
||||
- upgrade external wakatime package to v2.1.6
|
||||
- fix list index error when detecting subversion project
|
||||
|
||||
|
||||
2.0.16 (2014-11-12)
|
||||
++++++++++++++++++
|
||||
|
||||
- upgrade external wakatime package to v2.1.4
|
||||
- when Python was not compiled with https support, log an error to the log file
|
||||
|
||||
|
||||
2.0.15 (2014-11-10)
|
||||
++++++++++++++++++
|
||||
|
||||
|
@ -6,7 +6,7 @@ License: BSD, see LICENSE for more details.
|
||||
Website: https://wakatime.com/
|
||||
==========================================================="""
|
||||
|
||||
__version__ = '2.0.15'
|
||||
__version__ = '2.0.17'
|
||||
|
||||
import sublime
|
||||
import sublime_plugin
|
||||
|
@ -3,6 +3,30 @@ 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)
|
||||
++++++++++++++++++
|
||||
|
||||
- when Python was not compiled with https support, log an error to the log file
|
||||
|
||||
|
||||
2.1.3 (2014-11-10)
|
||||
++++++++++++++++++
|
||||
|
||||
- correctly detect branch name for subversion projects
|
||||
|
||||
|
||||
2.1.2 (2014-10-07)
|
||||
++++++++++++++++++
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
from __future__ import print_function
|
||||
|
||||
__title__ = 'wakatime'
|
||||
__version__ = '2.1.3'
|
||||
__version__ = '2.1.6'
|
||||
__author__ = 'Alan Hamlett'
|
||||
__license__ = 'BSD'
|
||||
__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)
|
||||
|
||||
# add Olson timezone to request
|
||||
tz = tzlocal.get_localzone()
|
||||
try:
|
||||
tz = tzlocal.get_localzone()
|
||||
except:
|
||||
tz = None
|
||||
if tz:
|
||||
request.add_header('TimeZone', u(tz.zone))
|
||||
|
||||
@ -318,7 +321,9 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
|
||||
if offline:
|
||||
queue = Queue()
|
||||
queue.push(data, plugin)
|
||||
if log.isEnabledFor(logging.DEBUG):
|
||||
if 'unknown url type: https' in u(sys.exc_info()[1]):
|
||||
log.error(exception_data)
|
||||
elif log.isEnabledFor(logging.DEBUG):
|
||||
log.warn(exception_data)
|
||||
else:
|
||||
log.error(exception_data)
|
||||
|
@ -72,7 +72,8 @@ class Subversion(BaseProject):
|
||||
if isinstance(line, bytes):
|
||||
line = bytes.decode(line)
|
||||
line = line.split(': ', 1)
|
||||
info[line[0]] = line[1]
|
||||
if len(line) == 2:
|
||||
info[line[0]] = line[1]
|
||||
return info
|
||||
|
||||
def _find_project_base(self, path, found=False):
|
||||
|
@ -30,6 +30,7 @@ EXTENSIONS = {
|
||||
'j2': 'HTML',
|
||||
'markdown': 'Markdown',
|
||||
'md': 'Markdown',
|
||||
'mdown': 'Markdown',
|
||||
'twig': 'Twig',
|
||||
}
|
||||
TRANSLATIONS = {
|
||||
|
Reference in New Issue
Block a user