trackerific 0.5.1 → 0.5.2
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.
- data/VERSION +1 -1
- data/lib/trackerific.rb +3 -2
- data/trackerific.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/lib/trackerific.rb
CHANGED
@@ -19,7 +19,8 @@ module Trackerific
|
|
19
19
|
# @api private
|
20
20
|
def services
|
21
21
|
# a service is any Trackerific class that descends from Trackerific::Service
|
22
|
-
|
22
|
+
# [:UPS, :FedEx, :USPS, :MockService]
|
23
|
+
@services ||= Trackerific.constants.reject { |const|
|
23
24
|
const unless Trackerific.const_get(const).superclass == Trackerific::Service
|
24
25
|
}
|
25
26
|
end
|
@@ -53,7 +54,7 @@ module Trackerific
|
|
53
54
|
cls.package_id_matchers.each do |matcher|
|
54
55
|
# return this class if the regular expression matches
|
55
56
|
return cls if package_id =~ matcher
|
56
|
-
end
|
57
|
+
end unless cls.package_id_matchers.nil?
|
57
58
|
end
|
58
59
|
# if we've made it this far, nothing matched
|
59
60
|
nil
|
data/trackerific.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Travis Haynes
|
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
239
|
requirements:
|
240
240
|
- - ">="
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
hash:
|
242
|
+
hash: 3953357878618140196
|
243
243
|
segments:
|
244
244
|
- 0
|
245
245
|
version: "0"
|