Alan Hamlett
4ea96210f8
give TypeScript higher priority than TypoScript
2017-02-20 13:22:14 -08:00
Alan Hamlett
fad721530a
use alternate language if case-insensitive matches a language in the json files
2017-02-20 12:40:24 -08:00
Alan Hamlett
c5531312da
refactor main into multiple files
2017-02-20 12:04:07 -08:00
Alan Hamlett
e50ce86c6e
v6.3.0
2017-02-16 12:48:15 -08:00
Alan Hamlett
9c45df622a
autocommit transactions to sqlite db in python 3.6+
2017-02-16 12:46:04 -08:00
Alan Hamlett
972c57fb8c
v6.2.3
2017-02-15 17:42:29 -08:00
Alan Hamlett
62dfdc7993
add test for --hidefilenames arg
2017-02-15 15:34:13 -08:00
Alan Hamlett
fdba83a1c7
improve test coverage over invalid arguments
2017-02-15 15:28:53 -08:00
Alan Hamlett
1fd6169f53
support for ntlm proxy
2017-02-15 15:02:05 -08:00
Alan Hamlett
5428942ccf
remove unused sockshandler
2017-02-15 12:27:21 -08:00
Alan Hamlett
03e9280257
upgrade pytz to v2016.10
2017-02-15 12:25:28 -08:00
Alan Hamlett
4a3db76912
upgrade requests to v2.13.0 and pysocks to v1.6.6
2017-02-15 12:10:01 -08:00
Alan Hamlett
5dd9c1b07d
v6.2.2
2017-02-13 23:28:15 -08:00
Alan Hamlett
fd6f5779d4
upgrade pygments to v2.2.0
2017-02-13 23:25:51 -08:00
Alan Hamlett
e5ee05a14f
v6.2.1
2017-02-08 19:16:45 -08:00
Alan Hamlett
9938a67dc9
prevent stripping whitespace from end of regex patterns
2017-02-02 11:47:06 -08:00
Alan Hamlett
7f198639aa
allow list of regex patterns for hiding file names
2017-02-01 23:31:30 -08:00
Alan Hamlett
504c199e83
v6.2.0
2016-10-24 11:15:38 +02:00
Alan Hamlett
d8f0968c1a
allow setting home folder from WAKATIME_HOME env variable
2016-10-24 11:10:36 +02:00
Alan Hamlett
92d8960250
imporove debug warning message from unsupported dependency parser
2016-10-16 10:50:40 +02:00
Alan Hamlett
d0b3a0846e
v6.1.0
2016-10-11 12:53:31 +02:00
Alan Hamlett
d4eeedbacc
return custom exit status from missing api key
2016-10-11 09:51:34 +02:00
Alan Hamlett
f88d725219
v6.0.9
2016-09-13 15:52:25 +02:00
Alan Hamlett
8960d5b968
no need to have coverage for system library exceptions
2016-09-13 15:51:56 +02:00
Alan Hamlett
7ef63ac191
force file path to use system separator
2016-09-13 15:47:34 +02:00
Alan Hamlett
270d9dc3c7
patch pygments to catch IOError when user does not have permission to import system Python module pkg_resources
2016-09-07 12:53:31 +02:00
Alan Hamlett
21a6f1de24
v6.0.8
2016-09-02 10:43:18 +02:00
Alan Hamlett
f9cd857d90
remove unused states from html parser
2016-09-01 12:41:20 +02:00
Alan Hamlett
48591d2767
remove unused method
2016-09-01 12:28:55 +02:00
Alan Hamlett
fd322ba3b6
improve traceback logging and non-utf8 handling
2016-09-01 11:49:12 +02:00
Alan Hamlett
c08288eefd
fix custom json encoder
2016-09-01 00:41:21 +02:00
Alan Hamlett
dbec1d03a6
remove unused code
2016-09-01 00:16:24 +02:00
Alan Hamlett
e8884ffc8e
test truncating dependencies in TokenParser
2016-08-31 17:42:40 +02:00
Alan Hamlett
3dd5e12d06
prevent logging __future__ python dependency
2016-08-31 17:30:49 +02:00
Alan Hamlett
694205ebee
remove unused python token parser method
2016-08-31 17:13:25 +02:00
Alan Hamlett
5d37335b37
one-line if for returning project name
2016-08-31 14:52:05 +02:00
Alan Hamlett
8ef87d0393
test for index error on project map replacement regex groups
2016-08-31 14:49:01 +02:00
Alan Hamlett
c4d6bb38a1
test for unknown exceptions and malformed extra heartbeats json
2016-08-31 14:27:10 +02:00
Alan Hamlett
b6f2ca548a
upgrade python packages to latest versions
2016-08-31 12:23:38 +02:00
Alan Hamlett
9675e861b4
upgrade simplejson to v3.8.2
2016-08-31 11:25:28 +02:00
Alan Hamlett
ce54ef0893
always turn strings into unicode in logger encoder
2016-07-21 15:13:34 +02:00
Alan Hamlett
5fe5c61dce
v6.0.7
2016-07-06 23:13:08 +02:00
Alan Hamlett
a5933aa2a7
handle unknown exceptions from requests library by deleting cached session object
2016-07-06 23:07:55 +02:00
Alan Hamlett
5207dc68ee
remove pragma nocover
2016-07-06 17:36:22 +02:00
Alan Hamlett
9fc7744c7c
upgrade urllib3 to current master version
2016-07-06 16:56:55 +02:00
Alan Hamlett
babfe17afb
prevent captured exception from showing when logging other tracebacks
2016-07-06 16:37:52 +02:00
Daniel Fourie
8c24a5c590
added setting hostname in .wakatime.cfg
2016-07-06 08:46:40 +02:00
Alan Hamlett
b9492ee4ec
v6.0.6
2016-06-17 10:14:52 +02:00
Alan Hamlett
cacefba4c2
fix traceback logging level logic
2016-06-16 08:02:56 +02:00
Alan Hamlett
4ce1419cc8
correct namespace for pygments.lexers.ClassNotFound error
2016-06-15 21:09:40 +02:00
Alan Hamlett
6efcee5849
v6.0.5
2016-06-13 16:44:48 +02:00
Alan Hamlett
23d8e7b355
upgrade pygments to v2.1.3
2016-06-13 16:41:17 +02:00
Alan Hamlett
3f57b165e6
v6.0.4
2016-06-08 20:50:36 +02:00
Alan Hamlett
ee08dab98a
upgrade urllib3 to master to fix unhandled retry exception
2016-06-08 20:34:52 +02:00
Alan Hamlett
aaf49a5c22
prevent tracking git branch with detached head
2016-06-01 10:08:00 +02:00
Alan Hamlett
fa38272e5d
v6.0.3
2016-05-21 14:23:00 +02:00
Alan Hamlett
e4fea84b5e
improve test coverage for dependency detection
2016-05-21 14:21:55 +02:00
Alan Hamlett
1e5af3fd43
support for socks proxies
2016-05-21 13:09:55 +02:00
Alan Hamlett
724a841193
upgrade requests to v2.10.0
2016-05-21 11:55:10 +02:00
Alan Hamlett
adfcfb0ae5
v6.0.2
2016-05-16 16:06:31 +02:00
Alan Hamlett
bb71ff3106
prevent using svn when Mac does not have xcode-tools installed
2016-05-16 16:02:38 +02:00
Alan Hamlett
8ecba162aa
v6.0.1
2016-04-29 01:11:19 +02:00
Alan Hamlett
c3d7de3de9
send plugin with extra heartbeats
2016-04-29 01:10:19 +02:00
Alan Hamlett
f5031162de
v6.0.0
2016-04-29 00:01:33 +02:00
Alan Hamlett
745049d685
remove --entitytype from help output
2016-04-29 00:01:26 +02:00
Alan Hamlett
dc1964cd80
no longer allowing entity-type url
2016-04-28 23:57:15 +02:00
Alan Hamlett
937350220e
only read one line of extra heartbeats from stdin
2016-04-28 19:25:52 +02:00
Alan Hamlett
dce9d70d48
correct config file in help output
2016-04-26 13:40:08 +02:00
Alan Hamlett
67a2403070
new --extra-heartbeats argument
2016-04-21 00:30:44 +02:00
Alan Hamlett
984a8ab62a
increase default timeout to 60 seconds
2016-04-19 13:50:29 +02:00
Alan Hamlett
18f588104d
v5.0.1
2016-04-19 12:33:36 +02:00
Alan Hamlett
95a2db0a77
support passing an alternate language to cli
2016-04-19 12:30:44 +02:00
Alan Hamlett
af7568425a
v5.0.0
2016-04-18 23:55:25 +02:00
Alan Hamlett
378c0d2e75
add empty package init file
2016-04-18 23:41:02 +02:00
Alan Hamlett
a8653a3294
remove test files from included packages
2016-04-18 23:39:01 +02:00
Alan Hamlett
aac61a1e3c
upgrade pytz to v2016.3
2016-04-18 23:34:50 +02:00
Alan Hamlett
7a38ae9442
update tzlocal package. move packages to python version folder.
2016-04-18 23:27:41 +02:00
Alan Hamlett
615fa5cdac
support regex patterns in projectmap config section
2016-04-18 21:34:00 +02:00
Alan Hamlett
a60a176cfe
v4.1.13
2016-03-06 14:11:33 -08:00
Alan Hamlett
ce7448a6c2
encode TimeZone as utf-8 before adding to headers
2016-03-06 14:07:47 -08:00
Alan Hamlett
3ebc56fa41
v4.1.12
2016-03-06 13:03:38 -08:00
Alan Hamlett
7a1af49bf2
update copyright year to 2016
2016-03-06 13:02:46 -08:00
Alan Hamlett
11e6c94ffa
encode unicode as basestring before passing to urllib3
2016-03-06 13:00:00 -08:00
Alan Hamlett
4d4baea36e
v4.1.11
2016-03-06 12:44:39 -08:00
Alan Hamlett
62bc4be0f4
code formatting changes
2016-03-06 12:42:54 -08:00
Alan Hamlett
12e4f56d4b
encode hostname as unicode before adding as header
2016-03-06 12:34:59 -08:00
Alan Hamlett
b6bd75a0e8
update requests to v2.9.1-dev
2016-03-06 12:34:13 -08:00
Alan Hamlett
9981601a0a
change logging level of traceback messages
2016-02-18 11:48:11 -08:00
Alan Hamlett
33a87b9877
add new AUTH_ERROR exit status to signal an invalid api key. fixes #41 .
2016-01-25 23:49:37 +01:00
Alan Hamlett
98de22c3a8
v4.1.10
2016-01-11 11:25:49 -08:00
Alan Hamlett
9c007c0b73
update requests package to v2.9.1
2016-01-11 11:19:07 -08:00
Alan Hamlett
85cecd6280
accept 201 or 202 response codes as success from api
2016-01-11 02:13:58 -08:00
Alan Hamlett
88e253d164
v4.1.9
2016-01-06 13:52:37 -08:00
Alan Hamlett
1f7f2fc666
use api.wakatime.com for sending heartbeats
2016-01-06 13:48:18 -08:00
Alan Hamlett
23dc803446
detect dependencies from golang files
2016-01-02 19:35:52 -08:00
Alan Hamlett
be512b0196
give integer response codes names using constants
2016-01-01 23:20:23 -08:00
Alan Hamlett
691368fe2d
use logger.traceback to log exceptions
2015-12-25 00:41:06 -06:00
Alan Hamlett
68e5d35b06
disable urllib3 SSL warning from every request https://urllib3.readthedocs.org/en/latest/security.html#disabling-warnings
2015-10-23 00:41:46 -07:00
Alan Hamlett
b483218249
better argument formatting
2015-10-23 00:18:20 -07:00
Alan Hamlett
d389be2876
log all unknown exceptions to wakatime.log file
2015-10-23 00:14:41 -07:00
Alan Hamlett
ca5bb35bbb
correctly log exception tracebacks
2015-10-22 23:15:57 -07:00
Alan Hamlett
54fbc8ee22
tests for php and html dependencies
2015-09-29 22:00:17 -07:00
Alan Hamlett
ffa9e410b4
improve C# dependency test
2015-09-29 21:15:46 -07:00
Alan Hamlett
7bc8ec006b
test detection of C# dependencies
2015-09-29 20:42:47 -07:00
Alan Hamlett
b38edaa011
v4.1.8
2015-09-29 02:27:06 -07:00
Alan Hamlett
9744df5391
prevent using lexer when None
2015-09-29 02:18:54 -07:00
Alan Hamlett
d6faae47d0
better test coverage for offline queue
2015-09-27 03:32:28 -07:00
Alan Hamlett
db02b82d95
remove temp sqlite file after testing. improve offlinequeue and session_cache tests.
2015-09-27 03:17:54 -07:00
Alan Hamlett
9af0c110ca
tests for crud session cache
2015-09-27 01:52:53 -07:00
Alan Hamlett
dfb8ad4502
tests for session caching
2015-09-27 01:04:06 -07:00
Alan Hamlett
0a56ffa8eb
better svn test coverage
2015-09-26 21:11:21 -07:00
Alan Hamlett
ddb01ee894
rename languages as dependencies
2015-09-26 19:26:15 -07:00
Alan Hamlett
5ee4f41a87
test project base
2015-09-26 19:23:38 -07:00
Alan Hamlett
c99518bcc8
test proxy setting
2015-09-26 19:17:06 -07:00
Alan Hamlett
f467336a8b
test for config file not passed via command line
2015-09-26 19:10:12 -07:00
Alan Hamlett
cde35d7ccd
tests for verbose logging
2015-09-26 18:56:33 -07:00
Alan Hamlett
f1e08d9e85
remove unused code
2015-09-26 18:42:18 -07:00
Alan Hamlett
3745a93be4
remove unused code
2015-09-26 16:55:50 -07:00
Alan Hamlett
1984fe4228
tests for c and cpp dependency detection. change api of TokenParser class.
2015-09-26 13:04:35 -07:00
Alan Hamlett
fc203d3991
tests for TokenParser
2015-09-26 12:10:05 -07:00
Alan Hamlett
41d3419a99
fix c_pp namespace detection
2015-09-16 15:00:27 -07:00
Alan Hamlett
4d45305650
improve java dependency detection
2015-09-16 14:59:30 -07:00
Alan Hamlett
72b6c992c2
truncate to first element
2015-09-16 12:59:52 -07:00
Alan Hamlett
1127e5c8da
fix dependency truncation
2015-09-16 12:57:49 -07:00
Alan Hamlett
d30043670f
v4.1.7
2015-09-16 08:58:08 -07:00
Alan Hamlett
a773c88921
new --timeout argument to configure request timeout in seconds
2015-09-15 09:01:17 -07:00
Alan Hamlett
2dddbd8094
don't need return value as variable
2015-09-08 15:49:39 -07:00
Alan Hamlett
9884eea311
test bower dependencies
2015-09-08 15:48:28 -07:00
Alan Hamlett
8aa20da2f1
tests for logging
2015-09-08 15:15:16 -07:00
Alan Hamlett
0d1c95cf9c
remove redundant wakatime from test file names
2015-09-08 14:15:35 -07:00
Alan Hamlett
68436b5700
don't require tests for non-utf8 filesystem encoding
2015-09-08 14:07:14 -07:00
Alan Hamlett
fdaabdd27e
tests for mercurial project detection
2015-09-07 21:40:01 -07:00
Alan Hamlett
1194bc004e
prevent exception when svn info output not as expected
2015-09-07 21:28:19 -07:00
Alan Hamlett
eff141187b
turn svn output into unicode before parsing
2015-09-07 21:25:21 -07:00
Alan Hamlett
edb1dab9a8
increase test coverage
2015-09-07 20:57:21 -07:00
Alan Hamlett
dc5dcf0cb1
tests for project map config section
2015-09-07 20:43:06 -07:00
Alan Hamlett
6ec2bc69a1
tests wakatime project file
2015-09-06 21:33:03 -07:00
Alan Hamlett
5808a1d77c
test vim modeline detection
2015-09-06 20:46:57 -07:00
Alan Hamlett
0c42ae8a70
force return value from zip to be a list in py3
2015-09-06 20:19:22 -07:00
Alan Hamlett
4c8919f9ac
test C and C++ detection when editing header files
2015-09-06 20:06:36 -07:00
Alan Hamlett
859017daef
tests for offline queue
2015-09-06 18:22:05 -07:00
Alan Hamlett
db8f30ac2a
v4.1.6
2015-09-06 17:19:09 -07:00
Alan Hamlett
3bd40b013e
make passing arguments to execute function optional, using sys.argv instead
2015-09-06 17:18:15 -07:00
Alan Hamlett
736d80c9de
v4.1.5
2015-09-06 17:15:18 -07:00
Alan Hamlett
6e8558bcd3
v4.1.4
2015-08-29 18:19:30 -07:00
Alan Hamlett
7656b5365d
new --entity command line arg to replace --file
2015-08-29 18:14:07 -07:00
Alan Hamlett
92948386fa
new --entitytype command line arg to replace --notfile
2015-08-29 16:16:14 -07:00
Alan Hamlett
48943519ae
v4.1.3
2015-08-28 15:03:48 -07:00
Alan Hamlett
dcde89d33c
fix session cache
2015-08-28 15:03:04 -07:00
Alan Hamlett
f7fb23b07f
v4.1.2
2015-08-25 11:18:52 -07:00
Alan Hamlett
843c764aa8
fix bug in offline logging causing heartbeats to never get cleared
2015-08-25 11:17:52 -07:00
Alan Hamlett
5147366a87
v4.1.1
2015-08-25 00:40:51 -07:00
Alan Hamlett
c94eed57ac
make sure text data is written to offline sqlite db as unicode
2015-08-24 11:19:19 -07:00
Alan Hamlett
bba2015d9b
encode certfile path as utf-8 in python3 for Windows systems not using utf-8 as default filesystem encoding
2015-08-24 10:58:42 -07:00
Alan Hamlett
43c461a7cc
try opening files with filesystem encoding when opening with utf-8 causes UnicodeDecodeError
2015-08-23 18:49:34 -07:00
Alan Hamlett
31a353be7a
fix ImportError when non-ASCII characters in import path
2015-08-23 13:37:25 -07:00
Alan Hamlett
4e415fe4ab
use pickle protocol 2 for python2/3 compatibility
2015-08-22 19:55:46 -07:00
Alan Hamlett
afc012ab63
overwrite definition of where in requests.certs for different filesystem encodings
2015-08-22 19:49:56 -07:00
Alan Hamlett
85de7a3deb
test python dependency detection and --alternate-project argument
2015-08-12 15:03:39 -07:00
Alan Hamlett
4eab860dc0
increase test coverage
2015-08-12 11:04:11 -07:00
Alan Hamlett
f818a64d3d
always parse args from sys.argv
2015-08-12 10:28:01 -07:00
Alan Hamlett
5d5b79d445
stop supporting old config file format
2015-08-11 16:38:17 -07:00
Alan Hamlett
7b4711ad54
fallback to builtin json module when importing simplejson fails
2015-08-11 13:52:14 -07:00
Alan Hamlett
337e4bae5b
upgrade simplejson to v3.8.0
2015-08-11 12:21:27 -07:00
Alan Hamlett
4a5e2d9328
first tests, and disable logging while testing
2015-08-11 11:19:22 -07:00
Alan Hamlett
ccb0b11ffb
only use lexer if one was found
2015-08-10 20:10:09 -07:00
Alan Hamlett
e8f2d75927
use os.path.splitext everywhere
2015-08-10 18:32:17 -07:00
Alan Hamlett
2da75aa119
use C++ for header file language if directory contains C++ files
2015-08-10 18:17:50 -07:00
Alan Hamlett
82f9fcb5d4
Revert "Revert "upgrade requests package to v2.7.0""
...
This reverts commit 052f255a0c
.
2015-08-10 11:43:35 -07:00
Alan Hamlett
6e9e8a9ce2
move language rules to server, detect header files
...
- move language translations to api server
- move extension rules to api server
- detect correct header file language based on presence of .cpp or .c
files named the same as the .h file
2015-08-10 11:33:39 -07:00
Alan Hamlett
01ed25f948
upgrade argparse to v1.3.0
2015-08-04 14:42:42 -07:00
Alan Hamlett
052f255a0c
Revert "upgrade requests package to v2.7.0"
...
This reverts commit f5357a9e7b
.
2015-07-31 13:25:57 -07:00
Alan Hamlett
85ab611632
handle non-ASCII characters in import path
2015-07-27 14:59:10 -07:00
Alan Hamlett
f5357a9e7b
upgrade requests package to v2.7.0
2015-07-24 13:16:52 -07:00
Alan Hamlett
739fe4ba99
rename workplace to hostname
2015-07-03 22:51:26 -07:00
Carlos Henrique Gandarez
d6ca2fa489
Added header X-Machine-Name to act as workplace
2015-07-03 21:42:19 -03:00
Alan Hamlett
61b9989641
catch exceptions from pygments.modeline.get_filetype_from_buffer
2015-07-02 12:37:24 -07:00
Alan Hamlett
4b6aee218b
v4.1.0
2015-06-29 19:28:35 -07:00
Alan Hamlett
e8bd8bba76
correct priority for project detection
...
Priority of project detection:
1. .wakatime-project file
2. [project_map] section in .wakatime.cfg INI file
3. --project arg
3. revision control directory name
5. --alternate-project arg
2015-06-29 19:26:01 -07:00
Alan Hamlett
006bab2d71
v4.0.16
2015-06-23 18:12:43 -07:00
Alan Hamlett
5a2ffa7319
fix bug in offline logging where file saved as NULL
2015-06-23 18:11:43 -07:00
Alan Hamlett
8c0c43e58a
clean up lexer guessing
2015-06-15 18:55:47 -07:00
Alan Hamlett
6591c4e5e9
limit language detection to known file extensions, unless file contents has a vim modeline
2015-06-15 18:26:10 -07:00
Alan Hamlett
368fecfcf1
auxiliary extension map for when no language can be found, not to overwrite detected language
2015-06-12 17:25:04 -07:00
Alan Hamlett
2880add4c5
v4.0.15
2015-06-11 14:12:46 -07:00
Alan Hamlett
36f6bb9a21
use most accurate language from modeline lexer and filename lexer Pygments guessing functions
2015-06-11 14:11:10 -07:00
Alan Hamlett
127fd115d0
use entity and type for new heartbeats api resource schema
2015-06-02 15:24:02 -07:00
Alan Hamlett
2278e8400f
v4.0.14
2015-05-31 17:46:20 -07:00
Alan Hamlett
7f6b6c9c1f
correctly log message from py.warnings module
2015-05-31 10:09:39 -07:00
Alan Hamlett
91784f5066
clean up kwargs
2015-05-16 14:44:10 -07:00
Alan Hamlett
66a3be703f
v4.0.13
2015-05-16 14:37:18 -07:00
Alan Hamlett
c2a8d197bf
remove project from args because we pass it separately to send_heartbeat function
2015-05-16 14:35:49 -07:00
Alan Hamlett
906237221b
v4.0.12
2015-05-15 15:30:44 -07:00
Alan Hamlett
1c73ba9969
make --project argument take priority over auto-detected project name. new --alternate-project argument that behaves like --project used to.
2015-05-15 15:29:05 -07:00
Alan Hamlett
652bf480e3
correctly display caller and lineno in log file when debug is true.
2015-05-13 03:00:00 -07:00
Alan Hamlett
7eb7aa80b4
v4.0.11
2015-05-12 15:00:06 -07:00
Alan Hamlett
dd54f9ff13
reuse SSL handshake across multiple processes for improved performance
2015-05-12 14:58:20 -07:00
Alan Hamlett
958cf9a943
v4.0.10
2015-05-06 16:25:38 -07:00
Alan Hamlett
caac39c3bf
new --cursorpos argument for the location of cursor within the file's contents
2015-05-06 16:24:25 -07:00
Alan Hamlett
fcf57d1d48
v4.0.9
2015-05-06 15:24:03 -07:00