turf 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6f1cf7875d4d9db0778ae29ca025522bf166e3f
4
- data.tar.gz: 9f658cf540f44dfbe624bf24d9d7ed0e4af12acd
3
+ metadata.gz: b39c02dd9ec1dc4472ff3fa74cc70797f6c8a544
4
+ data.tar.gz: e2d9a03594b4b3253b1ee43922eb94742504f35d
5
5
  SHA512:
6
- metadata.gz: 5c87c2814e2f9722ec0bdf49b941448f16f2d835079d14df71131ba43eeb48d4ba1fc4be3c9bb986bd1514624a7474523ff482dfdccc0c79cf9930fd173fdaea
7
- data.tar.gz: 897e6c7d35812cdf0f8cc6aaef61dea28ec6e1fe20a7b63767056e32377788c7a000d0368bd191a007992aa86791a5eb7e3214e407f9d32377d2251fd0b381f8
6
+ metadata.gz: 3d32673e4351c02d6674a3b9d89eb5990e942f447f7793f4de43ea08b83d27367b34e3fc4e9bd3edc9ea6a00940a9c15dc6e7c6dcb52443737cad6f410f005c0
7
+ data.tar.gz: fbae9bb389c2de03fc57bd535f281185b7817389ad236bc278a76ef9aa7534674f9864d4dccbb671cb69b2f207e9dfdca9f7b705a4597a7b05c6fddd3ffd3fcf
@@ -2,13 +2,13 @@ module Turf; class Lookup
2
2
 
3
3
  def find(message)
4
4
  if local_class && default_class
5
- message = "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 message unless methods_in_local_and_not_default.empty?
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
 
@@ -1,3 +1,3 @@
1
1
  module Turf
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MrPowers