RubyInline 3.12.0 → 3.12.1
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.tar.gz.sig +0 -0
- data/History.txt +105 -98
- data/lib/inline.rb +3 -3
- data/test/test_inline.rb +21 -17
- metadata +11 -11
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
=== 3.12.1 / 2013-02-14
|
|
2
|
+
|
|
3
|
+
* 2 bug fixes:
|
|
4
|
+
|
|
5
|
+
* Fixes for maglev to find headers in the correct location.
|
|
6
|
+
* Fixes for tests, mostly for maglev.
|
|
7
|
+
|
|
1
8
|
=== 3.12.0 / 2012-12-18
|
|
2
9
|
|
|
3
10
|
* 1 major enhancement:
|
|
@@ -184,273 +191,273 @@
|
|
|
184
191
|
|
|
185
192
|
* 2 bug fixes:
|
|
186
193
|
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
* comment stripper much more sane to fix problems on certain linux distros
|
|
195
|
+
* fixed a nit with older C compilers.
|
|
189
196
|
|
|
190
197
|
=== 3.6.1 / 2006-10-11
|
|
191
198
|
|
|
192
199
|
* 1 minor enhancement
|
|
193
200
|
|
|
194
|
-
|
|
201
|
+
* Hoe'd the Rakefile. :P
|
|
195
202
|
|
|
196
203
|
* 2 bug fixes
|
|
197
204
|
|
|
198
|
-
|
|
199
|
-
|
|
205
|
+
* Removed VALUE from @types because it is now in @@type_map.
|
|
206
|
+
* Tweak added for mingw32.
|
|
200
207
|
|
|
201
208
|
=== 3.6.0 / 2005-11-30 (omg I suck: actual release: 2006-09-15)
|
|
202
209
|
|
|
203
210
|
* 6 minor enhancements
|
|
204
211
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
212
|
+
* C builder can now be used directly for other foreign language glue.
|
|
213
|
+
* Pretty much all (c) functions are plain argument style, not argc/argv.
|
|
214
|
+
* Added Nathaniel and Dan's patches for windows support.
|
|
215
|
+
* Added VALUE as a default known type.
|
|
216
|
+
* Improved testing under $DEBUG.
|
|
217
|
+
* Deprecated $INLINE_FLAGS and $INLINE_LIBS are dead.
|
|
211
218
|
|
|
212
219
|
* 3 bug fixes
|
|
213
220
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
221
|
+
* Fixed a number of issues wrt testing.
|
|
222
|
+
* Cleaned up and cached certain calculations.
|
|
223
|
+
* Some windows compiler fixes went in, but MS compiler is a PITA still.
|
|
217
224
|
|
|
218
225
|
=== 3.5.0 / 2005-10-15
|
|
219
226
|
|
|
220
227
|
* 4 minor enhancements
|
|
221
228
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
229
|
+
* Switched to install for Makefile.
|
|
230
|
+
* Lots of minor cleanup.
|
|
231
|
+
* Added add_to_init to extend init methods. Great hack!
|
|
232
|
+
* Added 2 demo files used in the rubyconf 2005 presentation.
|
|
226
233
|
|
|
227
234
|
* 1 bug fix
|
|
228
235
|
|
|
229
|
-
|
|
236
|
+
* Fixed example in README.txt. OOPS!
|
|
230
237
|
|
|
231
238
|
=== 3.4.0 / 2005-07-13
|
|
232
239
|
|
|
233
240
|
* 2 minor enhancement
|
|
234
241
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
242
|
+
* Changed inline to take the language and a hash of options.
|
|
243
|
+
* Still backwards compatible, for now, and emits a warning.
|
|
244
|
+
* Options are available via the builder passed to your block.
|
|
238
245
|
|
|
239
246
|
* 2 bug fixes
|
|
240
247
|
|
|
241
|
-
|
|
242
|
-
|
|
248
|
+
* Modified caller discovery, yet again, due to changes in ruby 1.8.3.
|
|
249
|
+
* More compatible and clean with non-gems systems.
|
|
243
250
|
|
|
244
251
|
=== 3.3.2 / 2005-05-19
|
|
245
252
|
|
|
246
253
|
* 4 bug fixes
|
|
247
254
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
* Fixed a line number issue when using c_raw w/ multi-line signatures.
|
|
256
|
+
* Inline can now be invoked multiple times per class.
|
|
257
|
+
* Filled out rdoc.
|
|
258
|
+
* Fixed some old tests.
|
|
252
259
|
|
|
253
260
|
=== 3.3.1 / 2005-05-03
|
|
254
261
|
|
|
255
262
|
* 3 bug fixes
|
|
256
263
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
* Fixed a bug w/ unit tests involving caching of rootdir.
|
|
265
|
+
* Added a minor tweak to the file discovery when called through eval.
|
|
266
|
+
* Moved the packaging code into inline.rb in order to get rubygems wrapped scripts to work again (wrapper was breaking due to __FILE__ != $0).
|
|
260
267
|
|
|
261
268
|
=== 3.3.0 / 2005-04-22
|
|
262
269
|
|
|
263
270
|
* 2 minor enhancement
|
|
264
271
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
272
|
+
* Added inline_package, which helps you package inlined code into gems.
|
|
273
|
+
* inline_package also generates a Rakefile for you if you need it.
|
|
274
|
+
* inline.rb now (only) loads packaged code when present.
|
|
268
275
|
|
|
269
276
|
=== 3.2.1 / 2005-04-19
|
|
270
277
|
|
|
271
278
|
* 2 bug fixes
|
|
272
279
|
|
|
273
|
-
|
|
274
|
-
|
|
280
|
+
* Added double to typemap. Thanks Phil Tomson!
|
|
281
|
+
* Added a minor hack to get cygwin to work right--lemme know pls.
|
|
275
282
|
|
|
276
283
|
=== 3.2.0 / 2004-11-27
|
|
277
284
|
|
|
278
285
|
* 8 minor enhancements
|
|
279
286
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
* Gemified
|
|
288
|
+
* Added #line preprocessor directives to make debugging inside your ruby file practical.
|
|
289
|
+
* Added uninstall rule to Makefile
|
|
290
|
+
* Inline::C now generates classes directly instead of included modules.
|
|
291
|
+
* Better execeptions are thrown on error.
|
|
292
|
+
* Incorporated a bunch of changes from Jonathan Paisley:
|
|
293
|
+
* Generation of inline'd class methods. (c_singleton and c_raw_singleton)
|
|
294
|
+
* Fixed problems with nested module/classes.
|
|
295
|
+
* Inline can now extend the same class multiple times.
|
|
289
296
|
|
|
290
297
|
* 2 bug fixes
|
|
291
298
|
|
|
292
|
-
|
|
293
|
-
|
|
299
|
+
* Smarter require/instantiation to accomodate other languages better.
|
|
300
|
+
* Fixed a logic error where running good code, then bad, then bad again ran the original good code.
|
|
294
301
|
|
|
295
302
|
=== 3.1.0 / 2004-09-24
|
|
296
303
|
|
|
297
304
|
* 2 minor enhancement
|
|
298
305
|
|
|
299
|
-
|
|
300
|
-
|
|
306
|
+
* Extended API of Inline::C with prefix(code).
|
|
307
|
+
* Documented all public API.
|
|
301
308
|
|
|
302
309
|
* 2 bug fixes
|
|
303
310
|
|
|
304
|
-
|
|
305
|
-
|
|
311
|
+
* Cleaned a lot of code and tests.
|
|
312
|
+
* Removed nearly all tags.
|
|
306
313
|
|
|
307
314
|
=== 3.0.1 / 2004-02-24
|
|
308
315
|
|
|
309
316
|
* 2 bug fixes
|
|
310
317
|
|
|
311
|
-
|
|
312
|
-
|
|
318
|
+
* I let references to ZenTestUnit slip through the release. Removed.
|
|
319
|
+
* Converted History.txt to ZenWeb format.
|
|
313
320
|
|
|
314
321
|
=== 3.0.0 / 2003-12-23
|
|
315
322
|
|
|
316
323
|
* 3 major enhancements
|
|
317
324
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
325
|
+
* Complete rewrite with new design.
|
|
326
|
+
* Multiple language support, works with C/C++ out of the box.
|
|
327
|
+
* Multiple functions per compilation unit, now allowing entire classes to be defined and linked in one unit.
|
|
321
328
|
|
|
322
329
|
* Notes:
|
|
323
330
|
|
|
324
|
-
|
|
331
|
+
* I still need to write much better/complete documentation.
|
|
325
332
|
|
|
326
333
|
=== 2.2.0 / 2003-01-25
|
|
327
334
|
|
|
328
335
|
* 1 minor enhancements
|
|
329
336
|
|
|
330
|
-
|
|
337
|
+
* Touch all generated files to avoid unnecessary diffs.
|
|
331
338
|
|
|
332
339
|
* 1 bug fixes
|
|
333
340
|
|
|
334
|
-
|
|
335
|
-
|
|
341
|
+
* Added good profiling example in tutorial/*.
|
|
342
|
+
* Added profiling strategy in README.txt.
|
|
336
343
|
|
|
337
344
|
* Notes:
|
|
338
345
|
|
|
339
|
-
|
|
346
|
+
* Paired with Doug Beaver <snarly@beaver.net>
|
|
340
347
|
|
|
341
348
|
=== 2.1.1 / 2002-12-27
|
|
342
349
|
|
|
343
350
|
* 2 bug fixes
|
|
344
351
|
|
|
345
|
-
|
|
346
|
-
|
|
352
|
+
* Fixed a bug in inline.rb where it was comparing against inline.rb, not the caller.
|
|
353
|
+
* Tweaked example.rb to take the number of iterations as an option.
|
|
347
354
|
|
|
348
355
|
=== 2.1.0 / 2002-12-17
|
|
349
356
|
|
|
350
357
|
* 2 minor enhancements
|
|
351
358
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
359
|
+
* Added inline_c_raw to replace Inline.inline.
|
|
360
|
+
* Removed module Inline as a whole. This gets rid of some
|
|
361
|
+
* major version incompatibilities, tons of duplicate code, and
|
|
362
|
+
* just seems to make things happier.
|
|
356
363
|
|
|
357
364
|
* 4 bug fixes
|
|
358
365
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
* Added a fix from Michael Scholz to fix the use of $0 for file test.
|
|
367
|
+
* Added private and public declarations since we are invading
|
|
368
|
+
* class Module.
|
|
369
|
+
* Fixed tests... oops!
|
|
370
|
+
* Lots of clean up...
|
|
364
371
|
|
|
365
372
|
* Notes:
|
|
366
373
|
|
|
367
|
-
|
|
374
|
+
* Reviewed by Doug Beaver <snarly@beaver.net>
|
|
368
375
|
|
|
369
376
|
=== 2.0.0 / 2002-12-12
|
|
370
377
|
|
|
371
378
|
* 2 bug fixes
|
|
372
379
|
|
|
373
|
-
|
|
374
|
-
|
|
380
|
+
* Minor fix to get working on MacOS X (.so vs .bundle).
|
|
381
|
+
* Downgraded typemap to be compatible with 1.6.x.
|
|
375
382
|
|
|
376
383
|
* Notes:
|
|
377
384
|
|
|
378
|
-
|
|
385
|
+
* Paired w/ Doug Beaver <snarly@beaver.net>
|
|
379
386
|
|
|
380
387
|
=== 2.0.0 beta / 2002-11-22
|
|
381
388
|
|
|
382
389
|
* 1 major enhancements
|
|
383
390
|
|
|
384
|
-
|
|
391
|
+
* Added inline_c, a "compile-time" version of inline. Massively enhanced, this version has a limited form of C function parsing.
|
|
385
392
|
|
|
386
393
|
* 2 minor enhancements
|
|
387
394
|
|
|
388
|
-
|
|
389
|
-
|
|
395
|
+
* Deprecated Inline#inline for Module#inline_c. To be removed by 2.1.0.
|
|
396
|
+
* Extended example.rb to include a fully written inlined C function.
|
|
390
397
|
|
|
391
398
|
* 3 bug fixes
|
|
392
399
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
400
|
+
* Updated README.txt and improved some of the documentation.
|
|
401
|
+
* Added test and clean rules to Makefile.
|
|
402
|
+
* Removed the copious warnings if running ruby < 1.7.2.
|
|
396
403
|
|
|
397
404
|
* Notes:
|
|
398
405
|
|
|
399
|
-
|
|
406
|
+
* Paired w/ Doug Beaver <snarly@beaver.net>
|
|
400
407
|
|
|
401
408
|
=== 1.1.0 / 2002-11-01
|
|
402
409
|
|
|
403
410
|
* 2 minor enhancements
|
|
404
411
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
412
|
+
* Aliased methods are now inlined as well. 250x faster.
|
|
413
|
+
* ONLY on ruby 1.7*. Warns on ruby < 1.7.
|
|
414
|
+
* Added a makefile to automate running of all different benchmarks.
|
|
408
415
|
|
|
409
416
|
* 1 bug fixes
|
|
410
417
|
|
|
411
|
-
|
|
418
|
+
* Improved example to include an aliased method testcase.
|
|
412
419
|
|
|
413
420
|
=== 1.0.7 / 2002-09-22
|
|
414
421
|
|
|
415
422
|
* 1 minor enhancements
|
|
416
423
|
|
|
417
|
-
|
|
424
|
+
* Only compiles the generated code if it was different from the previous version.
|
|
418
425
|
|
|
419
426
|
* 1 bug fixes
|
|
420
427
|
|
|
421
|
-
|
|
428
|
+
* Improved security: Checks group and global write on home directory.
|
|
422
429
|
|
|
423
430
|
=== 1.0.6 / 2002-09-18
|
|
424
431
|
|
|
425
432
|
* 1 minor enhancements
|
|
426
433
|
|
|
427
|
-
|
|
434
|
+
* Added a prelude argument for header and datatype declarations.
|
|
428
435
|
|
|
429
436
|
* 3 bug fixes
|
|
430
437
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
438
|
+
* Only output stuff if invoked verbose (ie 'ruby -v ./example.rb').
|
|
439
|
+
* Added some compatibility code for windows.
|
|
440
|
+
* Declared requirement on POSIX system.
|
|
434
441
|
|
|
435
442
|
=== 1.0.5 / 2002-09-11
|
|
436
443
|
|
|
437
444
|
* 2 bug fixes
|
|
438
445
|
|
|
439
|
-
|
|
440
|
-
|
|
446
|
+
* Improved security model for UNIX. Still not sure about windoze.
|
|
447
|
+
* Fixed History.txt to be accurate, gave example in README.
|
|
441
448
|
|
|
442
449
|
=== 1.0.4 / 2002-09-10
|
|
443
450
|
|
|
444
451
|
* 1 major enhancements
|
|
445
452
|
|
|
446
|
-
|
|
453
|
+
* Released to sourceforge!
|
|
447
454
|
|
|
448
455
|
* 1 bug fixes
|
|
449
456
|
|
|
450
|
-
|
|
457
|
+
* A number of very minor bug fixes from IRC sessions w/ others.
|
|
451
458
|
|
|
452
459
|
=== 1.0.0 / 2002-09-05
|
|
453
460
|
|
|
454
461
|
* 1 major enhancements
|
|
455
462
|
|
|
456
|
-
|
|
463
|
+
* Birthday!
|
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.12.
|
|
68
|
+
VERSION = '3.12.1'
|
|
69
69
|
|
|
70
70
|
WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
|
|
71
71
|
RUBINIUS = defined? RUBY_ENGINE
|
|
@@ -551,10 +551,10 @@ VALUE #{method}_equals(VALUE value) {
|
|
|
551
551
|
|
|
552
552
|
if recompile then
|
|
553
553
|
|
|
554
|
-
hdrdir = %w(srcdir archdir rubyhdrdir).map { |name|
|
|
554
|
+
hdrdir = %w(srcdir includedir archdir rubyhdrdir).map { |name|
|
|
555
555
|
RbConfig::CONFIG[name]
|
|
556
556
|
}.find { |dir|
|
|
557
|
-
dir and File.exist? File.join(dir, "
|
|
557
|
+
dir and File.exist? File.join(dir, "ruby.h")
|
|
558
558
|
} or abort "ERROR: Can't find header dir for ruby. Exiting..."
|
|
559
559
|
|
|
560
560
|
flags = @flags.join(' ')
|
data/test/test_inline.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
$TESTING = true
|
|
2
2
|
|
|
3
|
-
$0 = __FILE__ if $0 =~ /-e|\(eval\)
|
|
3
|
+
$0 = __FILE__ if $0 =~ /-e|\(eval\)|^$/
|
|
4
|
+
$0 = $0.sub(Dir.pwd, '.')
|
|
4
5
|
|
|
5
6
|
require 'inline'
|
|
6
7
|
require 'tempfile'
|
|
@@ -13,15 +14,9 @@ File.umask(0)
|
|
|
13
14
|
|
|
14
15
|
require 'pathname'
|
|
15
16
|
|
|
16
|
-
$expand_paths = Pathname.new(__FILE__).absolute?
|
|
17
17
|
$inline_path = './lib/inline.rb'
|
|
18
18
|
$test_inline_path = './test/test_inline.rb'
|
|
19
19
|
|
|
20
|
-
if $expand_paths then
|
|
21
|
-
$inline_path = File.expand_path $inline_path
|
|
22
|
-
$test_inline_path = File.expand_path $test_inline_path
|
|
23
|
-
end
|
|
24
|
-
|
|
25
20
|
class InlineTestCase < MiniTest::Unit::TestCase
|
|
26
21
|
def setup
|
|
27
22
|
super
|
|
@@ -36,10 +31,6 @@ class InlineTestCase < MiniTest::Unit::TestCase
|
|
|
36
31
|
ENV.delete 'INLINEDIR'
|
|
37
32
|
end
|
|
38
33
|
end
|
|
39
|
-
|
|
40
|
-
def test_stupid
|
|
41
|
-
#shuts test unit up
|
|
42
|
-
end
|
|
43
34
|
end
|
|
44
35
|
|
|
45
36
|
class TestDir < InlineTestCase
|
|
@@ -521,7 +512,7 @@ static VALUE method_name_equals(VALUE self, VALUE _value) {
|
|
|
521
512
|
def util_generate(src, expected, expand_types=true)
|
|
522
513
|
result = @builder.generate src, expand_types
|
|
523
514
|
result = util_strip_lines result
|
|
524
|
-
|
|
515
|
+
|
|
525
516
|
expected = "# line N \"#{$0}\"\n" + expected
|
|
526
517
|
assert_equal(expected, result)
|
|
527
518
|
end
|
|
@@ -533,7 +524,7 @@ static VALUE method_name_equals(VALUE self, VALUE _value) {
|
|
|
533
524
|
def util_strip_lines(src)
|
|
534
525
|
case src
|
|
535
526
|
when String then
|
|
536
|
-
src.gsub(/\# line \d+/, '# line N')
|
|
527
|
+
src.gsub(/\# line \d+/, '# line N').gsub(Dir.pwd, '.')
|
|
537
528
|
when Array then
|
|
538
529
|
src.map do |chunk|
|
|
539
530
|
util_strip_lines chunk
|
|
@@ -807,21 +798,22 @@ extern \"C\" {
|
|
|
807
798
|
|
|
808
799
|
expected = "# line N \"#{$0}\"\nstatic VALUE add(VALUE self, VALUE _a, VALUE _b) {\n int a = FIX2INT(_a);\n int b = FIX2INT(_b);\n return INT2FIX(a + b); }"
|
|
809
800
|
|
|
810
|
-
result
|
|
801
|
+
result = util_strip_lines result
|
|
811
802
|
|
|
812
803
|
assert_equal expected, result
|
|
813
|
-
assert_equal [expected], @builder.src
|
|
804
|
+
assert_equal [expected], util_strip_lines(@builder.src)
|
|
814
805
|
end
|
|
815
806
|
|
|
816
807
|
def test_c_raw
|
|
817
808
|
src = "static VALUE answer_raw(int argc, VALUE *argv, VALUE self) { return INT2NUM(42); }"
|
|
809
|
+
|
|
818
810
|
result = @builder.c_raw src.dup
|
|
811
|
+
result = util_strip_lines result
|
|
819
812
|
|
|
820
|
-
result.gsub!(/\# line \d+/, '# line N')
|
|
821
813
|
expected = "# line N \"#{$0}\"\n" + src
|
|
822
814
|
|
|
823
815
|
assert_equal expected, result
|
|
824
|
-
assert_equal [expected], @builder.src
|
|
816
|
+
assert_equal [expected], util_strip_lines(@builder.src)
|
|
825
817
|
end
|
|
826
818
|
|
|
827
819
|
def test_map_c_const
|
|
@@ -874,6 +866,8 @@ extern \"C\" {
|
|
|
874
866
|
end
|
|
875
867
|
|
|
876
868
|
def test_build_good
|
|
869
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
870
|
+
|
|
877
871
|
code = util_simple_code(:DumbTest1, "long dumbpi() { return 314; }")
|
|
878
872
|
util_test_build(code) do
|
|
879
873
|
result = DumbTest1.new.dumbpi
|
|
@@ -983,6 +977,8 @@ EOR
|
|
|
983
977
|
|
|
984
978
|
class TestModule < InlineTestCase
|
|
985
979
|
def test_nested
|
|
980
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
981
|
+
|
|
986
982
|
Object.class_eval $test_module_code
|
|
987
983
|
fb = Foo::Bar.new
|
|
988
984
|
assert_equal(42, fb.forty_two_instance)
|
|
@@ -1003,12 +999,16 @@ class TestModule < InlineTestCase
|
|
|
1003
999
|
end
|
|
1004
1000
|
|
|
1005
1001
|
def test_argument_check_good
|
|
1002
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
1003
|
+
|
|
1006
1004
|
util_arity_check
|
|
1007
1005
|
fb = Foo::Bar.new
|
|
1008
1006
|
assert_equal 13, fb.arity6(1, 2, 3, 4, 5, "blah")
|
|
1009
1007
|
end
|
|
1010
1008
|
|
|
1011
1009
|
def test_argument_check_fewer
|
|
1010
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
1011
|
+
|
|
1012
1012
|
util_arity_check
|
|
1013
1013
|
fb = Foo::Bar.new
|
|
1014
1014
|
|
|
@@ -1018,6 +1018,8 @@ class TestModule < InlineTestCase
|
|
|
1018
1018
|
end
|
|
1019
1019
|
|
|
1020
1020
|
def test_argument_check_more
|
|
1021
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
1022
|
+
|
|
1021
1023
|
util_arity_check
|
|
1022
1024
|
fb = Foo::Bar.new
|
|
1023
1025
|
assert_raises ArgumentError do
|
|
@@ -1026,6 +1028,8 @@ class TestModule < InlineTestCase
|
|
|
1026
1028
|
end
|
|
1027
1029
|
|
|
1028
1030
|
def test_inline
|
|
1031
|
+
skip "https://github.com/MagLev/maglev/issues/231" if maglev?
|
|
1032
|
+
|
|
1029
1033
|
self.class.inline(:C) do |builder|
|
|
1030
1034
|
builder.c "int add(int a, int b) { return a + b; }"
|
|
1031
1035
|
end
|
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:
|
|
4
|
+
hash: 53
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 3
|
|
8
8
|
- 12
|
|
9
|
-
-
|
|
10
|
-
version: 3.12.
|
|
9
|
+
- 1
|
|
10
|
+
version: 3.12.1
|
|
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: 2013-02-15 00:00:00 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: ZenTest
|
|
@@ -61,11 +61,11 @@ dependencies:
|
|
|
61
61
|
requirements:
|
|
62
62
|
- - ~>
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
hash:
|
|
64
|
+
hash: 23
|
|
65
65
|
segments:
|
|
66
66
|
- 4
|
|
67
|
-
-
|
|
68
|
-
version: "4.
|
|
67
|
+
- 6
|
|
68
|
+
version: "4.6"
|
|
69
69
|
type: :development
|
|
70
70
|
version_requirements: *id002
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
@@ -91,11 +91,11 @@ dependencies:
|
|
|
91
91
|
requirements:
|
|
92
92
|
- - ~>
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
hash:
|
|
94
|
+
hash: 13
|
|
95
95
|
segments:
|
|
96
96
|
- 3
|
|
97
|
-
-
|
|
98
|
-
version: "3.
|
|
97
|
+
- 5
|
|
98
|
+
version: "3.5"
|
|
99
99
|
type: :development
|
|
100
100
|
version_requirements: *id004
|
|
101
101
|
description: |-
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
requirements:
|
|
162
162
|
- A POSIX environment and a compiler for your language.
|
|
163
163
|
rubyforge_project: rubyinline
|
|
164
|
-
rubygems_version: 1.8.
|
|
164
|
+
rubygems_version: 1.8.25
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 3
|
|
167
167
|
summary: Inline allows you to write foreign code within your ruby code
|
metadata.gz.sig
CHANGED
|
Binary file
|