rbind 0.0.3 → 0.0.4

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.
@@ -294,12 +294,17 @@ module Rbind
294
294
  GeneratorRuby.normalize_method_name(@root.cdelete_method)
295
295
  end
296
296
 
297
- def add_specializing
298
- if @root.respond_to?(:specialize_ruby)
299
- @root.specialize_ruby
300
- else
301
- nil
297
+ def add_specializing(root = @root)
298
+ str = if @root.respond_to?(:specialize_ruby)
299
+ root.specialize_ruby
300
+ else
301
+ ""
302
302
  end
303
+ root.each_type(false) do |t|
304
+ next if t.basic_type? && !t.is_a?(RNamespace)
305
+ str += add_specialize(t) if name == GeneratorRuby.normalize_type_name(t.full_name)
306
+ end
307
+ str
303
308
  end
304
309
 
305
310
  def add_constructor
data/rbind.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rbind'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.date = '2013-06-20'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Alexander Duda']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -89,4 +89,3 @@ signing_key:
89
89
  specification_version: 3
90
90
  summary: Library for genereating automated ffi-bindings for c/c++ libraries
91
91
  test_files: []
92
- has_rdoc: