dragoman 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a203343dac859415cb421f222a4ca5be311f540d
4
- data.tar.gz: e38180d72757b4752bc88ffcfa6e7fd38115a8b4
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWIwNWViZWVkYjQxNmRkYzA3OTE3YWQwMWZkMzgzOGUzNjI2ZTg0Yw==
5
+ data.tar.gz: !binary |-
6
+ ZWRmYWFmM2FiNjYzYWI1ZWUxOWZlMTM3NzIwY2EwMzA5MzU4ZDI4Yw==
5
7
  SHA512:
6
- metadata.gz: 2377cbbd03c6ea5c8fedce7a3e9943632bb2f62ac1c5a503100ee7bf7d580b046ee80b8d06da086d793f849454ebe707dcff0c20d0fdc4690892d7e8efad8bfa
7
- data.tar.gz: 738305615fa10ed287b2889cb71991642515b00b0b3fe33c39603918c382fe6fe670c1351232b65f38b40bdc36a05120312491639d5678b8bb3f23e5634d435d
8
+ metadata.gz: !binary |-
9
+ NWUwOWY0Nzc3MDE0YWE3NWRmMGMxMzczZGNmYjUwMjhhZjQxMGU1YzUyZjc3
10
+ ODFkZDA4ZWMxNjUzMmM3YmNmNGE5ZDQzY2QyMzEzZjcwOTZkODhkZjZiYmMx
11
+ NWVlZDUyYmY3NmQxOWJiMTVhNWEyMWU3MmNhM2RhODcwMTJhNjM=
12
+ data.tar.gz: !binary |-
13
+ YzhhZDM0NWQxZDdiOGIzMTI1Y2FlM2VkMmExZDgxODMyZGI5ZjNhY2NmMjdj
14
+ NmZmOGM1ZjA1YTQ0ZmRjMjI1M2QwZTRmNzVkZDdmN2U0Y2M1N2RmZjYyNzQ4
15
+ ZTE4MTAwNTRmNzI0ZDI0NjRhYTAxODFiODRjZTlmZjhlOGFlNjM=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dragoman
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -67,9 +67,10 @@ describe 'routes' do
67
67
  expect(chairs_en_path).to eq '/seats'
68
68
  end
69
69
 
70
- it 'translated shallow paths' do
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.7
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-11 00:00:00.000000000 Z
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.0.14
95
+ rubygems_version: 2.4.6
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Simple Rails Routes Translator