Commit Graph

138 Commits

Author SHA1 Message Date
Konstantinos Koukopoulos d20f005e95 support freebsd, like darwin 2014-10-08 12:37:29 +03: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
Sridhar Ratnakumar 24d682e8af Merge pull request #25 from ActiveState/travis_test_fix
Test fixes for travis-ci
2014-03-21 22:35:31 -07:00
Sridhar Ratnakumar 3da62cd5ae account for POLL_DURATION in the reopen test
ref: https://travis-ci.org/ActiveState/tail/builds/21301728
2014-03-21 22:32:56 -07:00
Sridhar Ratnakumar 0383a079b7 make travis config work 2014-03-21 22:32:20 -07:00
Sridhar Ratnakumar a7279e8208 add build status to README 2014-03-21 22:02:52 -07:00
Sridhar Ratnakumar efd9baa50f add .travis.yml 2014-03-21 22:00:08 -07:00
Sridhar Ratnakumar 039d5571ac changelog update for PR #22 2014-02-22 23:51:39 -08:00
Sridhar Ratnakumar 751a3add5c Merge pull request #22 from GeertJohan/master
Add logging options to config
2014-02-22 23:51:04 -08:00
GeertJohan 3b09eddf4d Removed conig option DisableLogging. Add DiscardingLogger instead. 2014-02-22 15:48:23 +01:00
Geert-Johan Riemer 0c51ff11d1 Add logging options to config 2014-01-30 13:47:28 +01:00