cplus2ruby 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/cplus2ruby.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = "cplus2ruby"
5
- s.version = "1.1.1"
5
+ s.version = "1.1.2"
6
6
  s.summary = "Gluing C++ and Ruby together in an OO manner"
7
7
  s.files = Dir['**/*']
8
8
  s.add_dependency('facets', '>= 2.3.0')
@@ -46,7 +46,9 @@ class Cplus2Ruby::CodeGenerator
46
46
  end
47
47
 
48
48
  def arity(args)
49
- args.size - (args.include?(:returns) ? 1 : 0)
49
+ # FIXME: Facets 2.3.0 has a bug in OrderedHash#include?
50
+ # (it behaves differently than Hash)
51
+ args.size - ((args.has_key?('returns') || args.has_key?(:returns)) ? 1 : 0)
50
52
  end
51
53
 
52
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cplus2ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Neumann
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-31 00:00:00 +02:00
12
+ date: 2008-04-01 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency