rack-app 6.3.3 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f089a4d2ed5cdfb657ba10a370141d3e8bf4198
4
- data.tar.gz: f793dd7ea8c77f8ede4a5d38aeca28df7c15e2fa
3
+ metadata.gz: 532dcb901ab87ca1055099a748cf104042364462
4
+ data.tar.gz: bf8980919f0a559277ea054ada3b31a2519c2e9a
5
5
  SHA512:
6
- metadata.gz: fe419fe00fc35110dba7711c06164a4d094bcc8abfb4a5555ee86b6ecd56d3ea6070845252555ec88c7f85a728304bbc0736b84e6f95aaae4ebab863dd36a349
7
- data.tar.gz: 2615889d936650b232f20f74ae1cbf89cf892bd2634716a70f2c18b37df41c2d0b28a34b41c0f9c751ec6927684f0343852141d53b47ae166d0ec31d60eb7879
6
+ metadata.gz: 8864a85609a129bd85b3018b16898e9a3554dd22919fc2c9bfe104fdabb64138f765c52c325403519435eb7fdf1cf4a6e8f5aa6d8fb6e906701f765f0d1ceb9f
7
+ data.tar.gz: bbed29c8bdf2875b2f658d0bb7c549878c585fca15238763dfc9cc9300adf79ff44a7e127760aacfb9edd290447acaafd449cc2448d95e12c771d138cb72dd06
@@ -1,2 +1,4 @@
1
1
  Style/HashSyntax:
2
2
  Enabled: false
3
+ Style/FrozenStringLiteralComment:
4
+ Enabled: false
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.3.3
1
+ 6.4.0
@@ -31,7 +31,7 @@ module Rack::App::SingletonMethods::RouteHandling
31
31
  :request_method => request_method,
32
32
  :route => route_registration_properties.dup,
33
33
  :endpoint_specific_middlewares => next_endpoint_middlewares.dup,
34
- :request_path => ::Rack::App::Utils.join(@namespaces, request_path)
34
+ :request_path => ::Rack::App::Utils.join(namespace, request_path)
35
35
  })
36
36
  )
37
37
 
@@ -41,13 +41,12 @@ module Rack::App::SingletonMethods::RouteHandling
41
41
 
42
42
  end
43
43
 
44
- def namespace(request_path_namespace)
45
- return unless block_given?
44
+ def namespace(*namespace_paths)
46
45
  @namespaces ||= []
47
- @namespaces.push(request_path_namespace)
48
- yield
49
- ensure
46
+ @namespaces.push(namespace_paths)
47
+ yield if block_given?
50
48
  @namespaces.pop
49
+ ::Rack::App::Utils.join(@namespaces.flatten)
51
50
  end
52
51
 
53
52
  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: 6.3.3
4
+ version: 6.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi