i18n_plus 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2134e91545ff3bc1a416b49b597b960874242ada
4
- data.tar.gz: 00b35a09990f9e5e7f8b7bef617c159c05282489
3
+ metadata.gz: d846b4e2848b9aef2c957d8340029b9a870f3600
4
+ data.tar.gz: a92afb665d7632541e89ab72b352c7820c9e71f5
5
5
  SHA512:
6
- metadata.gz: 86e47aef9e84474b58b7c1b846f13914d2705566f956c50acc724bb71669f1aaf6cc823fc22255ecb1e08e581f9651a5c0f7a987e7e84a2902f1453cf8badbe1
7
- data.tar.gz: e1fe7080009999952ae974de5a277e4f524777c9c11b705254b12c9e52dabe2216e5065e224ff7ee116f67bb8bb521295551ec5a89d51b18098a759941eb80a0
6
+ metadata.gz: cfe55a4be97a2b84b09709e85b7e437410699199f5ca74bf6296e713197cc092200f57e5946e49d29207b4afedf235b6a58776e1048121e6f966866f292e68d1
7
+ data.tar.gz: 4cfb12ea8cd0012aea8131e0337e1b9b3acc2dc412632e990390cfa15399217bd714aba3afad5ef1607651aed51ebb8c756c3efbdaaf4d11bf752a3e14bdf0b0
@@ -1,3 +1,15 @@
1
+ # 0.3.1, release 2015-07-21
2
+
3
+ * Require Rails 4.2 at minimum
4
+
5
+ # 0.3.0, release 2015-07-21
6
+
7
+ * Update gems.
8
+ * Fix problem with json 1.7.7 being required.
9
+ * Rails 4.1 enforces available locales. Turn it off for the tests.
10
+ See http://edgeguides.rubyonrails.org/4_1_release_notes.html and
11
+ search for I18n.enforce_available_locales.
12
+
1
13
  # 0.2.0, release 2013-08-06
2
14
 
3
15
  * Rails 4 updates
@@ -1,3 +1,3 @@
1
1
  module I18nPlus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -89,7 +89,7 @@ class CountryTest < ActiveSupport::TestCase
89
89
  if ActiveSupport::VERSION::STRING < '4.0'
90
90
  match = /<select id="account_country" name="account\[country\]"><option value="DE" selected="selected">Germany<\/option><option value="" disabled="disabled">----------<\/option>/
91
91
  else
92
- match = /<select id="account_country" name="account\[country\]"><option selected="selected" value="DE">Germany<\/option><option value="" disabled="disabled">----------<\/option>/
92
+ match = /<select name="account\[country\]" id="account_country"><option selected="selected" value="DE">Germany<\/option><option value="" disabled="disabled">----------<\/option>/
93
93
  end
94
94
  assert_match match, country_select(@account, :country, 'DE').gsub(/\n/, '')
95
95
  end
@@ -64,7 +64,7 @@ class CurrencyTest < ActiveSupport::TestCase
64
64
  if ActiveSupport::VERSION::STRING < '4.0'
65
65
  match = /<select id="account_currency" name="account\[currency\]"><option value="EUR" selected="selected">EUR \(€\)<\/option><option value="" disabled="disabled">----------<\/option>/
66
66
  else
67
- match = /<select id="account_currency" name="account\[currency\]"><option selected="selected" value="EUR">EUR \(€\)<\/option><option value="" disabled="disabled">----------<\/option>/
67
+ match = /<select name="account\[currency\]" id="account_currency"><option selected="selected" value="EUR">EUR \(€\)<\/option><option value="" disabled="disabled">----------<\/option>/
68
68
  end
69
69
  assert_match match, currency_select(@account, :currency, 'EUR').gsub(/\n/, '')
70
70
  end
@@ -62,7 +62,7 @@ class LanguageTest < ActiveSupport::TestCase
62
62
  if ActiveSupport::VERSION::STRING < '4.0'
