Commit Graph

147 Commits

Author SHA1 Message Date
Sridhar Ratnakumar 15e71d383e Use stable version of fsnotify
fixes #46
2015-06-28 20:23:06 -07:00
Sridhar Ratnakumar 4d381fccb0 Modernize Dockerfile to use the golang image 2015-06-28 20:19:59 -07:00
Sridhar Ratnakumar d88c762aa1 Fix 'make fulltest' for newer docker versions 2015-06-28 20:15:57 -07:00
Sridhar Ratnakumar c865311314 Update CHANGES.md 2015-06-17 16:00:46 -07:00
Sridhar Ratnakumar f9f753ab01 Merge pull request #50 from featalion/newline-fix
PR #40 with test case

closes #35 and closes #40
2015-06-17 15:59:14 -07:00
Yury Yantsevich fe151849bb split max line size test to follow and nofollow version 2015-06-17 16:59:08 +02:00
Yury Yantsevich 50aa2240d2 Merge branch 'half-lines-fix' of https://github.com/2sidedfigure/tail into newline-fix 2015-06-17 15:49:11 +02:00
Sridhar Ratnakumar 068b72961a Merge pull request #41 from kouk/master
support freebsd, like darwin
2014-10-08 12:42:06 -07:00
Konstantinos Koukopoulos d20f005e95 support freebsd, like darwin 2014-10-08 12:37:29 +03:00
2sidedfigure 83adfd1168 Don't return lines not ending in a newline when following 2014-08-15 13:49:26 -07:00
Sridhar Ratnakumar fd3ba4e64c Merge pull request #38 from rickard-von-essen/posix
[GH-37] Support Darwin (OS X) again
2014-07-28 15:34:07 -07:00
Rickard von Essen ed4080883b [GH-37] Support Darwin (OS X) again 2014-07-29 00:29:01 +02:00
Sridhar Ratnakumar 6d888fbada changelog for last PR 2014-07-28 13:45:56 -07:00
Sridhar Ratnakumar 5fc9335f68 Merge pull request #36 from UhuruSoftware/master
Fix tail for windows os
2014-07-28 13:45:15 -07:00
florindragos c2a48be739 add FILE_SHARE_DELETE flag when opening file 2014-07-28 16:38:02 +03:00
Sridhar Ratnakumar 22e519566e Fix tomb import
has moved from launchpad.net (now down) to GitHub, and accessible as
gopkg.in/tomb.v1

closes #33
2014-06-14 23:39:34 -07:00
Sridhar Ratnakumar 056d606881 Update CHANGES.md 2014-05-20 17:49:42 -07:00
Sridhar Ratnakumar c5d5673bde Merge pull request #30 from ActiveState/odd_line_splitting
Fix odd line splitting
2014-05-20 17:49:00 -07:00
Sridhar Ratnakumar 4441c2eb1b add -max param to gotail utility 2014-05-16 18:10:04 -07:00
Sridhar Ratnakumar 136cda4961 process line even if it doesn't end in newline
especially as we use ReadString now
2014-05-16 18:06:11 -07:00
Sridhar Ratnakumar 941cc3e301 refactor this part of code for upcoming change 2014-05-16 18:05:11 -07:00
Sridhar Ratnakumar 929590016a use ReadString instead of ReadLine
ReadLine is a low-level primitive, and we don't do a good job of
splitting the lines as they are being read. best to read the entire
line and then split it in one go.

with this change, there is one test failure that will be resolved
next:

  --- FAIL: TestMaxLineSize (0.10 seconds)
         tail_test.go:410: tail ended early; expecting more: [he]
2014-05-16 18:01:10 -07:00
Sridhar Ratnakumar c7e3c77bef refactor newReader 2014-05-16 17:03:16 -07:00
Sridhar Ratnakumar 6dab63b3c0 XXX 2014-05-16 16:59:29 -07:00
Sridhar Ratnakumar 6cb4dc0ca8 add comments clarifying existing behaviour of readLine 2014-05-16 16:46:31 -07:00
Sridhar Ratnakumar 8dcd1ad3e5 Merge pull request #29 from ActiveState/leakybucket
Rate limit using leaky bucket algorithm

for https://bugs.activestate.com/show_bug.cgi?id=103143
2014-04-29 20:44:32 -07:00
Sridhar Ratnakumar 5858c968e0 update changelog 2014-04-29 20:08:59 -07:00
Sridhar Ratnakumar f547814901 include License file of original code 2014-04-29 19:56:11 -07:00
Sridhar Ratnakumar 63578d7a58 tests must include leakybucket 2014-04-29 19:55:54 -07:00
Sridhar Ratnakumar 34fb5fd3ef integrate leakybucket algorithm 2014-04-29 16:39:57 -07:00
Sridhar Ratnakumar a67a74158f import ratelimitter from 99designs
https://github.com/99designs/goodies/tree/master/ratelimiter

exclude the memcache storage; we don't want to depend on the unused
gomemcache package.
2014-04-29 16:31:26 -07:00
Sridhar Ratnakumar 6ca4028d41 Merge pull request #28 from ActiveState/rate_limit_handle_buffer
LimitRate should discard read buffer

internal Bug #103143
2014-04-28 15:02:21 -07:00
Sridhar Ratnakumar 3d549f46bd update changelog 2014-04-28 14:58:39 -07:00
Sridhar Ratnakumar c13cdd473c refactor seek routine 2014-04-28 14:55:51 -07:00
Sridhar Ratnakumar 555e6044ca fix for the failing test case (parent commit) 2014-04-28 14:51:59 -07:00
Sridhar Ratnakumar afbbb638b5 add failing test case 2014-04-28 14:46:42 -07:00
Sridhar Ratnakumar 734bf58f78 should be Fatal here 2014-04-28 14:46:18 -07:00
Sridhar Ratnakumar 473bd49874 test: rewrite the confusing mismatch message 2014-04-28 14:15:34 -07:00
Sridhar Ratnakumar fc42d757b5 test: ensure that subsequent line(s) are being skipped 2014-04-28 14:15:17 -07:00
Sridhar Ratnakumar d2a44130c2 explain what the +2 is for
/
2014-04-28 14:14:21 -07:00
Sridhar Ratnakumar 074c77ccbf update test for parent commit 2014-04-28 12:56:31 -07:00
Sridhar Ratnakumar 64e99b360f make cool-off error message less obscure 2014-04-28 12:49:23 -07:00
Sridhar Ratnakumar d21b644dea Merge pull request #26 from ActiveState/update_fsnotify
update fsnotify to latest
2014-04-12 17:06:04 -07:00
Sridhar Ratnakumar a1e489f93d update fsnotify to latest 2014-04-12 17:02:59 -07:00
Sridhar Ratnakumar 214eb29af3 fulltest should be run on saucy image
for Go 1.2
2014-04-12 17:02:34 -07:00
Sridhar Ratnakumar baf6674f00 add copyright statements 2014-04-12 16:59:40 -07:00
Sridhar Ratnakumar f6d4bc16d4 note PR #24 in change log 2014-04-12 16:32:04 -07:00
Sridhar Ratnakumar 9f7054d896 Merge pull request #24 from masahide/add-test-over4096byte-line
Support lines of length more than 4096 bytes
2014-04-12 16:30:28 -07:00
YAMASAKI masahide 6a3ddb6ced If specified the MaxLineSize, then set to the bufio.reader MaxLineSize. 2014-04-06 09:48:37 +09:00
funkygao 7ccd8397a1 fix problem of long line EOF 2014-04-05 17:53:23 +09:00