filewatch 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filewatch/buftok.rb +3 -1
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15ce3c7ecaefebd27291036d173f0744f6e3c742
|
4
|
+
data.tar.gz: ecce2ab0c7a9d48f8dea20ce3f24510f4360ce9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50474b2775cf2f1a9754d87617b8f66214201add6074ee39f8b9bf557d42cd53be811a3628b9aad09f4c6ae19cfd8b73c63ff38a7186cc0af0b63bdd751ff55
|
7
|
+
data.tar.gz: 30e25995afa74109d8daf698c7203e104d9f58560306d5c1040346e41a7451070db779e44c1dde265e535655b15dd62a1de195e15acf68a2e715ad8b994681bb
|
data/lib/filewatch/buftok.rb
CHANGED
@@ -30,6 +30,8 @@
|
|
30
30
|
# end
|
31
31
|
|
32
32
|
module FileWatch; class BufferedTokenizer
|
33
|
+
class BufferFullError < StandardError; end
|
34
|
+
|
33
35
|
# New BufferedTokenizers will operate on lines delimited by "\n" by default
|
34
36
|
# or allow you to specify any delimiter token you so choose, which will then
|
35
37
|
# be used by String#split to tokenize the input data
|
@@ -67,7 +69,7 @@ module FileWatch; class BufferedTokenizer
|
|
67
69
|
|
68
70
|
# Check to see if the buffer has exceeded capacity, if we're imposing a limit
|
69
71
|
if @size_limit
|
70
|
-
raise 'input buffer full' if @input_size + entities.first.size > @size_limit
|
72
|
+
raise BufferFullError, 'input buffer full' if @input_size + entities.first.size > @size_limit
|
71
73
|
@input_size += entities.first.size
|
72
74
|
end
|
73
75
|
|
metadata
CHANGED
@@ -1,32 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filewatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
- Pete Fritchman
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: stud
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: '0'
|
21
|
-
|
20
|
+
name: stud
|
22
21
|
prerelease: false
|
22
|
+
type: :development
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
-
description: Watch files and directories in ruby. Also supports tailing and glob file
|
29
|
-
patterns.
|
28
|
+
description: Watch files and directories in ruby. Also supports tailing and glob file patterns.
|
30
29
|
email:
|
31
30
|
- jls@semicomplete.com
|
32
31
|
- petef@databits.net
|
@@ -35,6 +34,8 @@ executables:
|
|
35
34
|
extensions: []
|
36
35
|
extra_rdoc_files: []
|
37
36
|
files:
|
37
|
+
- bin/globtail
|
38
|
+
- lib/JRubyFileExtension.jar
|
38
39
|
- lib/filewatch/buftok.rb
|
39
40
|
- lib/filewatch/helper.rb
|
40
41
|
- lib/filewatch/observing_tail.rb
|
@@ -44,10 +45,9 @@ files:
|
|
44
45
|
- lib/filewatch/watched_file.rb
|
45
46
|
- lib/filewatch/winhelper.rb
|
46
47
|
- lib/filewatch/yielding_tail.rb
|
47
|
-
- lib/JRubyFileExtension.jar
|
48
48
|
- test/filewatch/tail.rb
|
49
|
-
- test/globtail/framework.sh
|
50
49
|
- test/globtail/Makefile
|
50
|
+
- test/globtail/framework.sh
|
51
51
|
- test/globtail/test1.data
|
52
52
|
- test/globtail/test1.sh
|
53
53
|
- test/globtail/test10.data
|
@@ -68,29 +68,28 @@ files:
|
|
68
68
|
- test/globtail/test8.sh
|
69
69
|
- test/globtail/test9.data
|
70
70
|
- test/globtail/test9.sh
|
71
|
-
- bin/globtail
|
72
71
|
homepage: https://github.com/jordansissel/ruby-filewatch
|
73
72
|
licenses: []
|
74
73
|
metadata: {}
|
75
|
-
post_install_message:
|
74
|
+
post_install_message:
|
76
75
|
rdoc_options: []
|
77
76
|
require_paths:
|
78
77
|
- lib
|
79
78
|
- lib
|
80
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
80
|
requirements:
|
82
|
-
- -
|
81
|
+
- - ">="
|
83
82
|
- !ruby/object:Gem::Version
|
84
83
|
version: '0'
|
85
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
85
|
requirements:
|
87
|
-
- -
|
86
|
+
- - ">="
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: '0'
|
90
89
|
requirements: []
|
91
|
-
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
93
|
-
signing_key:
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.4.8
|
92
|
+
signing_key:
|
94
93
|
specification_version: 4
|
95
94
|
summary: filewatch - file watching for ruby
|
96
95
|
test_files: []
|