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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94ffe24be5917fadd0306a1f30a9e13b7863bff2
4
- data.tar.gz: 6df36b9c9305db217456e938054a1bc1e82539d4
3
+ metadata.gz: 7579dc2bf87a6b4ba0d474530b8c907bc5a5a1f8
4
+ data.tar.gz: e3e64b2b04dd4372194e98b2dda428fa4abc1bbd
5
5
  SHA512:
6
- metadata.gz: 0328f12583786884d1d6edc54f5544d2c700ab4c30018d6d1f663b81e268b16a390b493504ad1262dec61ce2a76592c1873928b183a830edba4f34dd81762dbe
7
- data.tar.gz: 534ce1a9125fcd250ae3f11b003f013b690de42bc7ab7345a9c332dd32969dcbc98df19fff051561d9399d76137fc2b31ca3260bb6344f06c51d84e4fddb146f
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(col)
8
- col.map {|object| new(object) }
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
@@ -1,3 +1,3 @@
1
1
  module Gleborator
2
- VERSION = "0.1.1.8"
2
+ VERSION = "0.1.1.9"
3
3
  end
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.8
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-25 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler