presenter_object 0.2.5 → 0.2.6

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: 9bc7b88b75126bf2f6bc0470f4575c3b60d3b674
4
- data.tar.gz: 50a6d1c69a7cee1569e6070cd0cedc86e6d83fb2
3
+ metadata.gz: 1568d1f8492818dff46c4b7f15afe853f0e40e32
4
+ data.tar.gz: 44cab3260a92a50ae718445f0251534d67464b83
5
5
  SHA512:
6
- metadata.gz: 9c97848dba8ce24d2726fc6e60bed440cf458d3455223c206fe8c41896122ca892e35e7b75a9b6aeefeffc04f936293431a76bcdaadde13df0b6c0d7f4c9d249
7
- data.tar.gz: 2d40723bd9425a3610895948ab9b64fa290272bc3ed5e42702aa1ac642848477fa21ed2122a30b05fb33997f78d57e7ae8dbfacdef6d6e35e19c6a1e8e6f3239
6
+ metadata.gz: 7dc967fa7cbe93d6612b6d84d1d49e5133e4bf63343cb8b3d494896822a89773bfbe32d7d7392a7c7cee1a0c24a336ae60cdf0e22cf2edb58f33c1e54a04a1ec
7
+ data.tar.gz: 86f10a376c71f37749c16034b13056e1c94de3c838683a7ce16a85c775581ddf3c5a269557465d13b6099eb5afcf7de1b6fedb1dc1d29ba137528539647ce921
@@ -7,6 +7,7 @@ require "presenter_object/presentable"
7
7
  require "presenter_object/collection"
8
8
 
9
9
  module PresenterObject
10
+ DEFAULT_OBJECT = Object
10
11
  SUFFIX = "Presenter"
11
12
 
12
13
  # If your presenters are namespaced, add the namespace module to this array
@@ -16,7 +17,7 @@ module PresenterObject
16
17
  # PresenterObject.namespaces << MyAwesomeSpace
17
18
  #
18
19
  def self.namespaces
19
- @namespaces ||= [Object]
20
+ @namespaces ||= [DEFAULT_OBJECT]
20
21
  end
21
22
 
22
23
  def self.load_presenter!(name)
@@ -24,5 +25,6 @@ module PresenterObject
24
25
  presenter = space.const_get "#{name}#{SUFFIX}" rescue nil
25
26
  return presenter if presenter
26
27
  end
28
+ DEFAULT_OBJECT
27
29
  end
28
30
  end
@@ -1,3 +1,3 @@
1
1
  module PresenterObject
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presenter_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.6
111
+ rubygems_version: 2.6.7
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Prsenter object base class.