wires 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/wires/event.rb +8 -0
- 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: bce6d5f7d0b9c3c9f0836f66093e3ff1d1381bb3
|
4
|
+
data.tar.gz: e744377dd99e11ad0539de912e7521bbf15d1ab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9583453605c3a9b6d9b575b2bcb7928175aa16f0d3d406c2aafdde8c7d2865480dffbda03f34545ede9d164665c9725f715d34ca942b70a0466be775ff9db35
|
7
|
+
data.tar.gz: 3fa5846b7ab5f3be277163f5ddf86b3b669eb077016f8198fa106648380c4208e18887c5ee5fa3613100d831786f31af37ac5beff6de4a81928da4bd8b3224a0
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Wires
|
2
2
|
=====
|
3
3
|
|
4
|
-
|
4
|
+
A lightweight, extensible asynchronous event routing framework in Ruby.
|
5
5
|
|
6
6
|
Patch your objects together with wires.
|
7
7
|
|
@@ -9,5 +9,5 @@ Inspired by [the python 'circuits' framework](http://circuitsframework.com/).
|
|
9
9
|
|
10
10
|
Wires is a work in progress.
|
11
11
|
|
12
|
-
Copyright
|
12
|
+
Copyright 2013 \: Joe McIlvain.
|
13
13
|
All rights reserved.
|
data/lib/wires/event.rb
CHANGED
@@ -16,6 +16,14 @@ module Wires
|
|
16
16
|
@ignore = []
|
17
17
|
@kwargs = kwargs.dup
|
18
18
|
|
19
|
+
@kwargs.keys.each do |m|
|
20
|
+
if respond_to? m
|
21
|
+
(class << self; self; end).class_eval do
|
22
|
+
undef_method m
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
19
27
|
(@kwargs[:args] = args.freeze; @ignore<<:args) \
|
20
28
|
unless @kwargs.has_key? :args
|
21
29
|
(@kwargs[:codeblock] = block; @ignore<<:codeblock) \
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wires
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe McIlvain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: threadlock
|