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 +4 -4
- data/lib/lb/project/route.rb +3 -2
- data/lib/lb/project/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1937238c02f63f77f45ef5da60e9e04485e5faff62c9fcbd6cf410a92eeb13f2
|
4
|
+
data.tar.gz: 2553dbed4c9aa75ac15b6e85959b28eb1282ffec5892663bf42289e66c70a6d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0c2463b50affb6246c4304072491e7466e166d46ad5acf3c331e77aa02f178efb49001e30712b2623e385abf0dd6c9c4c9c1a11840932e6f686d56cb3b5402
|
7
|
+
data.tar.gz: fa3fbae6bef10d659d71b94c594ba438f2458d47ede37eedc17ed4fdac028be7ae5de721088a4ddd07c2ca8e3e4ad2d176c3cab2748b32925e80f538a7d8cc94
|
data/lib/lb/project/route.rb
CHANGED
@@ -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,
|
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
|
data/lib/lb/project/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-initializer
|