utilrb 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -8,10 +8,7 @@ bm/allocation.rb
8
8
  bm/speed.rb
9
9
  ext/utilrb/extconf.rb
10
10
  ext/utilrb/proc.c
11
- ext/utilrb/ruby_internals-1.8.h
12
- ext/utilrb/ruby_internals-1.9.h
13
11
  ext/utilrb/ruby_allocator.hh
14
- ext/utilrb/swap.cc
15
12
  ext/utilrb/utilrb.cc
16
13
  ext/utilrb/value_set.cc
17
14
  ext/utilrb/weakref.cc
@@ -31,6 +28,7 @@ lib/utilrb/enumerable/random_element.rb
31
28
  lib/utilrb/enumerable/sequence.rb
32
29
  lib/utilrb/enumerable/to_s_helper.rb
33
30
  lib/utilrb/enumerable/uniq.rb
31
+ lib/utilrb/event_loop.rb
34
32
  lib/utilrb/exception.rb
35
33
  lib/utilrb/exception/full_message.rb
36
34
  lib/utilrb/gc.rb
@@ -48,7 +46,6 @@ lib/utilrb/kernel/load_dsl_file.rb
48
46
  lib/utilrb/kernel/options.rb
49
47
  lib/utilrb/kernel/poll.rb
50
48
  lib/utilrb/kernel/require.rb
51
- lib/utilrb/kernel/swap.rb
52
49
  lib/utilrb/kernel/with_module.rb
53
50
  lib/utilrb/logger.rb
54
51
  lib/utilrb/logger/forward.rb
@@ -57,7 +54,10 @@ lib/utilrb/logger/indent.rb
57
54
  lib/utilrb/logger/io.rb
58
55
  lib/utilrb/logger/log_pp.rb
59
56
  lib/utilrb/logger/root.rb
57
+ lib/utilrb/logger/silent.rb
60
58
  lib/utilrb/marshal/load_with_missing_constants.rb
59
+ lib/utilrb/models/inherited_enumerable.rb
60
+ lib/utilrb/models/registration.rb
61
61
  lib/utilrb/module.rb
62
62
  lib/utilrb/module/ancestor_p.rb
63
63
  lib/utilrb/module/attr_enumerable.rb
@@ -75,7 +75,11 @@ lib/utilrb/object/attribute.rb
75
75
  lib/utilrb/object/scoped_eval.rb
76
76
  lib/utilrb/object/singleton_class.rb
77
77
  lib/utilrb/objectstats.rb
78
+ lib/utilrb/pathname.rb
79
+ lib/utilrb/pathname/find_matching_parent.rb
78
80
  lib/utilrb/pkgconfig.rb
81
+ lib/utilrb/qt/mime_data/mime_data.rb
82
+ lib/utilrb/qt/variant/from_ruby.rb
79
83
  lib/utilrb/rake_common.rb
80
84
  lib/utilrb/ruby_object_graph.rb
81
85
  lib/utilrb/set.rb
@@ -84,6 +88,7 @@ lib/utilrb/socket/tcp_server.rb
84
88
  lib/utilrb/socket/tcp_socket.rb
85
89
  lib/utilrb/spawn.rb
86
90
  lib/utilrb/symbol/to_str.rb
91
+ lib/utilrb/thread_pool.rb
87
92
  lib/utilrb/time.rb
88
93
  lib/utilrb/time/to_hms.rb
89
94
  lib/utilrb/timepoints.rb
@@ -99,18 +104,21 @@ test/test_array.rb
99
104
  test/test_config.rb
100
105
  test/test_dir.rb
101
106
  test/test_enumerable.rb
107
+ test/test_event_loop.rb
102
108
  test/test_exception.rb
103
109
  test/test_gc.rb
104
110
  test/test_hash.rb
105
111
  test/test_kernel.rb
106
112
  test/test_logger.rb
107
113
  test/test_misc.rb
114
+ test/test_models.rb
108
115
  test/test_module.rb
109
116
  test/test_object.rb
