justinf-unification_assertion 0.0.1 → 0.0.2
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.
- data/lib/unification_assertion.rb +9 -0
- data/lib/unification_assertion/version.rb +1 -1
- metadata +22 -41
@@ -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
|
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
|
-
|
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
|
-
|
22
|
-
|
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
|
-
|
54
|
-
|
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
|
-
|
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.
|
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
|
-
|