gleborator 0.1.1.8 → 0.1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gleborator/base_decorator.rb +7 -2
- data/lib/gleborator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7579dc2bf87a6b4ba0d474530b8c907bc5a5a1f8
|
4
|
+
data.tar.gz: e3e64b2b04dd4372194e98b2dda428fa4abc1bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a81c1599e107431af157be66b3264bce2762fd5a87c5b6a0d6280593fb27a855f7caa93249e5c31b409e81b5f110671546d781e4c3eeedd34544d0840b5fb5c
|
7
|
+
data.tar.gz: e77ca6cdb8638c56661708834fcd85dbe3624b52baf153d595dee2050d3a48d7537d6df2ac97452e8f427f1aa68f336cb0f961d76a76be0392d00535a0a3468f
|
@@ -4,8 +4,13 @@ module Gleborator
|
|
4
4
|
@object = object
|
5
5
|
end
|
6
6
|
|
7
|
-
def self.decorate_collection(
|
8
|
-
|
7
|
+
def self.decorate_collection(collection)
|
8
|
+
collection.map {|object| new(object) }
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.delegate(*methods)
|
12
|
+
options = methods.extract_options!
|
13
|
+
super *methods, options.reverse_merge(to: :object)
|
9
14
|
end
|
10
15
|
end
|
11
16
|
end
|
data/lib/gleborator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gleborator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Vishnevsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|