rack_router 0.1.1 → 0.1.2

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: c8e72c85ade27d635ea3bc2063949fe864b7ee3f5c9ce0eb2a95f4e92ec91f73
4
- data.tar.gz: f9c216f5264dddddceffc7494ec74c29205749de33a769d40d49dfb8c0b8f7a9
3
+ metadata.gz: 42ea7dd6da5bd0479b4fe1fc78015cdf3aa1c98339d9e513fd007926aca99f23
4
+ data.tar.gz: ac39e0cebaff77cdf71e03c4559a0245bda19363dfe5dd09d6a69059816c6117
5
5
  SHA512:
6
- metadata.gz: c04c8e275728eab66090bcc2dc17c97a89b7ba5fd0aaf541310a49a8df64c91c3e701356a126a85d81ddefc0e61d4f3b69dc3a8673076d6ab2028f7144f83721
7
- data.tar.gz: 06a3b54989a79f820141e9b0a766a782295b97d70142f80bc89d7a8092d2447cf72b084cce4ef873f716af6070a5ea1452d1240693a1ec2b8a3448e21b6e41ca
6
+ metadata.gz: fa049b09cef4c08e651e65d673005229d3f470c63bcc4081d23bc8d089bef62cda0693427d9e89048791ef2081cb00ecd0d7d29ff52f2904c9bacd0c3518fc92
7
+ data.tar.gz: 339640dacd05738fab7f21220bf216dcc607871afc788fa5a2598419ee663d9f2925068ed53cf2444267a226ac1a761a6feb5c8564e129901e2fc15f2b8d4acd
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /Gemfile.lock
10
+ /vendor/bundle/
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 0.1.2 (2020-01-12)
6
+ * Middleware fix route definition w/o namespace
7
+
3
8
  ## 0.1.1 (2020-01-10)
4
9
  * print route add leading slash to path
5
10
 
@@ -88,7 +88,7 @@ module Rack
88
88
  # :content_type [Array<String>,String]
89
89
  def define_path(http_method, path, value, options = {})
90
90
  options = @current_options.dup.merge(options)
91
- path = [@current_path, path].reject(&:empty?).join('/')
91
+ path = [@current_path, path].compact.join('/')
92
92
  @routes.add(http_method, path, value, options)
93
93
  end
94
94
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Router
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack