real_include 0.1.2-i386-mingw32 → 0.1.3-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.markdown +7 -1
- data/ext/real_include/compat.h +4 -0
- data/ext/real_include/real_include.c +0 -8
- data/lib/real_include/version.rb +1 -1
- data/lib/real_include.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
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
|
data/ext/real_include/compat.h
CHANGED
@@ -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 */
|
data/lib/real_include/version.rb
CHANGED
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
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: i386-mingw32
|
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-
|
17
|
+
date: 2010-10-05 00:00:00 +13:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|