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 +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/skylight/util/http.rb +2 -0
- data/lib/skylight/util/logging.rb +10 -14
- data/lib/skylight/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa6f7a23ed460ec9e8a504a7a7037aa6b149b6e
|
4
|
+
data.tar.gz: b18f06a7640507138ac6b72dd218e7aa6632ee03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1df38e803461a12dad4df99780fbfb93308b47fa7c16304ffaac7073cd13f5e8d4d9bb9d36a084636e15bb4bf516a42042a8809e499369b6c1c9831c6dd88b
|
7
|
+
data.tar.gz: 48b0b867f8f02c24c7de705040770f9e0b9a72c58260845ca52f5d0e1f5bdb55a521a54cc08b66ad5427cf30e5866c17a81d231626127f7f97b06a4ab6ccd989
|
data/CHANGELOG.md
ADDED
@@ -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
|
data/lib/skylight/util/http.rb
CHANGED
@@ -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 :
|
8
|
+
log :debug, msg, *args
|
9
9
|
end
|
10
10
|
|
11
11
|
def t
|
12
|
-
log :
|
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 :
|
23
|
+
log :debug, msg, *args
|
24
24
|
end
|
25
25
|
|
26
26
|
def info(msg, *args)
|
27
|
-
log :
|
27
|
+
log :info, msg, *args
|
28
28
|
end
|
29
29
|
|
30
30
|
def warn(msg, *args)
|
31
|
-
log :
|
31
|
+
log :warn, msg, *args
|
32
32
|
end
|
33
33
|
|
34
34
|
def error(msg, *args)
|
35
|
-
log :
|
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.
|
48
|
+
logger.send level, sprintf("[SKYLIGHT] #{msg}", *args)
|
53
49
|
else
|
54
|
-
logger.
|
50
|
+
logger.send level, "[SKYLIGHT] #{msg}"
|
55
51
|
end
|
56
52
|
end
|
57
53
|
rescue Exception => e
|
data/lib/skylight/version.rb
CHANGED
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.
|
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
|