boost_lambda_style_proc 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,9 @@ module BoostLambdaStyleProc
3
3
  def method_missing name, *args
4
4
  Expression.new(self, name, args)
5
5
  end
6
+ def ==(other)
7
+ method_missing :==, other
8
+ end
6
9
  end
7
10
  class Argument < Base
8
11
  def initialize(n)
@@ -1,3 +1,3 @@
1
1
  module BoostLambdaStyleProc
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -23,5 +23,9 @@ describe BoostLambdaStyleProc do
23
23
  [2, 4, 6].should be_all(&(_1.even?))
24
24
  [1, 4, 6].should_not be_all(&(_1.even?))
25
25
  end
26
+
27
+ it 'can create proc if expression contains == operators too' do
28
+ (_1 == _2).to_proc[1, 1].should == true
29
+ end
26
30
  end
27
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boost_lambda_style_proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: