live_ast 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.rdoc +5 -10
- data/lib/live_ast/loader.rb +2 -1
- data/lib/live_ast/version.rb +1 -1
- data/test/load_path_test.rb +2 -5
- metadata +1 -1
data/CHANGES.rdoc
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
|
2
2
|
= live_ast Changes
|
3
3
|
|
4
|
+
== Version 0.6.3
|
5
|
+
|
6
|
+
* minor change for Ruby 1.9.3
|
7
|
+
|
4
8
|
== Version 0.6.2
|
5
9
|
|
6
10
|
* simplified irb handling; readline no longer required
|
@@ -26,16 +30,7 @@
|
|
26
30
|
|
27
31
|
== Version 0.5.0
|
28
32
|
|
29
|
-
*
|
30
|
-
|
31
|
-
== Version 0.4.0 X yanked
|
32
|
-
|
33
|
-
* new parser plugin design to work around obscure autoload failure
|
34
|
-
|
35
|
-
== Version 0.3.0 X yanked
|
36
|
-
|
37
|
-
* parser is now an external plugin
|
38
|
-
* default parser has been moved to live_ast_ruby_parser gem
|
33
|
+
* new parser plugin API
|
39
34
|
|
40
35
|
== Version 0.2.3
|
41
36
|
|
data/lib/live_ast/loader.rb
CHANGED
@@ -43,7 +43,8 @@ module LiveAST
|
|
43
43
|
if file.index Linker::REVISION_TOKEN
|
44
44
|
raise "refusing to load file with revision token: `#{file}'"
|
45
45
|
end
|
46
|
-
search_paths(file) or
|
46
|
+
search_paths(file) or
|
47
|
+
raise LoadError, "cannot load such file -- #{file}"
|
47
48
|
end
|
48
49
|
|
49
50
|
def search_paths(file)
|
data/lib/live_ast/version.rb
CHANGED
data/test/load_path_test.rb
CHANGED
@@ -58,13 +58,10 @@ class AAA_LoadPathTest < BaseTest
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def compare_load_errors(file)
|
61
|
-
|
62
|
-
load file
|
63
|
-
end
|
64
|
-
live = assert_raises LoadError do
|
61
|
+
error = assert_raises LoadError do
|
65
62
|
LiveAST.load file
|
66
63
|
end
|
67
|
-
assert_equal
|
64
|
+
assert_equal "cannot load such file -- #{file}", error.message
|
68
65
|
end
|
69
66
|
|
70
67
|
def check_errors
|