turf 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/turf/lookup.rb +3 -3
- data/lib/turf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b39c02dd9ec1dc4472ff3fa74cc70797f6c8a544
|
4
|
+
data.tar.gz: e2d9a03594b4b3253b1ee43922eb94742504f35d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d32673e4351c02d6674a3b9d89eb5990e942f447f7793f4de43ea08b83d27367b34e3fc4e9bd3edc9ea6a00940a9c15dc6e7c6dcb52443737cad6f410f005c0
|
7
|
+
data.tar.gz: fbae9bb389c2de03fc57bd535f281185b7817389ad236bc278a76ef9aa7534674f9864d4dccbb671cb69b2f207e9dfdca9f7b705a4597a7b05c6fddd3ffd3fcf
|
data/lib/turf/lookup.rb
CHANGED
@@ -2,13 +2,13 @@ module Turf; class Lookup
|
|
2
2
|
|
3
3
|
def find(message)
|
4
4
|
if local_class && default_class
|
5
|
-
|
6
|
-
raise
|
5
|
+
m = "The following methods are defined in the #{local_class} class but not the #{default_class} class: #{methods_in_local_and_not_default.join(', ')}. All methods defined in #{local_class} must also be defined in #{default_class}."
|
6
|
+
raise m unless methods_in_local_and_not_default.empty?
|
7
7
|
end
|
8
|
-
raise "No Turf classes found... these must be defined and required" if classes.empty?
|
9
8
|
lookup_path.each do |obj|
|
10
9
|
return obj.send(message) if obj.respond_to?(message)
|
11
10
|
end
|
11
|
+
raise "No Turf classes found... these must be defined and required" if classes.empty?
|
12
12
|
raise NoMethodError, "The #{message} method could not be found in any of these Turf configuration classes: #{classes.join(", ")}"
|
13
13
|
end
|
14
14
|
|
data/lib/turf/version.rb
CHANGED