helmsman 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e267300084ce4f8e33e158fa766cca8bba95aa84
4
- data.tar.gz: dbb9e507ec5b46d6b66c4b129af9b420924950ff
3
+ metadata.gz: 2c4b143c57977a78c91d041062e78e1630382b07
4
+ data.tar.gz: cd64f69c0b678199ca4aa8cbf68d1582a4ebd98b
5
5
  SHA512:
6
- metadata.gz: 2a7cb10fc14086ee58a315b956ea668ca8e57a93219680dab4dc649e56cb4af09e3fabcb2c4d211f96e3963b2427f1ca80799a198ed4cb1bb2acc3aab2c2931a
7
- data.tar.gz: b4321b2cb64cccc317653d2d6078bae3cfb37aedbed70388caeae852927d4716849817ae0bdc4d808dedb2d4b9661393bc1c7884cf0701cbad4381db61754869
6
+ metadata.gz: 762a534747d8cb1e80f412ead8ca1a5d85a5e9fca44a1690aa1019d1cb125d09cf70e8bec9c4d2d28fb9887b59f0cd63f9fe2cefd485058e7ecdda229f39a08f
7
+ data.tar.gz: bdf16c685f4510105d6c24cabde76514941db4dfb6ea850b6dcb5af29bba28864cd00b4e649d96b7b5c9d941106526e172bd7f704839dc14ac0b2ece2cc9877d
@@ -1,3 +1,3 @@
1
1
  module Helmsman
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -45,7 +45,7 @@ module Helmsman
45
45
  # Wrapped for clarification what that does.
46
46
  def helm_expand_i18n_key(key)
47
47
  if @helm_i18n_scope
48
- [@helm_i18n_scope, key].join('.')
48
+ [@helm_i18n_scope, key].join
49
49
  else
50
50
  scope_key_by_partial(key)
51
51
  end
@@ -127,7 +127,13 @@ describe Helmsman::ViewHelper do
127
127
  helper.helm_expand_i18n_key('picard').should eq 'i18n_path'
128
128
 
129
129
  helper.helm_i18n_scope 'captain' do
130
- helper.helm_expand_i18n_key('picard').should eq 'captain.picard'
130
+ helper.helm_expand_i18n_key('.picard').should eq 'captain.picard'
131
+ end
132
+ end
133
+
134
+ it 'is used by #helm in the end' do
135
+ helper.helm_i18n_scope 'captain' do
136
+ helper.helm(:picard, url: 'hello-jean-luc.com').to_s.should include 'captain.picard'
131
137
  end
132
138
  end
133
139
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helmsman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper