skylight 0.3.0.rc.4 → 0.3.0.rc.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +2 -2
- data/lib/skylight.rb +5 -2
- data/lib/skylight/util/task.rb +1 -0
- data/lib/skylight/version.rb +1 -1
- data/lib/skylight/worker/collector.rb +0 -2
- data/lib/skylight/worker/connection.rb +3 -5
- data/lib/skylight/worker/server.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72ea644f301ea7e25dde40d6f14ccc986e05211
|
4
|
+
data.tar.gz: 89a4c7bd22804de66170f69ec5690c7ab1224ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 812242c812c7d018a903ca44e05969ddf4997caff99cc138fac6954a5ae461f254bfd66012d4735ea69cee84076aebd876ca3eec431dee8985f1064d4e33ace5
|
7
|
+
data.tar.gz: 36363fc2011fc6f82b28a4eff8f8f45d95b5829bfd741ffcd9b86b009d4767b72e12391cc56653d7cde1c13054793a02bc4a32b520f592a145f75663e2441dbe
|
data/ext/extconf.rb
CHANGED
@@ -10,10 +10,10 @@ require_relative '../lib/skylight/version.rb'
|
|
10
10
|
checksums = YAML.load_file("checksums.yml")
|
11
11
|
|
12
12
|
rust_version = "dc29745"
|
13
|
-
ruby_version = Skylight::VERSION
|
14
13
|
|
15
14
|
arch = RbConfig::CONFIG["arch"]
|
16
|
-
|
15
|
+
|
16
|
+
url = "https://github.com/skylightio/skylight-rust/releases/download/#{rust_version}/libskylight.#{arch}.a.gz"
|
17
17
|
|
18
18
|
required = ENV.key?("SKYLIGHT_REQUIRED")
|
19
19
|
|
data/lib/skylight.rb
CHANGED
@@ -32,8 +32,6 @@ module Skylight
|
|
32
32
|
require 'skylight/vm/gc'
|
33
33
|
end
|
34
34
|
|
35
|
-
autoload :Api, 'skylight/api'
|
36
|
-
autoload :CLI, 'skylight/cli'
|
37
35
|
autoload :Config, 'skylight/config'
|
38
36
|
autoload :GC, 'skylight/gc'
|
39
37
|
autoload :Helpers, 'skylight/helpers'
|
@@ -178,3 +176,8 @@ module Skylight
|
|
178
176
|
end
|
179
177
|
|
180
178
|
end
|
179
|
+
|
180
|
+
module Skylight
|
181
|
+
autoload :Api, 'skylight/api'
|
182
|
+
autoload :CLI, 'skylight/cli'
|
183
|
+
end
|
data/lib/skylight/util/task.rb
CHANGED
data/lib/skylight/version.rb
CHANGED
@@ -44,13 +44,11 @@ module Skylight
|
|
44
44
|
def maybe_read_message
|
45
45
|
if @len && @buf.bytesize >= @len + FRAME_HDR_LEN
|
46
46
|
mid = read_message_id
|
47
|
-
klass = Messages::ID_TO_KLASS.fetch(mid)
|
48
|
-
data = @buf[FRAME_HDR_LEN, @len]
|
49
|
-
@buf = @buf[(FRAME_HDR_LEN + @len)..-1] || ""
|
50
|
-
|
51
|
-
unless klass
|
47
|
+
klass = Messages::ID_TO_KLASS.fetch(mid) do
|
52
48
|
raise IpcProtoError, "unknown message `#{mid}`"
|
53
49
|
end
|
50
|
+
data = @buf[FRAME_HDR_LEN, @len]
|
51
|
+
@buf = @buf[(FRAME_HDR_LEN + @len)..-1] || ""
|
54
52
|
|
55
53
|
if @buf.bytesize >= FRAME_HDR_LEN
|
56
54
|
@len = read_len
|
@@ -130,6 +130,7 @@ module Skylight
|
|
130
130
|
end
|
131
131
|
|
132
132
|
def work
|
133
|
+
t { "server working" }
|
133
134
|
@socks << @server
|
134
135
|
|
135
136
|
now = Time.now.to_i
|
@@ -202,8 +203,7 @@ module Skylight
|
|
202
203
|
info "#{e.message} - shutting down"
|
203
204
|
@run = false
|
204
205
|
rescue Exception => e
|
205
|
-
error "Loop exception: %s (%s)", e.message, e.class
|
206
|
-
puts e.backtrace
|
206
|
+
error "Loop exception: %s (%s)\n%s", e.message, e.class, e.backtrace.join("\n")
|
207
207
|
@collector.send_exception(class_name: e.class.name, message: e.message, backtrace: e.backtrace)
|
208
208
|
return false
|
209
209
|
rescue Object => o
|
@@ -258,6 +258,7 @@ module Skylight
|
|
258
258
|
end
|
259
259
|
|
260
260
|
def cleanup
|
261
|
+
t { "server cleaning up" }
|
261
262
|
# The lockfile is not deleted. There is no way to atomically ensure
|
262
263
|
# that we are deleting the lockfile for the current process.
|
263
264
|
cleanup_curr_sockfile
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skylight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0.rc.
|
4
|
+
version: 0.3.0.rc.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tilde, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|