From 53376776b12ed37f6f75beef17448ec904680bc6 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 30 Mar 2019 18:54:33 -0700 Subject: [PATCH] upgrade wakatime-cli to v10.8.2 --- packages/wakatime/__about__.py | 2 +- packages/wakatime/stats.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/wakatime/__about__.py b/packages/wakatime/__about__.py index 1389dbd..0de4236 100644 --- a/packages/wakatime/__about__.py +++ b/packages/wakatime/__about__.py @@ -1,7 +1,7 @@ __title__ = 'wakatime' __description__ = 'Common interface to the WakaTime api.' __url__ = 'https://github.com/wakatime/wakatime' -__version_info__ = ('10', '8', '1') +__version_info__ = ('10', '8', '2') __version__ = '.'.join(__version_info__) __author__ = 'Alan Hamlett' __author_email__ = 'alan@wakatime.com' diff --git a/packages/wakatime/stats.py b/packages/wakatime/stats.py index 3b36e0d..8abf5df 100644 --- a/packages/wakatime/stats.py +++ b/packages/wakatime/stats.py @@ -169,6 +169,10 @@ def get_language_from_extension(file_name): """ filepart, extension = os.path.splitext(file_name) + pathpart, filename = os.path.split(file_name) + + if filename == 'go.mod': + return 'Go' if re.match(r'\.h.*$', extension, re.IGNORECASE) or re.match(r'\.c.*$', extension, re.IGNORECASE):