motion-pixate-observer 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/motion-pixate-server.rb +10 -3
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 58a0af04a41e4477684fb74715087c3cec679025
|
4
|
+
data.tar.gz: ef1f8d072b48fad6282237053bfd54c2fca4a3bc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fb21ab409ac865dd5b6db54fb98cdc7fe0e91c468b31a7a1c2e8356dd586bcb75fcab542960378da1ef2352f692c156c6a3426ec62027b6ae3057c0c61606aeb
|
7
|
+
data.tar.gz: c7a579df2cafa9cc8f44c2ce766b08e9b9924d71a45cd0416b62f567d780c0344e5d80d810b0c5c004bf7fe9fb34e1d9a71f50d568fdfa3c4d3880010e2cec98
|
data/lib/motion-pixate-server.rb
CHANGED
@@ -19,10 +19,17 @@ gcdq = Dispatch::Queue.new('pixate')
|
|
19
19
|
mask = Dispatch::Source::VNODE_WRITE | Dispatch::Source::VNODE_EXTEND
|
20
20
|
|
21
21
|
while true
|
22
|
-
|
23
|
-
|
22
|
+
conn = serv.accept
|
23
|
+
NSLog "Connected : #{conn.addr[2]}"
|
24
|
+
|
25
|
+
@sock.close if @sock
|
26
|
+
@sock = conn
|
27
|
+
|
28
|
+
Dispatch::Source.new(Dispatch::Source::VNODE, fd, mask, gcdq) do
|
29
|
+
begin
|
24
30
|
fd.rewind
|
25
|
-
sock.write(fd.read)
|
31
|
+
@sock.write(fd.read)
|
32
|
+
rescue
|
26
33
|
end
|
27
34
|
end
|
28
35
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-pixate-observer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
5
|
-
prerelease:
|
4
|
+
version: '0.3'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Watson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-02-10 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: This gem provides a function that you changes css files, apply changes
|
15
14
|
into your application that uses Pixate Framework immediately.
|
@@ -30,27 +29,26 @@ files:
|
|
30
29
|
- bin/pixate_server
|
31
30
|
homepage: https://github.com/Watson1978/motion-pixate-observer
|
32
31
|
licenses: []
|
32
|
+
metadata: {}
|
33
33
|
post_install_message:
|
34
34
|
rdoc_options: []
|
35
35
|
require_paths:
|
36
36
|
- lib
|
37
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
38
|
requirements:
|
40
|
-
- -
|
39
|
+
- - '>='
|
41
40
|
- !ruby/object:Gem::Version
|
42
41
|
version: '0'
|
43
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
43
|
requirements:
|
46
|
-
- -
|
44
|
+
- - '>='
|
47
45
|
- !ruby/object:Gem::Version
|
48
46
|
version: '0'
|
49
47
|
requirements: []
|
50
48
|
rubyforge_project:
|
51
|
-
rubygems_version:
|
49
|
+
rubygems_version: 2.0.0.rc.2
|
52
50
|
signing_key:
|
53
|
-
specification_version:
|
51
|
+
specification_version: 4
|
54
52
|
summary: This gem provides a function that you changes css files, apply changes into
|
55
53
|
your application that uses Pixate Framework immediately.
|
56
54
|
test_files: []
|