live_ast 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.rdoc +4 -0
- data/lib/live_ast/replace_eval.rb +5 -5
- data/lib/live_ast/version.rb +1 -1
- data/test/rubygems_test.rb +1 -1
- data/test/rubyspec_test.rb +1 -2
- metadata +2 -2
data/CHANGES.rdoc
CHANGED
@@ -91,8 +91,8 @@ class BasicObject
|
|
91
91
|
if block
|
92
92
|
live_ast_original_instance_eval(*args, &block)
|
93
93
|
else
|
94
|
-
::LiveAST::ReplaceEval.
|
95
|
-
|
94
|
+
::LiveAST::ReplaceEval.
|
95
|
+
module_or_instance_eval(:instance, self, ::Boc.value, args)
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
@@ -104,8 +104,8 @@ class Module
|
|
104
104
|
if block
|
105
105
|
live_ast_original_module_eval(*args, &block)
|
106
106
|
else
|
107
|
-
LiveAST::ReplaceEval.
|
108
|
-
|
107
|
+
LiveAST::ReplaceEval.
|
108
|
+
module_or_instance_eval(:module, self, Boc.value, args)
|
109
109
|
end
|
110
110
|
end
|
111
111
|
end
|
@@ -113,7 +113,7 @@ end
|
|
113
113
|
Boc.enable Kernel, :eval
|
114
114
|
Boc.enable Kernel.singleton_class, :eval
|
115
115
|
Boc.enable Module, :module_eval
|
116
|
-
Boc.
|
116
|
+
Boc.enable_basic_object BasicObject, :instance_eval
|
117
117
|
|
118
118
|
class Module
|
119
119
|
remove_method :class_eval
|
data/lib/live_ast/version.rb
CHANGED
data/test/rubygems_test.rb
CHANGED
data/test/rubyspec_test.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: live_ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James M. Lawrence
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-16 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|