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 +4 -4
- data/lib/helmsman/version.rb +1 -1
- data/lib/helmsman/view_helper.rb +1 -1
- data/spec/lib/helmsman/view_helper_spec.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c4b143c57977a78c91d041062e78e1630382b07
|
|
4
|
+
data.tar.gz: cd64f69c0b678199ca4aa8cbf68d1582a4ebd98b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 762a534747d8cb1e80f412ead8ca1a5d85a5e9fca44a1690aa1019d1cb125d09cf70e8bec9c4d2d28fb9887b59f0cd63f9fe2cefd485058e7ecdda229f39a08f
|
|
7
|
+
data.tar.gz: bdf16c685f4510105d6c24cabde76514941db4dfb6ea850b6dcb5af29bba28864cd00b4e649d96b7b5c9d941106526e172bd7f704839dc14ac0b2ece2cc9877d
|
data/lib/helmsman/version.rb
CHANGED
data/lib/helmsman/view_helper.rb
CHANGED
|
@@ -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
|