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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18bdc82546dc61c15dedbeea0caa0c42d9337d98c19cd090f92aae6ee04bfa82
4
- data.tar.gz: c8ac7e30d3b70db10ecbf5d9b36b9b893ab594459a193754d4e605567f1a8c1c
3
+ metadata.gz: b4a5e0a87f8867cbaa7be8227ac9eb882f54f31cebcd2c6ecb41349ef2771bbe
4
+ data.tar.gz: 862facc7e52628971cef5a425647537a11558329acc81856c7854a246a7ce39f
5
5
  SHA512:
6
- metadata.gz: e2f3c1221c397553267e76725e270ec4643c0ba0642b2d59809b07e82c3a9d10cb33af39a441092f43b425f1c2a75a8628419065d031abe0a83c7f8bf406d7dd
7
- data.tar.gz: 4b5f1dbb102c6391540c1354cfaea06fdc2750824f3ae5815f591645c0a242ac8d106aaef9752f73097b4274d79459474139a63810eed56171719aea27ece75d
6
+ metadata.gz: 3471c89d2e5486077d1b133578fad58bdb0be3d0db12fb72a98e9864f86e4a8a078599ccca7b9ea25d58ede468e8d1136da3ced631114344d63eeae31c64bff8
7
+ data.tar.gz: fa0d2478a3b533959a056e7656223d7e659fd356848edc13ecfec6a579be5e448402fb087fe63079edee9b8423e57103579c88bcc4913c6670e3ba262f2cd382
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Touringplans
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.9"
5
5
  end
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: "/lib/routes.yml")
215
- tp_path = $LOAD_PATH.grep(/touringplans/).first.split("/")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: touringplans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - captproton