actuator 0.0.2 → 0.0.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: a83bb8129bf4ab7627d41b2dfee1e9d7c3acfc6b
4
- data.tar.gz: 555e35196bbc4e4f8490440c75d2541e15760676
3
+ metadata.gz: 9a3330d2dc2208f4fb41476a48446eb44dd736a9
4
+ data.tar.gz: 0cb07e0de6ba304a7ff40de15162396634776b48
5
5
  SHA512:
6
- metadata.gz: fee763b53762ba27ce8ef05d5bec606f25fb136dd6af73674d9f701389948aaa8e87e6c53d105cd44794a934c688533ccda01b4d22be6ca74b2c8740a1f7a730
7
- data.tar.gz: a1d65624b9514714fcf8a495de43341feb2efa82b9079e4d78a0417d4fc4fa3e5529ee36f877f7424a5cdbb53bf4a0832e694142eabaa783417a8278a27912fa
6
+ metadata.gz: 15b84d5670938bc265e12f6d6d8d5c8f3a5853bb9d74ee232f44859f2edcd0141488619cdde41e8a6163ef01d20b052ca8702bee4683481e34daa83594644f6f
7
+ data.tar.gz: dbc46d9f39f9b4be86e00a2a8173b24fc7e075253e004b37f7db333fdc390359b7b82c83febdbaf2e4e839821f8c869ca3eaffeb5a540742d1771bccb5968b85
@@ -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(rb_id2name(SYM2ID(path)), "w");
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
  }
@@ -4,7 +4,7 @@ require_relative 'actuator/fiber'
4
4
  require_relative 'actuator/fiber_pool'
5
5
 
6
6
  module Actuator
7
- VERSION = "0.0.2"
7
+ VERSION = "0.0.3"
8
8
 
9
9
  class << self
10
10
  def run
@@ -84,7 +84,7 @@ module Actuator
84
84
  attr_writer :thread_variables
85
85
 
86
86
  def job_started
87
- raise "[Job #@id] job_started called multiple times" if @id
87
+ #raise "[Job #@id] job_started called multiple times" if @id
88
88
  @id = @@total += 1
89
89
  # @@active_jobs << self
90
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actuator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bawNg