naranya_ecm-sdk 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a32d7a9278cee949df2df10694c14f3c4ab01803
4
- data.tar.gz: 3edf4dbc6fb7ceda70f595a0e22f8e3c5b3951de
3
+ metadata.gz: ebafc5d4f40d88b45a99cea2b04dd3a1b6731194
4
+ data.tar.gz: 435aac8f54e0dbd45e673af840a108e70c0853af
5
5
  SHA512:
6
- metadata.gz: 937df46c5e7c289421bed86c0a790588dce165416b194b9a97bae76e7a3809fde99672d6be65e63a0e56053daee327cc0d7837b5984642ade625f99bf5068e01
7
- data.tar.gz: 8e96bacadbb8156cc75f0fa1ff04d408461d5ec39eb49e4b2acf300174ae65c731af555318fed695a9edf22f8de243ec8594e1f21c2515e2399de07c0882d8a8
6
+ metadata.gz: e8d58cc2b57220b85d98bf859be73771c0c630489c03daa5be6abd35629aa212d03b867606d756cbe116e3d663bb6c5d755fbe07a59e9254b17171753c3fdbd9
7
+ data.tar.gz: ac438bcbfe33d990f3ae4152a48c1db0e33c468d34190ef5bf8ad3cb758af6660a47140134ea6eb5489e2164e68affa972829645dfe136570ee57acade41bf35
@@ -1,3 +1,3 @@
1
1
  module NaranyaEcm
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
3
3
  end
@@ -30,7 +30,8 @@ module NaranyaEcm::Behaviors
30
30
  else
31
31
  lookup_result = @attributes[locale.to_s]
32
32
  end
33
- lookup_result || @attributes.present? ? @attributes.first[1] : nil
33
+ lookup_result = @attributes.present? ? @attributes.first[1] : nil unless lookup_result.present?
34
+ lookup_result
34
35
  end
35
36
 
36
37
  end
@@ -25,7 +25,8 @@ module NaranyaEcm::Rest
25
25
  else
26
26
  lookup_result = self[locale.to_s]
27
27
  end
28
- lookup_result || (self.present? ? self.first[1] : nil)
28
+ lookup_result = self.present? ? self.first[1] : nil unless lookup_result.present?
29
+ lookup_result
29
30
  end
30
31
 
31
32
  def method_missing(method_name, *args, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naranya_ecm-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport