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 +4 -4
- data/lib/presenter_object.rb +3 -1
- data/lib/presenter_object/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1568d1f8492818dff46c4b7f15afe853f0e40e32
|
4
|
+
data.tar.gz: 44cab3260a92a50ae718445f0251534d67464b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc967fa7cbe93d6612b6d84d1d49e5133e4bf63343cb8b3d494896822a89773bfbe32d7d7392a7c7cee1a0c24a336ae60cdf0e22cf2edb58f33c1e54a04a1ec
|
7
|
+
data.tar.gz: 86f10a376c71f37749c16034b13056e1c94de3c838683a7ce16a85c775581ddf3c5a269557465d13b6099eb5afcf7de1b6fedb1dc1d29ba137528539647ce921
|
data/lib/presenter_object.rb
CHANGED
@@ -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 ||= [
|
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
|
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.
|
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:
|
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.
|
111
|
+
rubygems_version: 2.6.7
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Prsenter object base class.
|