epi_decorator 0.1.2 → 0.1.3

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: 4944911de729059eaa183de5c049bb741f619981
4
- data.tar.gz: e5f2ab07715a3fffa141db1f0638be838b074606
3
+ metadata.gz: f38f197d52708036803774fc9235aef4778aa75c
4
+ data.tar.gz: e1ce120bf2975ad82b763c318853be07134c2c35
5
5
  SHA512:
6
- metadata.gz: 286dcf1bfa72dadb55d38d7ccf34af7ae49a97ae1a2fd1da00aebf95c16700804d920434a3c5946d23f1c8b259b89224a110103c3d2da9558a3a597bb1c5737a
7
- data.tar.gz: b1db98a9fbdf0a2d2ce5582613225fc9cbe7985f0e94de2c5eecd1ac97eac37fac8b5a759dab8a2176856631288c11d302dc56362331330e8acace3c5c4856ef
6
+ metadata.gz: 96d68726c64473106d8074e2c3419fd91ba7e7588104bd1de9c00f5b194f8a05ed3eeda4d73e84505a0bf16be19ab250f948fbcaffa07e53279444682d3c9be8
7
+ data.tar.gz: 5bdb3227ad4fa47b97ce8d40e8dce4ff0fcd9ea8e90a7778525a34fb4f794e5a626f248b79d8e3b797e0ef9cf860f476932becd654925d0b71f529a93543cac1
@@ -35,6 +35,10 @@ module EpiDecorator
35
35
  super || object.instance_of?(klass)
36
36
  end
37
37
 
38
+ def decorate
39
+ self
40
+ end
41
+
38
42
  def decorated?
39
43
  true
40
44
  end
@@ -13,6 +13,10 @@ module EpiDecorator
13
13
  decorator_class.decorate self
14
14
  end
15
15
 
16
+ def decorated?
17
+ false
18
+ end
19
+
16
20
  module ClassMethods
17
21
  def decorate
18
22
  decorator_class.decorate_collection(self.all)
@@ -1,3 +1,3 @@
1
1
  module EpiDecorator
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-22 00:00:00.000000000 Z
12
+ date: 2016-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.5.1
146
+ rubygems_version: 2.4.8
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A simple decorator for Rails to replace Draper.