dragoman 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/lib/dragoman/mapper.rb +1 -1
- data/lib/dragoman/version.rb +1 -1
- data/spec/routing/routes_spec.rb +2 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NWIwNWViZWVkYjQxNmRkYzA3OTE3YWQwMWZkMzgzOGUzNjI2ZTg0Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWRmYWFmM2FiNjYzYWI1ZWUxOWZlMTM3NzIwY2EwMzA5MzU4ZDI4Yw==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWUwOWY0Nzc3MDE0YWE3NWRmMGMxMzczZGNmYjUwMjhhZjQxMGU1YzUyZjc3
|
10
|
+
ODFkZDA4ZWMxNjUzMmM3YmNmNGE5ZDQzY2QyMzEzZjcwOTZkODhkZjZiYmMx
|
11
|
+
NWVlZDUyYmY3NmQxOWJiMTVhNWEyMWU3MmNhM2RhODcwMTJhNjM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzhhZDM0NWQxZDdiOGIzMTI1Y2FlM2VkMmExZDgxODMyZGI5ZjNhY2NmMjdj
|
14
|
+
NmZmOGM1ZjA1YTQ0ZmRjMjI1M2QwZTRmNzVkZDdmN2U0Y2M1N2RmZjYyNzQ4
|
15
|
+
ZTE4MTAwNTRmNzI0ZDI0NjRhYTAxODFiODRjZTlmZjhlOGFlNjM=
|
data/lib/dragoman/mapper.rb
CHANGED
@@ -2,7 +2,7 @@ module Dragoman
|
|
2
2
|
module Mapper
|
3
3
|
def localize
|
4
4
|
@locales = I18n.available_locales
|
5
|
-
scope '(:locale)', defaults: {dragoman_options: {locales: @locales}} do
|
5
|
+
scope '(:locale)', shallow_path: '(:locale)', defaults: {dragoman_options: {locales: @locales}} do
|
6
6
|
yield
|
7
7
|
end
|
8
8
|
@locales = nil
|
data/lib/dragoman/version.rb
CHANGED
data/spec/routing/routes_spec.rb
CHANGED
@@ -67,9 +67,10 @@ describe 'routes' do
|
|
67
67
|
expect(chairs_en_path).to eq '/seats'
|
68
68
|
end
|
69
69
|
|
70
|
-
it '
|
70
|
+
it 'translates shallow paths' do
|
71
71
|
expect(driver_nl_path(id: 3)).to eq '/snelle/bestuurders/3'
|
72
72
|
expect(driver_en_path(id: 3)).to eq '/fast/drivers/3'
|
73
|
+
expect(driver_en_path(id: 3, locale: 'en')).to eq '/en/fast/drivers/3'
|
73
74
|
end
|
74
75
|
|
75
76
|
it 'skips blank translations' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragoman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pieter Visser
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - '>='
|
18
|
+
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - '>='
|
25
|
+
- - ! '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: guard-rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - '>='
|
32
|
+
- - ! '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - '>='
|
39
|
+
- - ! '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description:
|
@@ -82,17 +82,17 @@ require_paths:
|
|
82
82
|
- lib
|
83
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - '>='
|
85
|
+
- - ! '>='
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - '>='
|
90
|
+
- - ! '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.4.6
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Simple Rails Routes Translator
|