RubyInline 3.8.6 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/lib/inline.rb +3 -3
- metadata +17 -32
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
data/lib/inline.rb
CHANGED
@@ -65,7 +65,7 @@ class CompilationError < RuntimeError; end
|
|
65
65
|
# the current namespace.
|
66
66
|
|
67
67
|
module Inline
|
68
|
-
VERSION = '3.
|
68
|
+
VERSION = '3.9.0'
|
69
69
|
|
70
70
|
WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
|
71
71
|
RUBINIUS = defined? RUBY_ENGINE
|
@@ -247,13 +247,13 @@ module Inline
|
|
247
247
|
method_name = options[:method_name]
|
248
248
|
method_name ||= test_to_normal function_name
|
249
249
|
return_type = signature['return']
|
250
|
-
arity = signature['arity']
|
250
|
+
arity = options[:arity] || signature['arity']
|
251
251
|
|
252
252
|
raise ArgumentError, "too many arguments" if arity > MAGIC_ARITY_THRESHOLD
|
253
253
|
|
254
254
|
if expand_types then
|
255
255
|
prefix = "static VALUE #{function_name}("
|
256
|
-
if arity
|
256
|
+
if arity <= MAGIC_ARITY then
|
257
257
|
prefix += "int argc, VALUE *argv, VALUE self"
|
258
258
|
else
|
259
259
|
prefix += "VALUE self"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyInline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 35
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 3.
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 3.9.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date:
|
39
|
+
date: 2011-02-18 00:00:00 -08:00
|
40
40
|
default_executable:
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
@@ -55,53 +55,37 @@ dependencies:
|
|
55
55
|
type: :runtime
|
56
56
|
version_requirements: *id001
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
58
|
+
name: minitest
|
59
59
|
prerelease: false
|
60
60
|
requirement: &id002 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
hash:
|
65
|
+
hash: 11
|
66
66
|
segments:
|
67
67
|
- 2
|
68
68
|
- 0
|
69
|
-
-
|
70
|
-
version: 2.0.
|
69
|
+
- 2
|
70
|
+
version: 2.0.2
|
71
71
|
type: :development
|
72
72
|
version_requirements: *id002
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
74
|
+
name: hoe
|
75
75
|
prerelease: false
|
76
76
|
requirement: &id003 !ruby/object:Gem::Requirement
|
77
77
|
none: false
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
hash:
|
81
|
+
hash: 41
|
82
82
|
segments:
|
83
|
+
- 2
|
84
|
+
- 9
|
83
85
|
- 1
|
84
|
-
|
85
|
-
- 1
|
86
|
-
version: 1.7.1
|
86
|
+
version: 2.9.1
|
87
87
|
type: :development
|
88
88
|
version_requirements: *id003
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: hoe
|
91
|
-
prerelease: false
|
92
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
hash: 19
|
98
|
-
segments:
|
99
|
-
- 2
|
100
|
-
- 6
|
101
|
-
- 2
|
102
|
-
version: 2.6.2
|
103
|
-
type: :development
|
104
|
-
version_requirements: *id004
|
105
89
|
description: |-
|
106
90
|
Inline allows you to write foreign code within your ruby code. It
|
107
91
|
automatically determines if the code in question has changed and
|
@@ -134,6 +118,7 @@ files:
|
|
134
118
|
- test/test_inline.rb
|
135
119
|
- tutorial/example1.rb
|
136
120
|
- tutorial/example2.rb
|
121
|
+
- .gemtest
|
137
122
|
has_rdoc: true
|
138
123
|
homepage: http://rubyforge.org/projects/rubyinline/
|
139
124
|
licenses: []
|
@@ -165,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
150
|
requirements:
|
166
151
|
- A POSIX environment and a compiler for your language.
|
167
152
|
rubyforge_project: rubyinline
|
168
|
-
rubygems_version: 1.
|
153
|
+
rubygems_version: 1.4.2
|
169
154
|
signing_key:
|
170
155
|
specification_version: 3
|
171
156
|
summary: Inline allows you to write foreign code within your ruby code
|
metadata.gz.sig
CHANGED
Binary file
|