real_include 0.1.2-i386-mswin32 → 0.1.3-i386-mswin32

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 6/10/210 version 0.1.3
2
+ * fixed native gem
3
+ * moved more version-dependant code to compat.h
1
4
  5/10/2010 version 0.1.2
2
5
  * added 1.8 support
3
6
  * added bacon tests
data/README.markdown CHANGED
@@ -1,4 +1,4 @@
1
- Real Include
1
+ Real Include
2
2
  --------------
3
3
 
4
4
  (c) John Mair (banisterfiend)
@@ -8,6 +8,12 @@ Removes the shackles from Module#include - use Module#real_include to
8
8
  bring in singleton classes from modules. No more ugly ClassMethods and
9
9
  included() hook hacks.
10
10
 
11
+ ** This is BETA software and has not yet been thoroughly tested, use
12
+ at own risk **
13
+
14
+ install the gem: **for testing purposes only**
15
+ `gem install real_include`
16
+
11
17
  example:
12
18
 
13
19
  module M
@@ -10,6 +10,10 @@
10
10
  # define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
11
11
  # define RCLASS_SUPER(c) (RCLASS(c)->super)
12
12
  # define RCLASS_IV_TBL(c) (RCLASS(c)->iv_tbl)
13
+ # define OBJ_UNTRUSTED OBJ_TAINTED
14
+ # define FALSE 0
15
+ # define TRUE 1
16
+ # include "st.h"
13
17
  #endif
14
18
 
15
19
  /* a useful macro. cannot use ordinary CLASS_OF as it does not return an lvalue */
@@ -3,14 +3,6 @@
3
3
  #include "compat.h"
4
4
  #include "ruby.h"
5
5
 
6
- #ifndef RUBY_19
7
- # include "st.h"
8
- # define OBJ_UNTRUSTED OBJ_TAINTED
9
- #endif
10
-
11
- #define FALSE 0
12
- #define TRUE 1
13
-
14
6
  #ifdef RUBY_19
15
7
  static VALUE
16
8
  class_alloc(VALUE flags, VALUE klass)
@@ -1,3 +1,3 @@
1
1
  module RealInclude
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/real_include.rb CHANGED
@@ -1,4 +1,3 @@
1
- # bring in user-defined extensions to TexPlay
2
1
  direc = File.dirname(__FILE__)
3
2
 
4
3
  begin
@@ -8,6 +7,7 @@ begin
8
7
  require "#{direc}/1.8/real_include"
9
8
  end
10
9
  rescue LoadError => e
10
+ require 'rbconfig'
11
11
  dlext = Config::CONFIG['DLEXT']
12
12
  require "#{direc}/real_include.#{dlext}"
13
13
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: i386-mswin32
11
11
  authors:
12
12
  - John Mair (banisterfiend)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-04 00:00:00 +13:00
17
+ date: 2010-10-05 00:00:00 +13:00
18
18
  default_executable:
19
19
  dependencies: []
20
20