RubyInline 3.8.0 → 3.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +6 -0
  2. data/lib/inline.rb +11 -3
  3. metadata +2 -2
@@ -1,3 +1,9 @@
1
+ === 3.8.1 / 2008-10-24
2
+
3
+ * 1 minor enhancement
4
+
5
+ * Inline registers all classes for hoe's INLINE=1 packaging feature.
6
+
1
7
  === 3.8.0 / 2008-10-22
2
8
 
3
9
  * 8 minor enhancements:
@@ -65,7 +65,7 @@ class CompilationError < RuntimeError; end
65
65
  # the current namespace.
66
66
 
67
67
  module Inline
68
- VERSION = '3.8.0'
68
+ VERSION = '3.8.1'
69
69
 
70
70
  WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
71
71
  RUBINIUS = defined? RUBY_ENGINE
@@ -79,10 +79,16 @@ module Inline
79
79
  "#{Gem.ruby} -S rake"
80
80
  end
81
81
 
82
-
83
82
  warn "RubyInline v #{VERSION}" if $DEBUG
84
83
 
85
- protected
84
+ def self.register cls
85
+ registered_inline_classes << cls
86
+ registered_inline_classes.uniq!
87
+ end
88
+
89
+ def self.registered_inline_classes
90
+ @@registered_inline_classes ||= []
91
+ end
86
92
 
87
93
  # rootdir can be forced using INLINEDIR variable
88
94
  # if not defined, it should store in user HOME folder
@@ -784,6 +790,8 @@ class Module
784
790
  # parameter.
785
791
 
786
792
  def inline(lang = :C, options={})
793
+ Inline.register self
794
+
787
795
  case options
788
796
  when TrueClass, FalseClass then
789
797
  warn "WAR\NING: 2nd argument to inline is now a hash, changing to {:testing=>#{options}}" unless options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyInline
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-22 00:00:00 -05:00
12
+ date: 2008-10-24 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency