actuator 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/actuator/log.cpp +5 -1
- data/lib/actuator.rb +1 -1
- data/lib/actuator/job.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a3330d2dc2208f4fb41476a48446eb44dd736a9
|
4
|
+
data.tar.gz: 0cb07e0de6ba304a7ff40de15162396634776b48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b84d5670938bc265e12f6d6d8d5c8f3a5853bb9d74ee232f44859f2edcd0141488619cdde41e8a6163ef01d20b052ca8702bee4683481e34daa83594644f6f
|
7
|
+
data.tar.gz: dbc46d9f39f9b4be86e00a2a8173b24fc7e075253e004b37f7db333fdc390359b7b82c83febdbaf2e4e839821f8c869ca3eaffeb5a540742d1771bccb5968b85
|
data/ext/actuator/log.cpp
CHANGED
@@ -28,21 +28,25 @@ static void Print(const char *tag, const char *format, va_list args)
|
|
28
28
|
static VALUE Log_Debug(VALUE self, VALUE message)
|
29
29
|
{
|
30
30
|
Log::Debug("%s", StringValueCStr(message));
|
31
|
+
return Qnil;
|
31
32
|
}
|
32
33
|
|
33
34
|
static VALUE Log_Info(VALUE self, VALUE message)
|
34
35
|
{
|
35
36
|
Log::Info("%s", StringValueCStr(message));
|
37
|
+
return Qnil;
|
36
38
|
}
|
37
39
|
|
38
40
|
static VALUE Log_Warn(VALUE self, VALUE message)
|
39
41
|
{
|
40
42
|
Log::Warn("%s", StringValueCStr(message));
|
43
|
+
return Qnil;
|
41
44
|
}
|
42
45
|
|
43
46
|
static VALUE Log_Error(VALUE self, VALUE message)
|
44
47
|
{
|
45
48
|
Log::Error("%s", StringValueCStr(message));
|
49
|
+
return Qnil;
|
46
50
|
}
|
47
51
|
|
48
52
|
static VALUE Log_SetFilePath(VALUE self, VALUE path)
|
@@ -52,7 +56,7 @@ static VALUE Log_SetFilePath(VALUE self, VALUE path)
|
|
52
56
|
} else if (SYMBOL_P(path) && SYM2ID(path) == rb_intern("stdout")) {
|
53
57
|
Log::log_file = stdout;
|
54
58
|
} else if (RB_TYPE_P(path, T_STRING) && CLASS_OF(path) == rb_cString) {
|
55
|
-
Log::log_file = fopen(
|
59
|
+
Log::log_file = fopen(RSTRING_PTR(path), "w");
|
56
60
|
} else {
|
57
61
|
rb_raise(rb_eRuntimeError, "path must be a string, :stdout or nil");
|
58
62
|
}
|
data/lib/actuator.rb
CHANGED
data/lib/actuator/job.rb
CHANGED