63
63
  match = /<select id="account_language" name="account\[language\]"><option value="DE" selected="selected">German<\/option><option value="" disabled="disabled">----------<\/option>/
64
64
  else
65
- match = /<select id="account_language" name="account\[language\]"><option selected="selected" value="DE">German<\/option><option value="" disabled="disabled">----------<\/option>/
65
+ match = /<select name="account\[language\]" id="account_language"><option selected="selected" value="DE">German<\/option><option value="" disabled="disabled">----------<\/option>/
66
66
  end
67
67
  assert_match match, language_select(@account, :language, 'DE').gsub(/\n/, '')
68
68
  end
@@ -62,7 +62,7 @@ class LocaleTest < ActiveSupport::TestCase
62
62
  if ActiveSupport::VERSION::STRING < '4.0'
63
63
  match = /<select id="account_locale" name="account\[locale\]"><option value="de-DE" selected="selected">German \(Germany\)<\/option><option value="" disabled="disabled">----------<\/option>/
64
64
  else
65
- match = /<select id="account_locale" name="account\[locale\]"><option selected="selected" value="de-DE">German \(Germany\)<\/option><option value="" disabled="disabled">----------<\/option>/
65
+ match = /<select name="account\[locale\]" id="account_locale"><option selected="selected" value="de-DE">German \(Germany\)<\/option><option value="" disabled="disabled">----------<\/option>/
66
66
  end
67
67
  assert_match match, locale_select(@account, :locale, 'de-DE').gsub(/\n/, '')
68
68
  end
@@ -37,13 +37,12 @@ class StateTest < ActiveSupport::TestCase
37
37
  I18n.locale = :en
38
38
  assert_not_nil results = state_select(@account, :state, 'DE').gsub(/\n/, '')
39
39
 
40
- assert_match /<select id="account_state" name="account\[state\]">/, results
41
-
42
40
  if ActiveSupport::VERSION::STRING < '4.0'
43
- match = /<option value="BY" selected="selected">Bavaria<\/option>/
41
+ assert_match /<select id="account_state" name="account\[state\]">/, results
42
+ assert_match /<option value="BY" selected="selected">Bavaria<\/option>/, results
44
43
  else
45
- match = /<option selected="selected" value="BY">Bavaria<\/option>/
44
+ assert_match /<select name="account\[state\]" id="account_state">/, results
45
+ assert_match /<option selected="selected" value="BY">Bavaria<\/option>/, results
46
46
  end
47
- assert_match match, results
48
47
  end
49
48
  end
metadata CHANGED
@@ -1,131 +1,143 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Eilhard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.1.0
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.1.0
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 4.2.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '5'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - '>='
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
- version: '0'
49
+ version: 4.2.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '5'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: actionpack
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - '>='
57
+ - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: '0'
59
+ version: 4.2.0
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '5'
54
63
  type: :runtime
55
64
  prerelease: false
56
65
  version_requirements: !ruby/object:Gem::Requirement
57
66
  requirements:
58
- - - '>='
67
+ - - ">="
59
68
  - !ruby/object:Gem::Version
60
- version: '0'
69
+ version: 4.2.0
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '5'
61
73
  - !ruby/object:Gem::Dependency
62
74
  name: bundler
63
75
  requirement: !ruby/object:Gem::Requirement
64
76
  requirements:
65
- - - ~>
77
+ - - "~>"
66
78
  - !ruby/object:Gem::Version
67
- version: 1.3.5
79
+ version: 1.10.5
68
80
  type: :development
69
81
  prerelease: false
70
82
  version_requirements: !ruby/object:Gem::Requirement
71
83
  requirements:
72
- - - ~>
84
+ - - "~>"
73
85
  - !ruby/object:Gem::Version
74
- version: 1.3.5
86
+ version: 1.10.5
75
87
  - !ruby/object:Gem::Dependency
76
88
  name: rdoc
77
89
  requirement: !ruby/object:Gem::Requirement
78
90
  requirements:
