rack-app 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/VERSION +1 -1
- data/lib/rack/app/utils.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49d070f222f0b343601261cc9973ea9d40ae5cf0
|
4
|
+
data.tar.gz: 5b4e86d5c80ad7f7b1378502e4b805b35d6861f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162471909bed72184b5927fbb8df9c8bc3ba3d3c1b8ca910618883302042f048aa259d34daaa1645c491d0ebc5529d0963849bee92e2f137d900a6bac4687ab7
|
7
|
+
data.tar.gz: 46000c17a77422904a9d42f760ef61c604599c1ba51c508414bbe436b03bacc31d9068960534f72cb1c25468dd9429b101a83aa6b364183ac8b2c59e31774a22
|
data/README.md
CHANGED
@@ -222,8 +222,6 @@ the benchmarking was taken on the following hardware specification:
|
|
222
222
|
|
223
223
|
### number of declared endpoints: 100
|
224
224
|
|
225
|
-
### number of declared endpoints: 100
|
226
|
-
|
227
225
|
| name | version | current / fastest | real |
|
228
226
|
| ---------------------- | ---------------------- | ---------------------- | ---------------------- |
|
229
227
|
| rack | 1.6.4 | 1.0 | 1.6755999999997824e-06 |
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
data/lib/rack/app/utils.rb
CHANGED
@@ -60,7 +60,7 @@ module Rack::App::Utils
|
|
60
60
|
File.expand_path(File.join(File.dirname(caller[1]), file_path))
|
61
61
|
|
62
62
|
when /^[^\/]/
|
63
|
-
File.join(caller[1]
|
63
|
+
File.join(namespace_folder(caller[1]), file_path)
|
64
64
|
|
65
65
|
when /^\//
|
66
66
|
from_project_root_path = pwd(file_path)
|
@@ -70,4 +70,10 @@ module Rack::App::Utils
|
|
70
70
|
|
71
71
|
end
|
72
72
|
|
73
|
+
def namespace_folder(file_path_info)
|
74
|
+
basename = File.basename(file_path_info).split('.')[0]
|
75
|
+
directory = File.dirname(file_path_info)
|
76
|
+
File.join(directory,basename)
|
77
|
+
end
|
78
|
+
|
73
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-02-
|
12
|
+
date: 2016-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|