copy_tuner_client 0.0.9 → 0.0.11
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
|
@@ -249,6 +249,11 @@ module CopyTunerClient
|
|
|
249
249
|
end
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
+
# @return [String] current project url by api_key
|
|
253
|
+
def project_url
|
|
254
|
+
URI::Generic.build(scheme: self.protocol, host: self.host, port: self.port.to_i, path: "/projects/#{self.api_key}").to_s
|
|
255
|
+
end
|
|
256
|
+
|
|
252
257
|
private
|
|
253
258
|
|
|
254
259
|
def default_port
|
|
@@ -26,7 +26,7 @@ module CopyTunerClient
|
|
|
26
26
|
def translate(locale, key, options = {})
|
|
27
27
|
content = super(locale, key, options.merge(:fallback => true))
|
|
28
28
|
if CopyTunerClient.configuration.inline_translation
|
|
29
|
-
content = key.to_s
|
|
29
|
+
content = (content.is_a?(Array) ? content : key.to_s)
|
|
30
30
|
end
|
|
31
31
|
if content.respond_to?(:html_safe)
|
|
32
32
|
content.html_safe
|
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.11
|
|
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-03-
|
|
12
|
+
date: 2013-03-08 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: -288209489
|
|
366
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
367
|
none: false
|
|
368
368
|
requirements:
|
|
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
371
371
|
version: '0'
|
|
372
372
|
segments:
|
|
373
373
|
- 0
|
|
374
|
-
hash:
|
|
374
|
+
hash: -288209489
|
|
375
375
|
requirements: []
|
|
376
376
|
rubyforge_project:
|
|
377
377
|
rubygems_version: 1.8.23
|