rice 1.4.2 → 1.4.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.
data/Doxyfile CHANGED
@@ -23,7 +23,7 @@ PROJECT_NAME = Rice
23
23
  # This could be handy for archiving the generated documentation or
24
24
  # if some version control system is used.
25
25
 
26
- PROJECT_NUMBER = 1.4.2
26
+ PROJECT_NUMBER = 1.4.3
27
27
 
28
28
  # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
29
29
  # base path where the generated documentation will be put.
data/extconf.rb CHANGED
@@ -22,9 +22,13 @@ with_ruby = File.join(Config::CONFIG["bindir"], Config::CONFIG["RUBY_INSTALL_NAM
22
22
  other_opts = ""
23
23
  env = ""
24
24
 
25
- arch = Config::CONFIG["arch"].split("-")[0]
26
-
27
25
  if RUBY_PLATFORM =~ /darwin10/
26
+ arch = Config::CONFIG["arch"].split("-")[0]
27
+
28
+ if arch == "universal"
29
+ arch = `uname -m`.strip
30
+ end
31
+
28
32
  other_opts = "--disable-dependency-tracking"
29
33
  env = "ARCHFLAGS='-arch #{arch}' CPPFLAGS='-arch #{arch}'"
30
34
  elsif RUBY_PLATFORM =~ /darwin9/
data/rice/Data_Type.ipp CHANGED
@@ -130,8 +130,8 @@ define_constructor(
130
130
  rb_define_alloc_func(
131
131
  static_cast<VALUE>(*this),
132
132
  detail::default_allocation_func<T>);
133
- define_method(
134
- "initialize",
133
+ this->define_method(
134
+ "initialize",
135
135
  &Constructor_T::construct,
136
136
  arguments
137
137
  );
data/rice/Module_impl.ipp CHANGED
@@ -298,7 +298,7 @@ void
298
298
  Rice::Module_impl<Base_T, Derived_T>::
299
299
  remove_const(Identifier name)
300
300
  {
301
- protect(rb_mod_remove_const, *this, Symbol(name));
301
+ protect(rb_mod_remove_const, *this, name.to_sym());
302
302
  }
303
303
 
304
304
  template<typename Base_T, typename Derived_T>
data/ruby/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rice
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
@@ -71,6 +71,7 @@ namespace {
71
71
 
72
72
  int default_process(int num) {
73
73
  raisePureVirtual();
74
+ return 0;
74
75
  }
75
76
 
76
77
  virtual int doSomething(int num) {
@@ -201,6 +202,7 @@ namespace {
201
202
 
202
203
  int default_doItImpl(int in) {
203
204
  raisePureVirtual();
205
+ return 0;
204
206
  }
205
207
  };
206
208
 
data/test/unittest.hpp CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
  #if defined(_MSC_VER)
9
9
  #define NOMINMAX
10
- #else
11
- using namespace std;
12
10
  #endif
13
11
 
14
12
  #include <vector>
@@ -17,6 +15,10 @@ using namespace std;
17
15
  #include <sstream>
18
16
  #include <iostream>
19
17
 
18
+ #if !defined(_MSC_VER)
19
+ using namespace std;
20
+ #endif
21
+
20
22
  class Failure
21
23
  {
22
24
  public:
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rice
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 1
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 4
8
- - 2
9
- version: 1.4.2
9
+ - 3
10
+ version: 1.4.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Paul Brannan
@@ -15,8 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-12-27 00:00:00 -05:00
19
- default_executable:
19
+ date: 2011-10-09 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: |
@@ -238,7 +238,6 @@ files:
238
238
  - test/ext/t2/extconf.rb
239
239
  - test/ext/t2/t2.cpp
240
240
  - test/test_rice.rb
241
- has_rdoc: true
242
241
  homepage: http://rice.rubyforge.org/
243
242
  licenses: []
244
243
 
@@ -252,6 +251,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
251
  requirements:
253
252
  - - ">="
254
253
  - !ruby/object:Gem::Version
254
+ hash: 3
255
255
  segments:
256
256
  - 0
257
257
  version: "0"
@@ -260,13 +260,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  requirements:
261
261
  - - ">="
262
262
  - !ruby/object:Gem::Version
263
+ hash: 3
263
264
  segments:
264
265
  - 0
265
266
  version: "0"
266
267
  requirements: []
267
268
 
268
269
  rubyforge_project: rice
269
- rubygems_version: 1.3.7
270
+ rubygems_version: 1.8.6
270
271
  signing_key:
271
272
  specification_version: 3
272
273
  summary: Ruby Interface for C++ Extensions