ianwhite-hark 0.0.4 → 0.0.5

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: 613e390efbcf4b85473a608ceb85ddf80a466a71
4
- data.tar.gz: 0e135cd5077287cdfee91caa8fd3d98b2768d89c
3
+ metadata.gz: a312e8d34fdb0a88013aa0d4602addb244719b35
4
+ data.tar.gz: 19ec8e5b542f72aaa806bc88a55faa276b275ad7
5
5
  SHA512:
6
- metadata.gz: 0144dab15f39746e69b7bf31e47996bb3b5dc6d25cb0a06259c6c25287bccee67b0f3ac1a9a80ee8c2c9420bcb6aaf710c65e7c8c6169e49680a71e83175ae8a
7
- data.tar.gz: 8a3971eaf75d614426179ecf6752a01b5ecb3deb185e1963da51b9f2dbc343134b2aff23066ce4c3311e4c5851ec49440239c54873dc8f92c8e8592e51a78998
6
+ metadata.gz: ad050f9e915f633cbbdd082aed1f6d1e6057f006b44614bc38e760b742b73540444b187f09189d1323efaa2cdbace4514e57a2ac70710db5aa29338cfe93d14a
7
+ data.tar.gz: 0291b41c2e65a84190aa8e58d3ba68bc0dd61d1b2dc0bfd5ddde32e5410dae1dac020755571c1187614bf9982de897bb8a1391cef2cabacf55fa23cb3f9dac95
data/History.md CHANGED
@@ -1,7 +1,12 @@
1
1
  # History
2
2
 
3
- ## master
3
+ ## 0.0.5
4
4
 
5
+ * ruby 1.8.7 compat
6
+
7
+ ## 0.0.4
8
+
9
+ * Adds Kernel#hearken
5
10
  * Adds coveralls & History
6
11
 
7
12
  ## 0.0.3
data/lib/hark/core_ext.rb CHANGED
@@ -9,6 +9,6 @@ module Kernel
9
9
 
10
10
  def hearken method, *args, &block
11
11
  listener = (block.arity == 1) ? hark(&block) : block.call
12
- send method, *args, listener
12
+ send method, *args + [listener]
13
13
  end
14
14
  end
@@ -24,7 +24,6 @@ module Hark
24
24
  when Dispatcher then object.handlers
25
25
  when Hash then AdHoc.new(object)
26
26
  when Proc then AdHoc.new(&object)
27
- when Array then object.map{|o| to_handler(o) }
28
27
  else object
29
28
  end
30
29
  end
data/lib/hark/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hark
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ianwhite-hark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian White