friendly_routes 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 77ed12df2420528a82f7ed13566099b1d72a95e8
4
- data.tar.gz: 24b3222a6adc594631e82b6000773b4f373daac6
3
+ metadata.gz: 1b41c57c0c6f008e93b285d2155b9935b40ae944
4
+ data.tar.gz: 3c94897029301dc6a4bb7714c63aaef281738456
5
5
  SHA512:
6
- metadata.gz: 95ab4a5e21c0d7f81b3f3cf3bbb137b776bee0aa59eb8a1f2c381e466b2bddf9a5157556437cadb565316493bd293f0c8da9da9aef6ae53c22514bb0b40548e7
7
- data.tar.gz: 6fcc0e2a5ad78d02ce560233d2687d5116d8ca840af4d1684ef638ee5c16602584d5e2a8516f36e0a2c8dcc83ec76f578acb462306cba4cc2fe85d6cf59ffd94
6
+ metadata.gz: aef2af7a72e8cceda3cec4acf3f5f61777f1d3ac38a0c5bb9b45dcfb3583e953c57930858ba870657eeda23d19665b52e3bb99d568de3ae68eb11f2a828f7949
7
+ data.tar.gz: c453204219e880474f4359556a07c917ece94d6decf0a0927d53d71ef3052ffc58e92c25d0a25b09024d30784c0652002ea17fd4fef526050312efd684010f6a
@@ -4,8 +4,8 @@ module FriendlyRoutes
4
4
  class Route
5
5
  attr_accessor :method, :params, :prefix
6
6
 
7
- def initialize(prefix: 'friendly_routes')
8
- @params = []
7
+ def initialize(params = [], prefix: 'friendly_routes')
8
+ @params = params
9
9
  @prefix = prefix
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyRoutes
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Gritsay