skylight 0.1.2 → 0.1.3

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: 560f8a033762d7bf39d090b9aefed3b9c754c7dd
4
- data.tar.gz: 5c1628596dcf13425d22c8a9a9ec4974f2179d00
3
+ metadata.gz: 5fa6f7a23ed460ec9e8a504a7a7037aa6b149b6e
4
+ data.tar.gz: b18f06a7640507138ac6b72dd218e7aa6632ee03
5
5
  SHA512:
6
- metadata.gz: 9a2bac2b3dadfcc72088c27be115ba207f5b5e1da7b59d979c2f76b8ce1d35c978e2b1bbc457c557a93070d46d3b3d1e8a0777d94a5d621917a3fc4e006e587c
7
- data.tar.gz: 5060b3d9efc2a6ea197eece768f5c28481eb6716d9f8a2230607c429d88ae8509bbb5dbcace6c183e79f227f0951a737722b331b8afdd1abe05197072b62e9fd
6
+ metadata.gz: 6e1df38e803461a12dad4df99780fbfb93308b47fa7c16304ffaac7073cd13f5e8d4d9bb9d36a084636e15bb4bf516a42042a8809e499369b6c1c9831c6dd88b
7
+ data.tar.gz: 48b0b867f8f02c24c7de705040770f9e0b9a72c58260845ca52f5d0e1f5bdb55a521a54cc08b66ad5427cf30e5866c17a81d231626127f7f97b06a4ab6ccd989
@@ -0,0 +1,19 @@
1
+ ## unreleased ##
2
+
3
+ ## 0.1.3 (May 29, 2013)
4
+
5
+ * [BUG] Require net/https and openssl
6
+ * [BUG] Rails' logger does not respond to #log. Use level methods
7
+ instead.
8
+
9
+ ## 0.1.2 (May 29, 2013)
10
+
11
+ * [BUG] Disable GC profiling on JRuby
12
+
13
+ ## 0.1.1 (May 29, 2013)
14
+
15
+ * [BUG] GC Profiling was not getting enabled
16
+
17
+ ## 0.1.0 (May 24, 2013)
18
+
19
+ * Initial release
@@ -1,5 +1,7 @@
1
1
  require 'json'
2
+ require 'openssl'
2
3
  require 'net/http'
4
+ require 'net/https'
3
5
 
4
6
  module Skylight
5
7
  module Util
@@ -5,11 +5,11 @@ module Skylight
5
5
  module Logging
6
6
  if ENV[TRACE_ENV_KEY]
7
7
  def trace(msg, *args)
8
- log :DEBUG, msg, *args
8
+ log :debug, msg, *args
9
9
  end
10
10
 
11
11
  def t
12
- log :DEBUG, yield
12
+ log :debug, yield
13
13
  end
14
14
  else
15
15
  def trace(*)
@@ -20,38 +20,34 @@ module Skylight
20
20
  end
21
21
 
22
22
  def debug(msg, *args)
23
- log :DEBUG, msg, *args
23
+ log :debug, msg, *args
24
24
  end
25
25
 
26
26
  def info(msg, *args)
27
- log :INFO, msg, *args
27
+ log :info, msg, *args
28
28
  end
29
29
 
30
30
  def warn(msg, *args)
31
- log :WARN, msg, *args
31
+ log :warn, msg, *args
32
32
  end
33
33
 
34
34
  def error(msg, *args)
35
- log :ERROR, msg, *args
35
+ log :error, msg, *args
36
36
  end
37
37
 
38
38
  alias fmt sprintf
39
39
 
40
- MAP = {
41
- :DEBUG => Logger::DEBUG,
42
- :INFO => Logger::INFO,
43
- :WARN => Logger::WARN,
44
- :ERROR => Logger::ERROR }
45
-
46
40
  def log(level, msg, *args)
47
41
  return unless respond_to?(:config)
48
42
  return unless c = config
49
43
 
50
44
  if logger = c.logger
45
+ return unless logger.respond_to?(level)
46
+
51
47
  if args.length > 0
52
- logger.log MAP[level], sprintf("[SKYLIGHT] #{msg}", *args)
48
+ logger.send level, sprintf("[SKYLIGHT] #{msg}", *args)
53
49
  else
54
- logger.log MAP[level], "[SKYLIGHT] #{msg}"
50
+ logger.send level, "[SKYLIGHT] #{msg}"
55
51
  end
56
52
  end
57
53
  rescue Exception => e
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
@@ -139,6 +139,7 @@ files:
139
139
  - lib/skylight/worker/embedded.rb
140
140
  - lib/skylight/worker/server.rb
141
141
  - lib/skylight/worker/standalone.rb
142
+ - CHANGELOG.md
142
143
  - README.md
143
144
  - bin/skylight
144
145
  homepage: http://www.skylight.io