underware 1.0.0.alpha.1 → 1.0.0.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/underware.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc31a9731736d87c127839ea1523193657ebfef
4
- data.tar.gz: 47404a848f30b4d49293daf3580fb48b9099813e
3
+ metadata.gz: ff5960736dccfc3c2216d616810d13f35bd10c07
4
+ data.tar.gz: 7dcc3f9504e98e2e6b999eb96977e4f0cf84e195
5
5
  SHA512:
6
- metadata.gz: 264e6b263c4bedf16e819aad071860a678c84f291bd83a12bfe6c9ddf4b2b9ab43f0df43fbe7789cc2982693b7dc5a3fd7818f3d63384cfec5c52f7a92605830
7
- data.tar.gz: 973074309cf28cc21e0cbd41a51846f32b60288e144b535bebe443752f320698a6d49b54487b50b12a9ed7b45e55feb9728a6a01f69118e8db14a176ce78dcb2
6
+ metadata.gz: 3ff60a21c9bb5a017ce91dae5fdb8e466cff62231583dfad65f7deb7df5154cb621bdf081c50128b37d383c3c15ddd29e5aed76e188ebae81aab2515638bd305
7
+ data.tar.gz: fc3d00c7ab2cd1e4182dd8ef350f98482287144cc01e8e43783fb197e1914cf37ae62cf9f61babbe0d32da9ad2414696665e72a5e4dbe76ae39b273746b77257
data/lib/underware.rb CHANGED
@@ -8,6 +8,11 @@ module Underware
8
8
  def call(*args)
9
9
  raise NotImplementedError
10
10
  end
11
+
12
+ def to_proc
13
+ __other = self
14
+ ->(*args){ __other.call(*args) }
15
+ end
11
16
  end
12
17
 
13
18
 
@@ -21,7 +26,7 @@ module Underware
21
26
 
22
27
  def call(*args)
23
28
  left.call(*args) do |*result|
24
- right.call(*args)
29
+ right.call(*result)
25
30
  end
26
31
  end
27
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: underware
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.1
4
+ version: 1.0.0.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lauber
@@ -17,7 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/underware.rb
20
- homepage:
20
+ homepage: https://github.com/briandamaged/underware
21
21
  licenses:
22
22
  - MIT
23
23
  metadata: {}