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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -2
  3. data/VERSION +1 -1
  4. data/lib/rack/app/utils.rb +7 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eef3953a3332ea814c75249e84d9d496659749e
4
- data.tar.gz: 6f084a0cdd793f5daffc8c7af117317cc3afbe6a
3
+ metadata.gz: 49d070f222f0b343601261cc9973ea9d40ae5cf0
4
+ data.tar.gz: 5b4e86d5c80ad7f7b1378502e4b805b35d6861f8
5
5
  SHA512:
6
- metadata.gz: d250a0e12315ed15bbba94ed26d6c7a77b1a13f434e738035598876b026526b2b4aea8a932489bba1b6884b44250591fadff9cd80476eb669153e4df7a75e3de
7
- data.tar.gz: bbbca7aaacdc2b0aaac3af529b097f1311a548ed877b577f55a9798f8454abe408c6a63cfb8765b2bed5df7e4f78a13253b778a1e0bee7a8dd7321bbb4492c4c
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
+ 1.2.2
@@ -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].split(/\.(?:rb|ru)/)[0], file_path)
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.1
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-26 00:00:00.000000000 Z
12
+ date: 2016-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler