copy_tuner_client 0.1.1.beta10 → 0.1.1.beta11

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.
@@ -18,7 +18,11 @@ module CopyTunerClient
18
18
  def self.augment_template(source, key)
19
19
  id = next_id
20
20
  # skim doesn't allow html comments, so use skim's comment syntax if it's skim
21
- augmented = "<!--COPYRAY START #{id} #{key} #{CopyTunerClient.configuration.project_url} -->\n<span>#{source}</span>\n<!--COPYRAY END #{id}-->"
21
+ augmented = if source.present?
22
+ "<!--COPYRAY START #{id} #{key} #{CopyTunerClient.configuration.project_url} -->\n<span>#{source}</span>\n<!--COPYRAY END #{id}-->"
23
+ else
24
+ source
25
+ end
22
26
  ActiveSupport::SafeBuffer === source ? ActiveSupport::SafeBuffer.new(augmented) : augmented
23
27
  end
24
28
 
@@ -16,7 +16,7 @@ if defined?(SimpleForm)
16
16
  defaults = object.class.lookup_ancestors.map do |klass|
17
17
  "#{attributes_scope}.#{klass.model_name.i18n_key}.#{reflection_or_attribute_name}"
18
18
  end
19
- CopyTunerClient::Copyray.augment_template(source, defaults.shift)
19
+ CopyTunerClient::Copyray.augment_template(source, defaults.shift).html_safe
20
20
  else
21
21
  source
22
22
  end
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.1.1.beta10'
3
+ VERSION = '0.1.1.beta11'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
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.1.1.beta10
4
+ version: 0.1.1.beta11
5
5
  prerelease: 6
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: 2014-09-23 00:00:00.000000000 Z
12
+ date: 2014-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -348,7 +348,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
348
348
  version: '0'
349
349
  segments:
350
350
  - 0
351
- hash: 3469519469864296276
351
+ hash: 3958779532140087660
352
352
  required_rubygems_version: !ruby/object:Gem::Requirement
353
353
  none: false
354
354
  requirements: