real_include 0.1.1 → 0.1.2
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 +3 -0
- data/README.markdown +0 -2
- data/Rakefile +1 -1
- data/lib/real_include/version.rb +1 -1
- data/lib/real_include.rb +15 -0
- metadata +3 -3
- data/lib/_real_include.rb +0 -14
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -4,8 +4,6 @@ Real Include
|
|
4
4
|
(c) John Mair (banisterfiend)
|
5
5
|
MIT license
|
6
6
|
|
7
|
-
** Currently supports Ruby 1.9 only **
|
8
|
-
|
9
7
|
Removes the shackles from Module#include - use Module#real_include to
|
10
8
|
bring in singleton classes from modules. No more ugly ClassMethods and
|
11
9
|
included() hook hacks.
|
data/Rakefile
CHANGED
@@ -27,7 +27,7 @@ specification = Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
s.extensions = ["ext/real_include/extconf.rb"]
|
29
29
|
s.files = ["Rakefile", "README.markdown", "CHANGELOG",
|
30
|
-
"lib/
|
30
|
+
"lib/real_include.rb", "lib/real_include/version.rb"]
|
31
31
|
FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
|
32
32
|
end
|
33
33
|
|
data/lib/real_include/version.rb
CHANGED
data/lib/real_include.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# bring in user-defined extensions to TexPlay
|
2
|
+
direc = File.dirname(__FILE__)
|
3
|
+
|
4
|
+
begin
|
5
|
+
if RUBY_VERSION && RUBY_VERSION =~ /1.9/
|
6
|
+
require "#{direc}/1.9/real_include"
|
7
|
+
else
|
8
|
+
require "#{direc}/1.8/real_include"
|
9
|
+
end
|
10
|
+
rescue LoadError => e
|
11
|
+
dlext = Config::CONFIG['DLEXT']
|
12
|
+
require "#{direc}/real_include.#{dlext}"
|
13
|
+
end
|
14
|
+
|
15
|
+
require "#{direc}/real_include/version"
|
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
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Mair (banisterfiend)
|
@@ -30,7 +30,7 @@ files:
|
|
30
30
|
- Rakefile
|
31
31
|
- README.markdown
|
32
32
|
- CHANGELOG
|
33
|
-
- lib/
|
33
|
+
- lib/real_include.rb
|
34
34
|
- lib/real_include/version.rb
|
35
35
|
- ext/real_include/extconf.rb
|
36
36
|
has_rdoc: false
|
data/lib/_real_include.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# bring in user-defined extensions to TexPlay
|
2
|
-
direc = File.dirname(__FILE__)
|
3
|
-
dlext = Config::CONFIG['DLEXT']
|
4
|
-
begin
|
5
|
-
if RUBY_VERSION && RUBY_VERSION =~ /1.9/
|
6
|
-
require "#{direc}/1.9/real_include.#{dlext}"
|
7
|
-
else
|
8
|
-
require "#{direc}/1.8/real_include.#{dlext}"
|
9
|
-
end
|
10
|
-
rescue LoadError => e
|
11
|
-
require "#{direc}/real_include.#{dlext}"
|
12
|
-
end
|
13
|
-
|
14
|
-
require "#{direc}/real_include/version"
|