copy_tuner_client 0.1.1.beta5 → 0.1.1.beta6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.1.1.beta5)
4
+ copy_tuner_client (0.1.1.beta6)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mat_aki/gem/copy-tuner-ruby-client
3
3
  specs:
4
- copy_tuner_client (0.1.0.beta)
4
+ copy_tuner_client (0.1.1.beta6)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -11,12 +11,15 @@ if defined?(SimpleForm)
11
11
  def label_translation_with_copyray_comment
12
12
  source = label_translation_without_copyray_comment
13
13
 
14
- attributes_scope = "#{object.class.i18n_scope}.attributes"
15
- defaults = object.class.lookup_ancestors.map do |klass|
16
- "#{attributes_scope}.#{klass.model_name.i18n_key}.#{reflection_or_attribute_name}"
14
+ if object.class.respond_to?(:lookup_ancestors)
15
+ attributes_scope = "#{object.class.i18n_scope}.attributes"
16
+ defaults = object.class.lookup_ancestors.map do |klass|
17
+ "#{attributes_scope}.#{klass.model_name.i18n_key}.#{reflection_or_attribute_name}"
18
+ end
19
+ CopyTunerClient::Copyray.augment_template(source, defaults.shift)
20
+ else
21
+ source
17
22
  end
18
-
19
- CopyTunerClient::Copyray.augment_template(source, defaults.shift)
20
23
  end
21
24
  alias_method_chain :label_translation, :copyray_comment
22
25
  end
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.1.1.beta5'
3
+ VERSION = '0.1.1.beta6'
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.beta5
4
+ version: 0.1.1.beta6
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-06-27 00:00:00.000000000 Z
12
+ date: 2014-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -368,7 +368,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
368
368
  version: '0'
369
369
  segments:
370
370
  - 0
371
- hash: 3689687272249834705
371
+ hash: -2005284276541061025
372
372
  required_rubygems_version: !ruby/object:Gem::Requirement
373
373
  none: false
374
374
  requirements: