polyglot 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- msg = "Failed to load #{file} using extensions #{(@registrations.keys+["rb"]).sort*", "}"
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
@@ -1,8 +1,8 @@
1
1
  module Polyglot #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 2
5
- TINY = 9
4
+ MINOR = 3
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.2.9
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: 2009-09-13 00:00:00 +10:00
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.2
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