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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f46b600abb95cdab8144ba74c5bb9c38f57d7ba
4
- data.tar.gz: 92d250e89d6a3c0e8b8abba4505bdca008ecc862
3
+ metadata.gz: b72ea644f301ea7e25dde40d6f14ccc986e05211
4
+ data.tar.gz: 89a4c7bd22804de66170f69ec5690c7ab1224ba5
5
5
  SHA512:
6
- metadata.gz: a5afb3d009e3b5b0bddc15e96ed657ff37a39413d1332206e35f782dba7fd356c0170a7d3624fee391fb9dffe3ff8d58fd792dfe41dc0f1916e739b5342038d5
7
- data.tar.gz: e48c91c0d993b1e07d4adc21e4830c07d65f92497fc0564c3cbf8f17dfc3991b262043de18097202ec52e2f76f13bcb59e0f4c43288a0f28a30ceb94b5c98fb0
6
+ metadata.gz: 812242c812c7d018a903ca44e05969ddf4997caff99cc138fac6954a5ae461f254bfd66012d4735ea69cee84076aebd876ca3eec431dee8985f1064d4e33ace5
7
+ data.tar.gz: 36363fc2011fc6f82b28a4eff8f8f45d95b5829bfd741ffcd9b86b009d4767b72e12391cc56653d7cde1c13054793a02bc4a32b520f592a145f75663e2441dbe
@@ -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
- url = "https://github.com/skylightio/skylight-rust/releases/download/v#{ruby_version}/libskylight.#{rust_version}.#{arch}.a.gz"
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
 
@@ -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
@@ -88,6 +88,7 @@ module Skylight
88
88
  @queue = nil
89
89
  end
90
90
 
91
+ t { "shutting down task" }
91
92
  finish
92
93
  rescue Exception => e
93
94
  error "failed to execute task; msg=%s", e.message
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.3.0.rc.4'
2
+ VERSION = '0.3.0.rc.5'
3
3
  end
4
4
 
@@ -135,8 +135,6 @@ module Skylight
135
135
  tok = res.body['session']
136
136
  tok = tok['token'] if tok
137
137
 
138
- t { "New token: #{tok}" }
139
-
140
138
  if tok
141
139
  @refresh_at = now + 1800 # 30 minutes
142
140
  @http_report = Util::HTTP.new(config, :report)
@@ -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
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-14 00:00:00.000000000 Z
11
+ date: 2014-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport