presenter_object 0.2.6 → 0.2.7

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: 1568d1f8492818dff46c4b7f15afe853f0e40e32
4
- data.tar.gz: 44cab3260a92a50ae718445f0251534d67464b83
3
+ metadata.gz: 416cb3f614b0f2baf7204758922fb69e3eb6c884
4
+ data.tar.gz: b36fdae7bd616a5f74f9dbfe5bed3ab99ff6125d
5
5
  SHA512:
6
- metadata.gz: 7dc967fa7cbe93d6612b6d84d1d49e5133e4bf63343cb8b3d494896822a89773bfbe32d7d7392a7c7cee1a0c24a336ae60cdf0e22cf2edb58f33c1e54a04a1ec
7
- data.tar.gz: 86f10a376c71f37749c16034b13056e1c94de3c838683a7ce16a85c775581ddf3c5a269557465d13b6099eb5afcf7de1b6fedb1dc1d29ba137528539647ce921
6
+ metadata.gz: cc46fd59ecb491a62950da8767b278eb22efcd0803885249cf1392600c5a0b48826197e69a81863df6871e345b3c136c8a329d911d93a16897b5b6d923ce52ac
7
+ data.tar.gz: 44ce96df180886828ca39a009c7f9df300ed16f7dc3419263850b91875806fdbe9a46778f1d0618af9f0207423de856addd3ba155fb04b75552047a74c9fe28a
@@ -1,3 +1,3 @@
1
1
  module PresenterObject
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -21,10 +21,8 @@ module PresenterObject
21
21
  end
22
22
 
23
23
  def self.load_presenter!(name)
24
- namespaces.each do |space|
25
- presenter = space.const_get "#{name}#{SUFFIX}" rescue nil
26
- return presenter if presenter
27
- end
28
- DEFAULT_OBJECT
24
+ namespaces.detect do |space|
25
+ space.const_get "#{name}#{SUFFIX}" rescue nil
26
+ end || DEFAULT_OBJECT
29
27
  end
30
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presenter_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar