i18n-js 0.1.1 → 0.1.2
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.
- data/lib/i18n-js/version.rb +1 -1
- data/source/i18n.js +0 -2
- data/test/i18n_js_test.rb +0 -2
- metadata +5 -17
data/lib/i18n-js/version.rb
CHANGED
data/source/i18n.js
CHANGED
@@ -84,9 +84,7 @@ I18n.interpolate = function(message, options) {
|
|
84
84
|
var placeholder, value, name;
|
85
85
|
|
86
86
|
for (var i = 0; placeholder = matches[i]; i++) {
|
87
|
-
console.debug(placeholder)
|
88
87
|
name = placeholder.replace(this.PLACEHOLDER, "$1");
|
89
|
-
console.debug(name)
|
90
88
|
|
91
89
|
value = options[name];
|
92
90
|
|
data/test/i18n_js_test.rb
CHANGED
@@ -132,7 +132,6 @@ class I18nJSTest < ActiveSupport::TestCase
|
|
132
132
|
end
|
133
133
|
|
134
134
|
test "sorted hash" do
|
135
|
-
assert_not_equal [:a, :b, :c], {:b => 1, :a => 2, :c => 3}.keys
|
136
135
|
assert_equal [:a, :b, :c], SimplesIdeias::I18n.sorted_hash(:b => 1, :a => 2, :c => 3).keys
|
137
136
|
end
|
138
137
|
|
@@ -141,7 +140,6 @@ class I18nJSTest < ActiveSupport::TestCase
|
|
141
140
|
:foo => {:b => 1, :a => 2, :c => 3}
|
142
141
|
}
|
143
142
|
|
144
|
-
assert_not_equal [:a, :b, :c], hash[:foo].keys
|
145
143
|
assert_equal [:a, :b, :c], SimplesIdeias::I18n.sorted_hash(hash[:foo]).keys
|
146
144
|
end
|
147
145
|
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
4
|
+
version: 0.1.2
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Nando Vieira
|
@@ -15,7 +9,7 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2010-07-
|
12
|
+
date: 2010-07-28 00:00:00 -03:00
|
19
13
|
default_executable:
|
20
14
|
dependencies: []
|
21
15
|
|
@@ -60,27 +54,21 @@ rdoc_options:
|
|
60
54
|
require_paths:
|
61
55
|
- lib
|
62
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
57
|
requirements:
|
65
58
|
- - ">="
|
66
59
|
- !ruby/object:Gem::Version
|
67
|
-
hash: 3
|
68
|
-
segments:
|
69
|
-
- 0
|
70
60
|
version: "0"
|
61
|
+
version:
|
71
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
63
|
requirements:
|
74
64
|
- - ">="
|
75
65
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
|
-
segments:
|
78
|
-
- 0
|
79
66
|
version: "0"
|
67
|
+
version:
|
80
68
|
requirements: []
|
81
69
|
|
82
70
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.3.
|
71
|
+
rubygems_version: 1.3.5
|
84
72
|
signing_key:
|
85
73
|
specification_version: 3
|
86
74
|
summary: It's a small library to provide the Rails I18n translations on the Javascript.
|