copy_tuner_client 0.0.7 → 0.0.8
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/Gemfile.lock
CHANGED
@@ -103,6 +103,9 @@ module CopyTunerClient
|
|
103
103
|
# @return [Client] instance used to communicate with a CopyTuner Server.
|
104
104
|
attr_accessor :client
|
105
105
|
|
106
|
+
# @return [Boolean] To enable inline-translation-mode, set true.
|
107
|
+
attr_accessor :inline_translation
|
108
|
+
|
106
109
|
alias_method :secure?, :secure
|
107
110
|
|
108
111
|
# Instantiated from {CopyTunerClient.configure}. Sets defaults.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'i18n'
|
2
|
+
require 'copy_tuner_client/configuration'
|
2
3
|
|
3
4
|
module CopyTunerClient
|
4
5
|
# I18n implementation designed to synchronize with CopyTuner.
|
@@ -24,6 +25,9 @@ module CopyTunerClient
|
|
24
25
|
# @return [Object] the translated key (usually a String)
|
25
26
|
def translate(locale, key, options = {})
|
26
27
|
content = super(locale, key, options.merge(:fallback => true))
|
28
|
+
if CopyTunerClient.configuration.inline_translation
|
29
|
+
content = "<u title='#{key}'>#{content}</u>"
|
30
|
+
end
|
27
31
|
if content.respond_to?(:html_safe)
|
28
32
|
content.html_safe
|
29
33
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -362,7 +362,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
362
362
|
version: '0'
|
363
363
|
segments:
|
364
364
|
- 0
|
365
|
-
hash:
|
365
|
+
hash: 34668541
|
366
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
367
367
|
none: false
|
368
368
|
requirements:
|
@@ -371,37 +371,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
version: '0'
|
372
372
|
segments:
|
373
373
|
- 0
|
374
|
-
hash:
|
374
|
+
hash: 34668541
|
375
375
|
requirements: []
|
376
376
|
rubyforge_project:
|
377
377
|
rubygems_version: 1.8.23
|
378
378
|
signing_key:
|
379
379
|
specification_version: 3
|
380
380
|
summary: Client for the CopyTuner copy management service
|
381
|
-
test_files:
|
382
|
-
- features/rails.feature
|
383
|
-
- features/step_definitions/copycopter_server_steps.rb
|
384
|
-
- features/step_definitions/rails_steps.rb
|
385
|
-
- features/support/env.rb
|
386
|
-
- features/support/rails_server.rb
|
387
|
-
- spec/copy_tuner_client/cache_spec.rb
|
388
|
-
- spec/copy_tuner_client/client_spec.rb
|
389
|
-
- spec/copy_tuner_client/configuration_spec.rb
|
390
|
-
- spec/copy_tuner_client/i18n_backend_spec.rb
|
391
|
-
- spec/copy_tuner_client/poller_spec.rb
|
392
|
-
- spec/copy_tuner_client/prefixed_logger_spec.rb
|
393
|
-
- spec/copy_tuner_client/process_guard_spec.rb
|
394
|
-
- spec/copy_tuner_client/request_sync_spec.rb
|
395
|
-
- spec/copy_tuner_client_spec.rb
|
396
|
-
- spec/spec_helper.rb
|
397
|
-
- spec/support/client_spec_helpers.rb
|
398
|
-
- spec/support/defines_constants.rb
|
399
|
-
- spec/support/fake_client.rb
|
400
|
-
- spec/support/fake_copy_tuner_app.rb
|
401
|
-
- spec/support/fake_html_safe_string.rb
|
402
|
-
- spec/support/fake_logger.rb
|
403
|
-
- spec/support/fake_passenger.rb
|
404
|
-
- spec/support/fake_resque_job.rb
|
405
|
-
- spec/support/fake_unicorn.rb
|
406
|
-
- spec/support/middleware_stack.rb
|
407
|
-
- spec/support/writing_cache.rb
|
381
|
+
test_files: []
|