dryer_routes 0.2.1 → 0.2.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: b1eeae5f0fc8aedeb1206fe5cf82eb40adbe9a111ba61cd8ca8b3e7b91131a12
4
- data.tar.gz: 41af9d49fbbe513df716b53b7c2fad558e0917f81d922655ee26274cb0415dcf
3
+ metadata.gz: 4a133f0a65c2b005f047880978e21502314b61d5a2553c75fa08cebf7059a2f2
4
+ data.tar.gz: 2d6c30dcaa3d7558b9544e3bea8c999f67d334f2d62c21a9d43a511747cc1dac
5
5
  SHA512:
6
- metadata.gz: 3ef95e5e70df6a9c19204a20b207351ddcaa27fcf74a55171771be603835d7c48ed24e3e9bc07a632118ff70ca54789314c7ba43a0a92a2017f5de5d1338344e
7
- data.tar.gz: e16921263a026ee8ca3543231afb24230174f6f5deed7535a1ff137bc7fb626b318ef64bd036d9a4a00910a8c6837fff1a3d17e8fc7632ac175e17775e8abb1c
6
+ metadata.gz: 5f31bd2c263ed221cda9edb8adda25a202c02046db8657977d96456700cb09fa3e6e383e3c3e0d15e3edd7efe5771fc3d0d6d53e9fc0b5799ae5724c7ba1292d
7
+ data.tar.gz: 243599ab47690a8a38a77d70d78650a179a49b7027880dc0662999cc16e814e0206315f2c93a7f88639f07041b7fbcac5cc9ece7708aa4e05b7641133b5082fd
data/dryer_routes.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'dryer_routes'
3
- spec.version = "0.2.1"
3
+ spec.version = "0.2.2"
4
4
  spec.authors = ['John Bernier']
5
5
  spec.email = ['john.b.bernier@gmail.com']
6
6
  spec.summary = 'Typed routing for rails leveraging dry-validation contracts'
@@ -11,8 +11,8 @@ module Dryer
11
11
  @routes = []
12
12
  end
13
13
 
14
- def register(resources)
15
- resources = resources.is_a?(Array) ? resources : [resources]
14
+ def register(*resources)
15
+ resources = resources[0].is_a?(Array) ? resources[0] : resources
16
16
  validate_resources!(resources)
17
17
  @resources = resources
18
18
  @routes = resources.map do |r|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryer_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bernier