decorations 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/decorations.rb +1 -1
- data/lib/decorations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0478f2a6e231684f03d50f8f4e13ccba7afa372ac5c44215764fc6ee4f93da5
|
4
|
+
data.tar.gz: 39ea7341ddb532abdee65e484ee78b6dae3015a9f7998b94b90e6ae30f970c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74365496f68c9d7a225f01ecc81ff8baa308da472194b7509159ad5ab271149aaf5f78a11f492263eb8ce3167e6f867a0bfa1efd7d7f33c0e8e5f2108fbb2b92
|
7
|
+
data.tar.gz: 8de82fc3a517565492a7cf4d2327239140adaeeed90581a9cf8513e6c476444825f61ab1b3d52009cabee2e748ac9b6d317273bd3df6c7f2103631466b31aa04
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Decorations
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/decorations.svg)](https://badge.fury.io/rb/decorations)
|
4
|
+
[![Build Status](https://travis-ci.org/watmin/Ruby-decorations.svg?branch=master)](https://travis-ci.org/watmin/Ruby-decorations)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/watmin/Ruby-decorations/badge.svg?branch=master)](https://coveralls.io/github/watmin/Ruby-decorations?branch=master)
|
6
|
+
|
3
7
|
Python like decorators for Ruby. Inspired by Rack and previous attempts at decorations
|
4
8
|
|
5
9
|
## Installation
|
data/lib/decorations.rb
CHANGED
@@ -67,7 +67,7 @@ module Decorations
|
|
67
67
|
# @api private
|
68
68
|
def append_decorations(name, decorators, decorated_methods)
|
69
69
|
decorators.each do |klass, args|
|
70
|
-
decorated_methods[name] << klass.new(
|
70
|
+
decorated_methods[name] << klass.new(self, instance_method(name), *args)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
data/lib/decorations/version.rb
CHANGED