polyglot 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyglot.rb +2 -7
- data/lib/polyglot/version.rb +2 -2
- metadata +3 -3
data/lib/polyglot.rb
CHANGED
@@ -4,7 +4,7 @@ require 'pathname'
|
|
4
4
|
module Polyglot
|
5
5
|
@registrations ||= {} # Guard against reloading
|
6
6
|
@loaded ||= {}
|
7
|
-
|
7
|
+
|
8
8
|
class PolyglotLoadError < LoadError; end
|
9
9
|
|
10
10
|
class NestedLoadError < LoadError
|
@@ -52,12 +52,7 @@ module Polyglot
|
|
52
52
|
raise Polyglot::NestedLoadError.new(e)
|
53
53
|
end
|
54
54
|
else
|
55
|
-
|
56
|
-
if defined?(MissingSourceFile)
|
57
|
-
raise MissingSourceFile.new(msg, file)
|
58
|
-
else
|
59
|
-
raise PolyglotLoadError.new(msg)
|
60
|
-
end
|
55
|
+
raise PolyglotLoadError.new("Failed to load #{file} using extensions #{(@registrations.keys+["rb"]).sort*", "}")
|
61
56
|
end
|
62
57
|
end
|
63
58
|
end
|
data/lib/polyglot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyglot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clifford Heath
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-14 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.3.
|
23
|
+
version: 2.3.3
|
24
24
|
version:
|
25
25
|
description: Allows custom language loaders for specified file extensions to be hooked into require
|
26
26
|
email: cjheath@rubyforge.org
|