justinf-unification_assertion 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -143,3 +143,12 @@ module UnificationAssertion
143
143
  end
144
144
  end
145
145
 
146
+ if defined?(RSpec)
147
+ RSpec::Matchers.define :unify do |expected|
148
+ match do |actual|
149
+ UnificationAssertion.unify([[actual, expected]]) do |a, b|
150
+ a.should == b
151
+ end
152
+ end
153
+ end
154
+ end
@@ -1,3 +1,3 @@
1
1
  module UnificationAssertion
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,34 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: justinf-unification_assertion
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Soutaro Matsumoto
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-29 00:00:00 Z
12
+ date: 2012-02-29 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: "UnificationAssertion defines +assert_unifiable+ assertion to test if given two values are unifiable.\n\
22
- I only made this gem because Soutaro hadn't pushed it to rubygems yet.\n "
23
- email:
14
+ description: ! "UnificationAssertion defines +assert_unifiable+ assertion to test
15
+ if given two values are unifiable.\nI only made this gem because Soutaro hadn't
16
+ pushed it to rubygems yet.\n "
17
+ email:
24
18
  - matsumoto@soutaro.com
25
19
  executables: []
26
-
27
20
  extensions: []
28
-
29
21
  extra_rdoc_files: []
30
-
31
- files:
22
+ files:
32
23
  - .gitignore
33
24
  - Gemfile
34
25
  - README.md
@@ -39,36 +30,26 @@ files:
39
30
  - unification_assertion.gemspec
40
31
  homepage: https://github.com/soutaro/unification_assertion
41
32
  licenses: []
42
-
43
33
  post_install_message:
44
34
  rdoc_options: []
45
-
46
- require_paths:
35
+ require_paths:
47
36
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
37
+ required_ruby_version: !ruby/object:Gem::Requirement
49
38
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- hash: 3
54
- segments:
55
- - 0
56
- version: "0"
57
- required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
44
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
66
49
  requirements: []
67
-
68
50
  rubyforge_project: unification_assertion
69
- rubygems_version: 1.8.15
51
+ rubygems_version: 1.8.10
70
52
  signing_key:
71
53
  specification_version: 3
72
54
  summary: Assertion to test unifiability of two structures
73
55
  test_files: []
74
-