rails-i18nterface 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- C:-ActiveSupport::HashWithIndifferentAccess{I"article.key1:EF[I"app/models/article.rb;FI"article.key2;F[I"app/models/article.rb;FI"article.key3;F[I"app/models/article.rb;FI"article.key4;F[I"app/models/article.rb;FI"article.key5;F[I"app/models/article.rb;FI"category_erb.key1;F[I"&app/views/categories/category.erb;FI"category_html_erb.key1;F[I"+app/views/categories/category.html.erb;FI"category_rhtml.key1;F[I"(app/views/categories/category.rhtml;FI"
1
+ C:-ActiveSupport::HashWithIndifferentAccess{I"article.key1:EF[I"app/models/article.rb;TI"article.key2;F[I"app/models/article.rb;TI"article.key3;F[I"app/models/article.rb;TI"article.key4;F[I"app/models/article.rb;TI"article.key5;F[I"app/models/article.rb;TI"category_html_erb.key1;F[I"+app/views/categories/category.html.erb;TI"category_erb.key1;F[I"&app/views/categories/category.erb;TI"category_rhtml.key1;F[I"(app/views/categories/category.rhtml;TI"
@@ -7,16 +7,13 @@ describe 'searching' do
7
7
  describe 'keys' do
8
8
 
9
9
  context 'using contains' do
10
-
11
10
  it 'finds the correct keys' do
12
11
  visit '/translate'
13
12
  select 'Key contains', from: 'key_type'
14
13
  fill_in 'key_pattern', with: 'ey2'
15
14
  click_button 'Search'
16
-
17
15
  page.should have_content 'key2'
18
16
  end
19
-
20
17
  end
21
18
 
22
19
  context 'using starts with' do
@@ -25,38 +22,32 @@ describe 'searching' do
25
22
  select 'Key starts with', from: 'key_type'
26
23
  fill_in 'key_pattern', with: 'article.k'
27
24
  click_button 'Search'
28
-
29
25
  page.should have_content 'article.key2'
30
26
  end
31
27
  end
28
+
32
29
  end
33
30
 
34
31
  describe 'values' do
35
32
 
36
33
  context 'using contains' do
37
-
38
34
  it 'finds the correct values' do
39
35
  visit '/translate'
40
36
  select 'contains', from: 'text_type'
41
37
  fill_in 'text_pattern', with: '1 year'
42
38
  click_button 'Search'
43
-
44
39
  page.should have_content 'over 1 year'
45
40
  end
46
-
47
41
  end
48
42
 
49
43
  context 'using equals' do
50
-
51
44
  it 'finds the correct values' do
52
45
  visit '/translate'
53
46
  select 'equals', from: 'text_type'
54
47
  fill_in 'text_pattern', with: 'over 1 year'
55
48
  click_button 'Search'
56
-
57
49
  page.should have_content 'over 1 year'
58
50
  end
59
-
60
51
  end
61
52
 
62
53
  end
metadata CHANGED
@@ -1,60 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18nterface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Mose
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2013-05-01 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: railties
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 3.1.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 3.1.0
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 3.1.0
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 3.1.0
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: tzinfo
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: 0.3.37
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: 0.3.37
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: combustion
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rspec-rails
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,61 +110,69 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: capybara
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: simplecov
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: metric_fu
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: rubocop
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - '>='
163
+ - - ! '>='
144
164
  - !ruby/object:Gem::Version
145
165
  version: '0'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - '>='
171
+ - - ! '>='
151
172
  - !ruby/object:Gem::Version
152
173
  version: '0'
153
- description: A rails 3.1/4 engine adding an interface for translating and writing
154
- translation files.
174
+ description: A rails engine adding an interface for translating and writing translation
175
+ files. Works with rails 3 and 4.
155
176
  email:
156
177
  - mose@mose.com
157
178
  executables: []
@@ -161,99 +182,106 @@ files:
161
182
  - app/helpers/rails_i18nterface/application_helper.rb
162
183
  - app/helpers/rails_i18nterface/translate_helper.rb
163
184
  - app/views/layouts/rails_i18nterface/translate.html.erb
185
+ - app/views/rails_i18nterface/translate/_namespaces.html.erb
164
186
  - app/views/rails_i18nterface/translate/index.html.erb
165
187
  - app/views/rails_i18nterface/translate/_pagination.html.erb
166
- - app/views/rails_i18nterface/translate/_namespaces.html.erb
167
- - app/assets/stylesheets/rails_i18nterface/application.css
168
- - app/assets/javascripts/rails_i18nterface/application.js
169
- - app/assets/javascripts/rails_i18nterface/ender.min.js
170
188
  - app/assets/javascripts/rails_i18nterface/ender.js
171
189
  - app/assets/javascripts/rails_i18nterface/base.js
190
+ - app/assets/javascripts/rails_i18nterface/application.js
191
+ - app/assets/javascripts/rails_i18nterface/ender.min.js
192
+ - app/assets/stylesheets/rails_i18nterface/application.css
172
193
  - app/controllers/rails_i18nterface/application_controller.rb
173
194
  - app/controllers/rails_i18nterface/translate_controller.rb
174
195
  - config/routes.rb
175
196
  - lib/tasks/rails-i18nterface.rake
197
+ - lib/rails-i18nterface.rb
198
+ - lib/rails-i18nterface/keys.rb
199
+ - lib/rails-i18nterface/sourcefiles.rb
176
200
  - lib/rails-i18nterface/cache.rb
177
201
  - lib/rails-i18nterface/utils.rb
178
202
  - lib/rails-i18nterface/engine.rb
179
203
  - lib/rails-i18nterface/yamlfile.rb
180
204
  - lib/rails-i18nterface/version.rb
181
- - lib/rails-i18nterface/keys.rb
182
- - lib/rails-i18nterface/sourcefiles.rb
183
- - lib/rails-i18nterface.rb
184
205
  - MIT-LICENSE
185
206
  - Rakefile
186
207
  - README.md
187
- - spec/spec_helper.rb
188
- - spec/internal/log/test.log
189
- - spec/internal/app/models/article.rb
190
- - spec/internal/app/views/application/index.html.erb
191
- - spec/internal/app/views/categories/category.erb
192
- - spec/internal/app/views/categories/category.rhtml
193
- - spec/internal/app/views/categories/category.html.erb
208
+ - spec/internal/public/favicon.ico
194
209
  - spec/internal/app/views/categories/category.html
195
- - spec/internal/app/assets/stylesheets/application.css
210
+ - spec/internal/app/views/categories/category.html.erb
211
+ - spec/internal/app/views/categories/category.rhtml
212
+ - spec/internal/app/views/categories/category.erb
213
+ - spec/internal/app/views/application/index.html.erb
214
+ - spec/internal/app/models/article.rb
196
215
  - spec/internal/app/assets/javascripts/application.js
216
+ - spec/internal/app/assets/stylesheets/application.css
197
217
  - spec/internal/app/controllers/application_controller.rb
198
- - spec/internal/config/database.yml
199
- - spec/internal/config/routes.rb
218
+ - spec/internal/log/test.log
200
219
  - spec/internal/tmp/translation_strings
220
+ - spec/internal/config/routes.rb
221
+ - spec/internal/config/database.yml
201
222
  - spec/internal/db/schema.rb
202
223
  - spec/internal/db/combustion_test.sqlite
203
- - spec/internal/public/favicon.ico
204
- - spec/lib/sourcefiles_spec.rb
205
- - spec/lib/keys_spec.rb
224
+ - spec/requests/search_spec.rb
206
225
  - spec/lib/utils_spec.rb
207
- - spec/lib/yamlfile_spec.rb
208
226
  - spec/lib/cache_spec.rb
209
- - spec/requests/search_spec.rb
227
+ - spec/lib/yamlfile_spec.rb
228
+ - spec/lib/keys_spec.rb
229
+ - spec/lib/sourcefiles_spec.rb
230
+ - spec/spec_helper.rb
210
231
  - spec/controllers/translate_controller_spec.rb
211
232
  homepage: https://github.com/mose/rails-i18nterface
212
233
  licenses:
213
234
  - MIT
214
- metadata: {}
215
235
  post_install_message:
216
236
  rdoc_options: []
217
237
  require_paths:
218
238
  - lib
219
239
  required_ruby_version: !ruby/object:Gem::Requirement
240
+ none: false
220
241
  requirements:
221
- - - '>='
242
+ - - ! '>='
222
243
  - !ruby/object:Gem::Version
223
244
  version: '0'
245
+ segments:
246
+ - 0
247
+ hash: 883125853
224
248
  required_rubygems_version: !ruby/object:Gem::Requirement
249
+ none: false
225
250
  requirements:
226
- - - '>='
251
+ - - ! '>='
227
252
  - !ruby/object:Gem::Version
228
253
  version: '0'
254
+ segments:
255
+ - 0
256
+ hash: 883125853
229
257
  requirements: []
230
258
  rubyforge_project:
231
- rubygems_version: 2.0.0.rc.2
259
+ rubygems_version: 1.8.25
232
260
  signing_key:
233
- specification_version: 4
234
- summary: A rails 3.1/4 engine for translating in a web page.
261
+ specification_version: 3
262
+ summary: A rails engine for translating in a web page.
235
263
  test_files:
236
- - spec/spec_helper.rb
237
- - spec/internal/log/test.log
238
- - spec/internal/app/models/article.rb
239
- - spec/internal/app/views/application/index.html.erb
240
- - spec/internal/app/views/categories/category.erb
241
- - spec/internal/app/views/categories/category.rhtml
242
- - spec/internal/app/views/categories/category.html.erb
264
+ - spec/internal/public/favicon.ico
243
265
  - spec/internal/app/views/categories/category.html
244
- - spec/internal/app/assets/stylesheets/application.css
266
+ - spec/internal/app/views/categories/category.html.erb
267
+ - spec/internal/app/views/categories/category.rhtml
268
+ - spec/internal/app/views/categories/category.erb
269
+ - spec/internal/app/views/application/index.html.erb
270
+ - spec/internal/app/models/article.rb
245
271
  - spec/internal/app/assets/javascripts/application.js
272
+ - spec/internal/app/assets/stylesheets/application.css
246
273
  - spec/internal/app/controllers/application_controller.rb
247
- - spec/internal/config/database.yml
248
- - spec/internal/config/routes.rb
274
+ - spec/internal/log/test.log
249
275
  - spec/internal/tmp/translation_strings
276
+ - spec/internal/config/routes.rb
277
+ - spec/internal/config/database.yml
250
278
  - spec/internal/db/schema.rb
251
279
  - spec/internal/db/combustion_test.sqlite
252
- - spec/internal/public/favicon.ico
253
- - spec/lib/sourcefiles_spec.rb
254
- - spec/lib/keys_spec.rb
280
+ - spec/requests/search_spec.rb
255
281
  - spec/lib/utils_spec.rb
256
- - spec/lib/yamlfile_spec.rb
257
282
  - spec/lib/cache_spec.rb
258
- - spec/requests/search_spec.rb
283
+ - spec/lib/yamlfile_spec.rb
284
+ - spec/lib/keys_spec.rb
285
+ - spec/lib/sourcefiles_spec.rb
286
+ - spec/spec_helper.rb
259
287
  - spec/controllers/translate_controller_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 990879b2657590bfc3e0e84bd63e3a4d2706b25f
4
- data.tar.gz: b14196f97b732f5c03104006bfcd5a5efe9cb564
5
- SHA512:
6
- metadata.gz: 6a4c13138505804e81851dc422b7e55730380744b279c236f9acf9d03c33cfcdcfcdb3fa3b95cbc8dcf65c62d99ea30d336f4e5e8f2bf89a06af057f617c9dee
7
- data.tar.gz: 675ae5678d09842564fcee89a12c045d24e898cb326a561ae6f952b12d42997b4406700da491014bcbb905708992cd7d0b0b9638d9b1dc28ba237ced6293c6b2