lb-project 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
  SHA256:
3
- metadata.gz: '06996fcfa5635e9e17d9a7e9468caaba7202076f3830b5f7b8b410e2b383fc3f'
4
- data.tar.gz: 6fb9a7e95fa4add0ee698c483b3411b805fda49be01884f5f12374b7b0f0a9ce
3
+ metadata.gz: 1937238c02f63f77f45ef5da60e9e04485e5faff62c9fcbd6cf410a92eeb13f2
4
+ data.tar.gz: 2553dbed4c9aa75ac15b6e85959b28eb1282ffec5892663bf42289e66c70a6d8
5
5
  SHA512:
6
- metadata.gz: 469efbc9289a0daf4da1faf2f599a9e834b270586b7563709d7d0bad085f8ea38575c2434e38d5ee0c53d1ec58c9542a3b79dc884f9eb5c2c9ae56c7df685696
7
- data.tar.gz: b061f346767b0eafd36ded6583aee10e446744ec549f317fc9d1ade3ad1af070b611d063c905b1ef95a2b0ece774bb98b70fb6c805e0067aca54b6fd80c45a49
6
+ metadata.gz: ec0c2463b50affb6246c4304072491e7466e166d46ad5acf3c331e77aa02f178efb49001e30712b2623e385abf0dd6c9c4c9c1a11840932e6f686d56cb3b5402
7
+ data.tar.gz: fa3fbae6bef10d659d71b94c594ba438f2458d47ede37eedc17ed4fdac028be7ae5de721088a4ddd07c2ca8e3e4ad2d176c3cab2748b32925e80f538a7d8cc94
@@ -4,9 +4,10 @@ module LB
4
4
  module Project
5
5
  # Base route
6
6
  class Route < Roda
7
- def self.setup(route)
7
+ def self.setup(route, options = { locale: ['en'] })
8
8
  translations = [File.join(LB::Project.root, 'locales')]
9
- route.plugin :i18n, translations: translations
9
+ route.plugin :i18n, locale: options.fetch(:locale),
10
+ translations: translations
10
11
  route.opts[:root] = LB::Project.root
11
12
  route.plugin :public, root: LB::Project.config.public_path
12
13
  route.plugin :flash
@@ -3,6 +3,6 @@
3
3
  module LB
4
4
  module Project
5
5
  # Version
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lb-project
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
  - Firas Zaidan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-initializer