travlrmap 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/config.ru +3 -1
- data/lib/travlrmap/sinatra_app.rb +1 -1
- data/lib/travlrmap/version.rb +1 -1
- metadata +3 -3
data/config.ru
CHANGED
@@ -7,6 +7,8 @@ require 'yaml'
|
|
7
7
|
|
8
8
|
set :run, false
|
9
9
|
|
10
|
-
|
10
|
+
APPROOT = File.dirname(__FILE__)
|
11
|
+
|
12
|
+
config = YAML.load_file(File.join(APPROOT, "config", "travlrmap.yaml"))
|
11
13
|
|
12
14
|
run Travlrmap::SinatraApp.new(config)
|
@@ -24,7 +24,7 @@ module Travlrmap
|
|
24
24
|
@points = []
|
25
25
|
|
26
26
|
Array(@config[:map][:data]).each do |map|
|
27
|
-
point_file = File.join(File.
|
27
|
+
point_file = File.join(File.join(APPROOT, "config", map))
|
28
28
|
data = YAML.load_file(point_file)
|
29
29
|
|
30
30
|
@points.concat(data[:points])
|
data/lib/travlrmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travlrmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R.I.Pienaar
|