wires 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/wires/event.rb +8 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6396df6f8d7307b304ef8d37d8bc75b30de47dae
4
- data.tar.gz: ae25aa3fac7ea8f28944e959ed3c4c502a6ea47d
3
+ metadata.gz: bce6d5f7d0b9c3c9f0836f66093e3ff1d1381bb3
4
+ data.tar.gz: e744377dd99e11ad0539de912e7521bbf15d1ab1
5
5
  SHA512:
6
- metadata.gz: 14589e34c908c567b13163fd14f658b76b8bef1eb98ccb86fee49fed2e138d148c9f29e49c082f79311d9d1aa674a18f744a5dfacc955a0da00262160c4395c4
7
- data.tar.gz: 0b51394fa0aa581c1b95a4a623851be8814b8337a63c7fce7c9c46c2eec7ecf7af47b0d4da24f171993c26b703d09f28f80125610bf8999bc3eff4b3bf9c33d4
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
- An asynchronous (threaded) event routing framework in Ruby.
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 (c) 2013 : Joe McIlvain
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2013-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: threadlock