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.
@@ -3,7 +3,7 @@ module SimplesIdeias
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 1
6
+ PATCH = 2
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
  end
9
9
  end
@@ -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
 
@@ -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
- hash: 25
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-27 00:00:00 -03:00
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.7
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.