79
- - - ~>
91
+ - - "~>"
80
92
  - !ruby/object:Gem::Version
81
93
  version: 2.5.3
82
94
  type: :development
83
95
  prerelease: false
84
96
  version_requirements: !ruby/object:Gem::Requirement
85
97
  requirements:
86
- - - ~>
98
+ - - "~>"
87
99
  - !ruby/object:Gem::Version
88
100
  version: 2.5.3
89
101
  - !ruby/object:Gem::Dependency
90
102
  name: mocha
91
103
  requirement: !ruby/object:Gem::Requirement
92
104
  requirements:
93
- - - '>='
105
+ - - "~>"
94
106
  - !ruby/object:Gem::Version
95
- version: 0.14.0
107
+ version: 1.1.0
96
108
  type: :development
97
109
  prerelease: false
98
110
  version_requirements: !ruby/object:Gem::Requirement
99
111
  requirements:
100
- - - '>='
112
+ - - "~>"
101
113
  - !ruby/object:Gem::Version
102
- version: 0.14.0
114
+ version: 1.1.0
103
115
  - !ruby/object:Gem::Dependency
104
116
  name: rake
105
117
  requirement: !ruby/object:Gem::Requirement
106
118
  requirements:
107
- - - '>='
119
+ - - ">="
108
120
  - !ruby/object:Gem::Version
109
121
  version: '0'
110
122
  type: :development
111
123
  prerelease: false
112
124
  version_requirements: !ruby/object:Gem::Requirement
113
125
  requirements:
114
- - - '>='
126
+ - - ">="
115
127
  - !ruby/object:Gem::Version
116
128
  version: '0'
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: minitest
119
131
  requirement: !ruby/object:Gem::Requirement
120
132
  requirements:
121
- - - '>='
133
+ - - ">="
122
134
  - !ruby/object:Gem::Version
123
135
  version: '0'
124
136
  type: :development
125
137
  prerelease: false
126
138
  version_requirements: !ruby/object:Gem::Requirement
127
139
  requirements:
128
- - - '>='
140
+ - - ">="
129
141
  - !ruby/object:Gem::Version
130
142
  version: '0'
131
143
  description: A library for i18n of countries, states, currencies, and locales.
@@ -138,6 +150,9 @@ extra_rdoc_files:
138
150
  - LICENSE
139
151
  - README.md
140
152
  files:
153
+ - CHANGELOG.md
154
+ - LICENSE
155
+ - README.md
141
156
  - data/countries.yml
142
157
  - data/currencies.yml
143
158
  - data/languages.yml
@@ -150,9 +165,6 @@ files:
150
165
  - lib/i18n_plus/locale.rb
151
166
  - lib/i18n_plus/state.rb
152
167
  - lib/i18n_plus/version.rb
153
- - CHANGELOG.md
154
- - LICENSE
155
- - README.md
156
168
  - test/country_test.rb
157
169
  - test/currency_test.rb
158
170
  - test/language_test.rb
@@ -163,22 +175,22 @@ licenses: []
163
175
  metadata: {}
164
176
  post_install_message:
165
177
  rdoc_options:
166
- - --charset=UTF-8
178
+ - "--charset=UTF-8"
167
179
  require_paths:
168
180
  - lib
169
181
  required_ruby_version: !ruby/object:Gem::Requirement
170
182
  requirements:
171
- - - '>='
183
+ - - ">="
172
184
  - !ruby/object:Gem::Version
173
185
  version: '0'
174
186
  required_rubygems_version: !ruby/object:Gem::Requirement
175
187
  requirements:
176
- - - '>='
188
+ - - ">="
177
189
  - !ruby/object:Gem::Version
178
190
  version: 1.3.6
179
191
  requirements: []
180
192
  rubyforge_project:
181
- rubygems_version: 2.0.3
193
+ rubygems_version: 2.4.6
182
194
  signing_key:
183
195
  specification_version: 4
184
196
  summary: A library for i18n of countries, states, currencies, and locales.