subdomain_locale 1.0.beta3 → 1.0.beta4
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/subdomain_locale/mapping.rb +1 -1
- data/subdomain_locale.gemspec +1 -1
- data/test/mapping_test.rb +5 -3
- data/test/rails_test.rb +1 -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: fdc1524b2a958bfe398f7f91a1f6d1890008aab9
|
4
|
+
data.tar.gz: fac92758a062f7d198f9c474424be5742838abf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85ba896d50772f6e452bfb6142eb71f6ecc0fe6ecae13e1e2fa474e3dddcc9df47840b57a2f1beb088c547d9d3f4aa7c3871ffb76adb2d30975facb6a94d8c6c
|
7
|
+
data.tar.gz: e84bfe39c6bc408828f14e186edde19a0c971588ef6b5af867a78639573bbb1d11d6f000b9e0be91d8558cca1fe03f941de81a52c1ee6631bcb282425e6a1dcc
|
data/subdomain_locale.gemspec
CHANGED
data/test/mapping_test.rb
CHANGED
@@ -21,11 +21,13 @@ class MappingTest < MiniTest::Unit::TestCase
|
|
21
21
|
# request.subdomain returns "" for test.host
|
22
22
|
assert_equal "en", @mapping.locale_for("")
|
23
23
|
|
24
|
-
# ""
|
25
|
-
|
24
|
+
# url_for(subdomain: "") => ".test.host"
|
25
|
+
# url_for(subdomain: nil) => "test.host" in Rails 4, "current.test.host" in Rails 3
|
26
|
+
# url_for(subdomain: false) => "test.host"
|
27
|
+
assert_equal false, @mapping.subdomain_for(:en)
|
26
28
|
end
|
27
29
|
|
28
30
|
def test_nil
|
29
|
-
|
31
|
+
assert_equal false, @mapping.subdomain_for(nil)
|
30
32
|
end
|
31
33
|
end
|
data/test/rails_test.rb
CHANGED