filewatch 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/filewatch/buftok.rb +3 -1
  3. metadata +17 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e80ef8ef31b018ae2e8bcca3794c6389efbe9668
4
- data.tar.gz: bf76dc26caa7715951a657769ad64a9bda8b5ca6
3
+ metadata.gz: 15ce3c7ecaefebd27291036d173f0744f6e3c742
4
+ data.tar.gz: ecce2ab0c7a9d48f8dea20ce3f24510f4360ce9b
5
5
  SHA512:
6
- metadata.gz: 63156fc561b37940e580a9bcbee7d2649f9b1ba24f8c16cb58830a9850baf2734c7f9ef6dbd0ba2cd4d5efcabf8d26c6f0f69dffca36ce7b0b388b6c9ea5f4d8
7
- data.tar.gz: a0b76e79c2393bb8d05ceb6a18378e750c7eec25a7c4df61da066bacd0cc1f6b2f2c0e1287d629768a846ba4bb32dd9c7c56727b098a9cf2a49de5c6dc7dbfac
6
+ metadata.gz: e50474b2775cf2f1a9754d87617b8f66214201add6074ee39f8b9bf557d42cd53be811a3628b9aad09f4c6ae19cfd8b73c63ff38a7186cc0af0b63bdd751ff55
7
+ data.tar.gz: 30e25995afa74109d8daf698c7203e104d9f58560306d5c1040346e41a7451070db779e44c1dde265e535655b15dd62a1de195e15acf68a2e715ad8b994681bb
@@ -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.8.1
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-03-09 00:00:00.000000000 Z
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
- type: :development
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.0.14
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: []