spockets 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/README.rdoc +5 -7
- data/lib/spockets/Watcher.rb +6 -2
- metadata +46 -35
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -13,14 +13,12 @@ from delaying everybody else.
|
|
13
13
|
|
14
14
|
=== install (easy):
|
15
15
|
|
16
|
-
gem install
|
16
|
+
gem install spockets
|
17
17
|
|
18
18
|
=== install (less easy):
|
19
19
|
|
20
|
-
git clone http://github.com/spox/
|
21
|
-
cd
|
22
|
-
gem build *.gemspec
|
23
|
-
gem install ./
|
20
|
+
git clone http://github.com/spox/spockets.git
|
21
|
+
cd spockets && gem build *.gemspec && gem install ./
|
24
22
|
|
25
23
|
=== install (less easy that's a little easier)
|
26
24
|
|
@@ -28,7 +26,7 @@ from delaying everybody else.
|
|
28
26
|
|
29
27
|
=== Testing
|
30
28
|
|
31
|
-
|
29
|
+
Spockets is currently tested on:
|
32
30
|
|
33
31
|
* Ruby 1.8.6-p383
|
34
32
|
* Ruby 1.8.7-p248
|
@@ -67,4 +65,4 @@ If you find any bugs, please report them through {github}[http://github.com/spox
|
|
67
65
|
== License
|
68
66
|
|
69
67
|
Spockets is licensed under the LGPLv3
|
70
|
-
Copyright (c) 2009 spox <spox@modspox.com>
|
68
|
+
Copyright (c) 2009 spox <spox@modspox.com>
|
data/lib/spockets/Watcher.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'actionpool'
|
2
|
-
require 'iconv'
|
3
2
|
|
4
3
|
module Spockets
|
5
4
|
class Watcher
|
@@ -15,7 +14,12 @@ module Spockets
|
|
15
14
|
@runner = nil
|
16
15
|
@clean = args[:clean] && (args[:clean].is_a?(Proc) || args[:clean].is_a?(TrueClass)) ? args[:clean] : nil
|
17
16
|
@pool = args[:pool] && args[:pool].is_a?(ActionPool::Pool) ? args[:pool] : ActionPool::Pool.new
|
18
|
-
@
|
17
|
+
if(@clean.is_a?(TrueClass))
|
18
|
+
require 'iconv'
|
19
|
+
@ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
|
20
|
+
else
|
21
|
+
@ic = nil
|
22
|
+
end
|
19
23
|
@stop = true
|
20
24
|
end
|
21
25
|
|
metadata
CHANGED
@@ -1,27 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
|
12
|
+
- spox
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-18 00:00:00 -07:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: actionpool
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 2
|
30
|
+
- 3
|
31
|
+
version: 0.2.3
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
description: Socket helper library
|
26
35
|
email: spox@modspox.com
|
27
36
|
executables: []
|
@@ -29,43 +38,45 @@ executables: []
|
|
29
38
|
extensions: []
|
30
39
|
|
31
40
|
extra_rdoc_files:
|
32
|
-
|
41
|
+
- README.rdoc
|
33
42
|
files:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
43
|
+
- README.rdoc
|
44
|
+
- CHANGELOG
|
45
|
+
- lib/spockets.rb
|
46
|
+
- lib/spockets/Exceptions.rb
|
47
|
+
- lib/spockets/Spockets.rb
|
48
|
+
- lib/spockets/Watcher.rb
|
40
49
|
has_rdoc: true
|
41
50
|
homepage: http://github.com/spox/spockets
|
42
51
|
licenses: []
|
43
52
|
|
44
53
|
post_install_message:
|
45
54
|
rdoc_options:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
55
|
+
- --title
|
56
|
+
- Spockets
|
57
|
+
- --main
|
58
|
+
- README.rdoc
|
59
|
+
- --line-numbers
|
51
60
|
require_paths:
|
52
|
-
|
61
|
+
- lib
|
53
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
63
|
requirements:
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
68
|
+
version: "0"
|
59
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
70
|
requirements:
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
65
76
|
requirements: []
|
66
77
|
|
67
78
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.3.
|
79
|
+
rubygems_version: 1.3.6
|
69
80
|
signing_key:
|
70
81
|
specification_version: 3
|
71
82
|
summary: Socket Helper
|