110
117
  test/test_objectstats.rb
111
118
  test/test_pkgconfig.rb
112
119
  test/test_proc.rb
113
120
  test/test_set.rb
121
+ test/test_thread_pool.rb
114
122
  test/test_time.rb
115
123
  test/test_unbound_method.rb
116
124
  test/test_weakref.rb
@@ -5,8 +5,11 @@ if try_link("int main() { }", "-module")
5
5
  $LDFLAGS += " -module"
6
6
  end
7
7
 
8
- if RUBY_VERSION >= "1.9"
9
- $CFLAGS += " -DRUBY_IS_19"
8
+ if RUBY_VERSION < "1.9"
9
+ $CFLAGS += " -DRUBY_IS_18"
10
+ puts "not building with core source"
11
+ create_makefile("utilrb/utilrb")
12
+ else
10
13
  begin
11
14
  require 'debugger/ruby_core_source'
12
15
  $CFLAGS += " -DHAS_RUBY_SOURCE"
@@ -16,9 +19,6 @@ if RUBY_VERSION >= "1.9"
16
19
  puts "not building with core source"
17
20
  create_makefile("utilrb/utilrb")
18
21
  end
19
- else
20
- puts "not building with core source"
21
- create_makefile("utilrb/utilrb")
22
22
  end
23
23
 
24
24
  ## WORKAROUND a problem with mkmf.rb
data/ext/utilrb/proc.c CHANGED
@@ -25,10 +25,10 @@ static VALUE proc_references(VALUE rbproc)
25
25
  return env_references(proc->envval);
26
26
  return rb_ary_new();
27
27
  }
28
- #elif RUBY_IS_19
29
- #warning "Ruby core sources cannot be found, Proc#references will not be available. Install the debugger-ruby_core_source gem to enable"
30
- #else
28
+ #elif RUBY_IS_18
31
29
  #warning "compiling on Ruby 1.8, Proc#references will not be available"
30
+ #else
31
+ #warning "Ruby core sources cannot be found, Proc#references will not be available. Install the debugger-ruby_core_source gem to enable"
32
32
  #endif
33
33
 
34
34
  void Init_proc()
data/ext/utilrb/utilrb.cc CHANGED
@@ -53,7 +53,6 @@ static VALUE kernel_crash(VALUE klass)
53
53
  }
54
54
 
55
55
  extern "C" void Init_value_set();
56
- extern "C" void Init_swap();
57
56
  extern "C" void Init_weakref(VALUE mUtilrb);
58
57
  extern "C" void Init_proc();
59
58
 
@@ -68,7 +67,6 @@ extern "C" void Init_utilrb()
68
67
  rb_define_singleton_method(rb_mKernel, "crash!", RUBY_METHOD_FUNC(kernel_crash), 0);
69
68
  rb_define_singleton_method(rb_mKernel, "immediate?", RUBY_METHOD_FUNC(kernel_is_immediate), 1);
70
69
 
71
- Init_swap();
72
70
  Init_weakref(mUtilrb);
73
71
  #endif
74
72
 
@@ -1,10 +1,10 @@
1
1
  #include <set>
2
2
  #include <map>
3
3
  #include <ruby.h>
4
- #ifdef RUBY_IS_19
5
- #include <ruby/intern.h>
6
- #else
4
+ #ifdef RUBY_IS_18
7
5
  #include <intern.h>
6
+ #else
7
+ #include <ruby/intern.h>
8
8
  #endif
9
9
 
10
10
  using std::set;
data/lib/utilrb/common.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # the standard class extensions used by www.rock-robotics.org projects.
4
4
  module Utilrb
5
5
  unless defined? Utilrb::VERSION
6
- VERSION = "2.0.0"
6
+ VERSION = "2.0.1"
7
7
  RUBY_IS_19 = (RUBY_VERSION >= "1.9.2")
8
8
  RUBY_IS_191 = (RUBY_VERSION >= "1.9") && (RUBY_VERSION < "1.9.2")
9
9
  end