touringplans 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/lib/touringplans/version.rb +1 -1
- data/lib/touringplans.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4a5e0a87f8867cbaa7be8227ac9eb882f54f31cebcd2c6ecb41349ef2771bbe
|
4
|
+
data.tar.gz: 862facc7e52628971cef5a425647537a11558329acc81856c7854a246a7ce39f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3471c89d2e5486077d1b133578fad58bdb0be3d0db12fb72a98e9864f86e4a8a078599ccca7b9ea25d58ede468e8d1136da3ced631114344d63eeae31c64bff8
|
7
|
+
data.tar.gz: fa0d2478a3b533959a056e7656223d7e659fd356848edc13ecfec6a579be5e448402fb087fe63079edee9b8423e57103579c88bcc4913c6670e3ba262f2cd382
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
data/lib/touringplans/version.rb
CHANGED
data/lib/touringplans.rb
CHANGED
@@ -211,11 +211,8 @@ module Touringplans
|
|
211
211
|
}
|
212
212
|
end
|
213
213
|
|
214
|
-
def self.load_routes_file(routes_relative_file_path: "/
|
215
|
-
tp_path = $LOAD_PATH.grep(/touringplans/).
|
216
|
-
tp_path.reject! {|k| k=="spec"}
|
217
|
-
tp_path.pop
|
218
|
-
tp_path = tp_path.join("/")
|
214
|
+
def self.load_routes_file(routes_relative_file_path: "/routes.yml")
|
215
|
+
tp_path = $LOAD_PATH.grep(/touringplans/).last
|
219
216
|
routes_file = "#{tp_path}#{routes_relative_file_path}"
|
220
217
|
YAML.load(File.read(routes_file))
|
221
218
|
end
|