rbplusplus 1.0.3 → 1.1.0
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 +15 -0
- data/Rakefile +1 -1
- data/lib/rbplusplus/builders/allocation_strategy.rb +3 -3
- data/lib/rbplusplus/extension.rb +1 -1
- metadata +11 -17
- data/test/generated/extconf.rb +0 -25
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZmU1ODMzM2JmYTg5MDYyMTY2MWE1NTIyMTQ3ZmZhMjA4ZDdhYTZlMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjlmMGRjM2ZhMjFjZTNjNWI5YzdhNDE0N2U1M2M2Yzc5ZTQ3ZjQ3Nw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjQ1YjE2MmQ3YjgwNWEwNzc3ZjQ3MWUwOGQ0ZjE4NDA1NjM4NzI4ZjAyMWI3
|
10
|
+
ZWNmMjU0MDUxYzViMDRkZmI4Mzk0M2QzNWJhMTRmMmRjODM1NDc0YTlkZjQ1
|
11
|
+
ZWU1YTNhZmVlMDY1MzZmNDhjNmRiOWNiNzc5ZmM0OTc1ZWMxZjA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzA3NzM4ZWFiZmE2MDU3NzA4NTQ1N2M3Mjk2NzFiYTBhNGJjNDRiY2UxYWIz
|
14
|
+
YmRmMmVkNDVmZjIzZjU4ODIxNWY4YmEzZWZkMmJhYjhhOGJiNjgzMTQ4ZTdi
|
15
|
+
YmJlZmE4M2Y5ZTgzZGRlMjBlYWJhMWNlY2NkYmJkYjJkNGM0ODg=
|
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ task :test do
|
|
17
17
|
# To allow multiple ruby installs (like a multiruby test suite), I need to get
|
18
18
|
# the exact ruby binary that's linked to the ruby running the Rakefile. Just saying
|
19
19
|
# "ruby" will find the system's installed ruby and be worthless
|
20
|
-
ruby = File.join(
|
20
|
+
ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["RUBY_INSTALL_NAME"])
|
21
21
|
sh "#{ruby} -S rspec -Itest #{file}"
|
22
22
|
end
|
23
23
|
end
|
@@ -20,13 +20,13 @@ module RbPlusPlus
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def write
|
23
|
-
includes << "#include <rice/
|
23
|
+
includes << "#include <rice/Data_Object.hpp>"
|
24
24
|
|
25
25
|
node_name = self.code.qualified_name
|
26
26
|
code = <<-END
|
27
27
|
namespace Rice {
|
28
28
|
template<>
|
29
|
-
struct
|
29
|
+
struct Default_Free_Function< #{node_name} > {
|
30
30
|
static void free(#{node_name} * obj);
|
31
31
|
};
|
32
32
|
}
|
@@ -34,7 +34,7 @@ namespace Rice {
|
|
34
34
|
|
35
35
|
declarations << code
|
36
36
|
|
37
|
-
pre = "Rice::
|
37
|
+
pre = "Rice::Default_Free_Function< #{node_name} >::"
|
38
38
|
|
39
39
|
tmp = "void #{pre}free(#{node_name} * obj) { "
|
40
40
|
tmp += @public_destructor ? "delete obj;" : ""
|
data/lib/rbplusplus/extension.rb
CHANGED
@@ -236,7 +236,7 @@ module RbPlusPlus
|
|
236
236
|
def compile
|
237
237
|
Logger.info "Compiling. See rbpp_compile.log for details."
|
238
238
|
require 'rbconfig'
|
239
|
-
ruby = File.join(
|
239
|
+
ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["RUBY_INSTALL_NAME"])
|
240
240
|
FileUtils.cd @working_dir do
|
241
241
|
system("#{ruby} extconf.rb > rbpp_compile.log 2>&1")
|
242
242
|
system("rm -f *.so")
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbplusplus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jason Roelofs
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rbgccxml
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,26 +27,24 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rice
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.
|
33
|
+
version: 1.5.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
40
|
+
version: 1.5.0
|
46
41
|
description: ! 'Rb++ combines the powerful query interface of rbgccxml and the Rice
|
47
42
|
library to
|
48
43
|
|
49
44
|
make Ruby wrapping extensions of C++ libraries easier to write than ever.
|
50
45
|
|
51
46
|
'
|
52
|
-
email:
|
47
|
+
email: jasongroelofs@gmail.com
|
53
48
|
executables: []
|
54
49
|
extensions: []
|
55
50
|
extra_rdoc_files: []
|
@@ -113,7 +108,6 @@ files:
|
|
113
108
|
- test/function_pointer_test.rb
|
114
109
|
- test/function_pointers_classes_test.rb
|
115
110
|
- test/functions_test.rb
|
116
|
-
- test/generated/extconf.rb
|
117
111
|
- test/implicit_cast_test.rb
|
118
112
|
- test/include_source_dir_test.rb
|
119
113
|
- test/include_source_files_test.rb
|
@@ -158,28 +152,28 @@ files:
|
|
158
152
|
- test/headers/ugly_interface_ns.h
|
159
153
|
- test/headers/with_includes.h
|
160
154
|
homepage: http://rbplusplus.rubyforge.org
|
161
|
-
licenses:
|
155
|
+
licenses:
|
156
|
+
- MIT
|
157
|
+
metadata: {}
|
162
158
|
post_install_message:
|
163
159
|
rdoc_options: []
|
164
160
|
require_paths:
|
165
161
|
- lib
|
166
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
167
|
-
none: false
|
168
163
|
requirements:
|
169
164
|
- - ! '>='
|
170
165
|
- !ruby/object:Gem::Version
|
171
166
|
version: '0'
|
172
167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
168
|
requirements:
|
175
169
|
- - ! '>='
|
176
170
|
- !ruby/object:Gem::Version
|
177
171
|
version: '0'
|
178
172
|
requirements: []
|
179
173
|
rubyforge_project: rbplusplus
|
180
|
-
rubygems_version: 1.
|
174
|
+
rubygems_version: 2.1.9
|
181
175
|
signing_key:
|
182
|
-
specification_version:
|
176
|
+
specification_version: 4
|
183
177
|
summary: Ruby library to generate Rice wrapper code
|
184
178
|
test_files:
|
185
179
|
- test/allocation_strategies_test.rb
|
@@ -197,7 +191,6 @@ test_files:
|
|
197
191
|
- test/function_pointer_test.rb
|
198
192
|
- test/function_pointers_classes_test.rb
|
199
193
|
- test/functions_test.rb
|
200
|
-
- test/generated/extconf.rb
|
201
194
|
- test/implicit_cast_test.rb
|
202
195
|
- test/include_source_dir_test.rb
|
203
196
|
- test/include_source_files_test.rb
|
@@ -241,3 +234,4 @@ test_files:
|
|
241
234
|
- test/headers/ugly_interface.h
|
242
235
|
- test/headers/ugly_interface_ns.h
|
243
236
|
- test/headers/with_includes.h
|
237
|
+
has_rdoc:
|
data/test/generated/extconf.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'mkmf-rice'
|
3
|
-
|
4
|
-
# Add the arguments to the linker flags.
|
5
|
-
def append_ld_flags(flags)
|
6
|
-
flags = [flags] unless flags.is_a?(Array)
|
7
|
-
with_ldflags("#{$LDFLAGS} #{flags.join(' ')}") { true }
|
8
|
-
end
|
9
|
-
|
10
|
-
$CPPFLAGS += " -I'/Users/roelofs/Development/rbplusplus/test/generated' "
|
11
|
-
$LDFLAGS += " "
|
12
|
-
|
13
|
-
if RUBY_PLATFORM =~ /darwin/
|
14
|
-
# In order to link the shared library into our bundle with GCC 4.x on OSX, we have to work around a bug:
|
15
|
-
# GCC redefines symbols - which the -fno-common prohibits. In order to keep the -fno-common, we
|
16
|
-
# remove the flat_namespace (we now have two namespaces, which fixes the GCC clash). Also, we now lookup
|
17
|
-
# symbols in both the namespaces (dynamic_lookup).
|
18
|
-
|
19
|
-
$LDSHARED_CXX.gsub!('suppress', 'dynamic_lookup')
|
20
|
-
$LDSHARED_CXX.gsub!('-flat_namespace', '')
|
21
|
-
|
22
|
-
append_ld_flags '-all_load'
|
23
|
-
end
|
24
|
-
|
25
|
-
create_makefile("ui")
|