ruby-contract 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/COPYING +56 -0
  2. data/Manifest +85 -0
  3. data/README +32 -0
  4. data/TODO +83 -0
  5. data/doc/classes/Contract.html +599 -0
  6. data/doc/classes/Contract/Check.html +229 -0
  7. data/doc/classes/Contract/Check/All.html +172 -0
  8. data/doc/classes/Contract/Check/Any.html +172 -0
  9. data/doc/classes/Contract/Check/Block.html +172 -0
  10. data/doc/classes/Contract/Check/None.html +173 -0
  11. data/doc/classes/Contract/Check/Quack.html +172 -0
  12. data/doc/classes/Contract/ContractError.html +151 -0
  13. data/doc/classes/Contract/ContractException.html +162 -0
  14. data/doc/classes/Contract/ContractMismatch.html +134 -0
  15. data/doc/classes/Kernel.html +256 -0
  16. data/doc/classes/Method.html +135 -0
  17. data/doc/classes/MethodSignatureMixin.html +208 -0
  18. data/doc/classes/Module.html +526 -0
  19. data/doc/created.rid +1 -0
  20. data/doc/dot/f_0.dot +14 -0
  21. data/doc/dot/f_0.png +0 -0
  22. data/doc/dot/f_1.dot +14 -0
  23. data/doc/dot/f_1.png +0 -0
  24. data/doc/dot/f_2.dot +14 -0
  25. data/doc/dot/f_2.png +0 -0
  26. data/doc/dot/f_3.dot +112 -0
  27. data/doc/dot/f_3.png +0 -0
  28. data/doc/dot/f_4.dot +62 -0
  29. data/doc/dot/f_4.png +0 -0
  30. data/doc/dot/f_5.dot +62 -0
  31. data/doc/dot/f_5.png +0 -0
  32. data/doc/dot/f_6.dot +224 -0
  33. data/doc/dot/f_6.png +0 -0
  34. data/doc/dot/f_6_0.dot +24 -0
  35. data/doc/dot/f_6_0.png +0 -0
  36. data/doc/dot/f_6_1.dot +24 -0
  37. data/doc/dot/f_6_1.png +0 -0
  38. data/doc/dot/f_7.dot +62 -0
  39. data/doc/dot/f_7.png +0 -0
  40. data/doc/files/COPYING.html +168 -0
  41. data/doc/files/README.html +146 -0
  42. data/doc/files/TODO.html +240 -0
  43. data/doc/files/lib/contract/assertions_rb.html +118 -0
  44. data/doc/files/lib/contract/exception_rb.html +125 -0
  45. data/doc/files/lib/contract/integration_rb.html +130 -0
  46. data/doc/files/lib/contract/overrides_rb.html +118 -0
  47. data/doc/files/lib/contract_rb.html +127 -0
  48. data/doc/fr_class_index.html +40 -0
  49. data/doc/fr_file_index.html +34 -0
  50. data/doc/fr_method_index.html +45 -0
  51. data/doc/index.html +24 -0
  52. data/doc/rdoc-style.css +208 -0
  53. data/lib/contract.rb +146 -0
  54. data/lib/contract/assertions.rb +42 -0
  55. data/lib/contract/exception.rb +95 -0
  56. data/lib/contract/integration.rb +664 -0
  57. data/lib/contract/overrides.rb +41 -0
  58. data/setup.rb +1360 -0
  59. data/test/coverage/_-lib-contract-assertions_rb.html +526 -0
  60. data/test/coverage/_-lib-contract-exception_rb.html +632 -0
  61. data/test/coverage/_-lib-contract-integration_rb.html +1450 -0
  62. data/test/coverage/_-lib-contract-overrides_rb.html +524 -0
  63. data/test/coverage/_-lib-contract_rb.html +724 -0
  64. data/test/coverage/__-lib-contract-assertions_rb.html +484 -0
  65. data/test/coverage/__-lib-contract-exception_rb.html +537 -0
  66. data/test/coverage/__-lib-contract-integration_rb.html +946 -0
  67. data/test/coverage/__-lib-contract-overrides_rb.html +483 -0
  68. data/test/coverage/__-lib-contract_rb.html +583 -0
  69. data/test/coverage/index.html +93 -0
  70. data/test/tc_all.rb +8 -0
  71. data/test/tc_contract.rb +109 -0
  72. data/test/tc_exception.rb +43 -0
  73. data/test/tc_integration.rb +357 -0
  74. metadata +136 -0
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.3
3
+ specification_version: 1
4
+ name: ruby-contract
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.1
7
+ date: 2005-02-15
8
+ summary: ruby-contract provides support for describing and using types via unit-tests.
9
+ require_paths:
10
+ - lib
11
+ email: flgr@ccan.de
12
+ homepage: http://ruby-contract.rubyforge.org/
13
+ rubyforge_project: ruby-contract
14
+ description: "ruby-contract provides support for describing and using types via unit-tests. It
15
+ offers support for specifying contracts (Contract), method signature checks
16
+ (Module#signature), automatic adaption between types (Kernel#adaption) and
17
+ integration with the classic message- and class-based typing."
18
+ autorequire: contract
19
+ default_executable:
20
+ bindir: bin
21
+ has_rdoc: true
22
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 1.8.1
28
+ version:
29
+ platform: ruby
30
+ authors:
31
+ - Florian Gross
32
+ files:
33
+ - lib
34
+ - test
35
+ - doc
36
+ - TODO
37
+ - COPYING
38
+ - README
39
+ - setup.rb
40
+ - Manifest
41
+ - lib/contract.rb
42
+ - lib/contract
43
+ - lib/contract/integration.rb
44
+ - lib/contract/assertions.rb
45
+ - lib/contract/overrides.rb
46
+ - lib/contract/exception.rb
47
+ - test/tc_contract.rb
48
+ - test/tc_integration.rb
49
+ - test/coverage
50
+ - test/tc_exception.rb
51
+ - test/tc_all.rb
52
+ - test/coverage/_-lib-contract-integration_rb.html
53
+ - test/coverage/_-lib-contract-assertions_rb.html
54
+ - test/coverage/_-lib-contract-overrides_rb.html
55
+ - test/coverage/_-lib-contract-exception_rb.html
56
+ - test/coverage/_-lib-contract_rb.html
57
+ - test/coverage/__-lib-contract-assertions_rb.html
58
+ - test/coverage/__-lib-contract-exception_rb.html
59
+ - test/coverage/__-lib-contract_rb.html
60
+ - test/coverage/__-lib-contract-overrides_rb.html
61
+ - test/coverage/__-lib-contract-integration_rb.html
62
+ - test/coverage/index.html
63
+ - doc/index.html
64
+ - doc/fr_method_index.html
65
+ - doc/fr_class_index.html
66
+ - doc/fr_file_index.html
67
+ - doc/classes
68
+ - doc/files
69
+ - doc/rdoc-style.css
70
+ - doc/dot
71
+ - doc/created.rid
72
+ - doc/classes/Kernel.html
73
+ - doc/classes/MethodSignatureMixin.html
74
+ - doc/classes/Module.html
75
+ - doc/classes/Method.html
76
+ - doc/classes/Contract
77
+ - doc/classes/Contract.html
78
+ - doc/classes/Contract/ContractMismatch.html
79
+ - doc/classes/Contract/ContractError.html
80
+ - doc/classes/Contract/Check
81
+ - doc/classes/Contract/Check.html
82
+ - doc/classes/Contract/ContractException.html
83
+ - doc/classes/Contract/Check/Quack.html
84
+ - doc/classes/Contract/Check/Block.html
85
+ - doc/classes/Contract/Check/None.html
86
+ - doc/classes/Contract/Check/All.html
87
+ - doc/classes/Contract/Check/Any.html
88
+ - doc/files/lib
89
+ - doc/files/README.html
90
+ - doc/files/COPYING.html
91
+ - doc/files/TODO.html
92
+ - doc/files/lib/contract_rb.html
93
+ - doc/files/lib/contract
94
+ - doc/files/lib/contract/integration_rb.html
95
+ - doc/files/lib/contract/assertions_rb.html
96
+ - doc/files/lib/contract/overrides_rb.html
97
+ - doc/files/lib/contract/exception_rb.html
98
+ - doc/dot/f_7.png
99
+ - doc/dot/f_7.dot
100
+ - doc/dot/f_6_1.png
101
+ - doc/dot/f_6_1.dot
102
+ - doc/dot/f_6_0.png
103
+ - doc/dot/f_6_0.dot
104
+ - doc/dot/f_6.png
105
+ - doc/dot/f_6.dot
106
+ - doc/dot/f_5.png
107
+ - doc/dot/f_5.dot
108
+ - doc/dot/f_4.png
109
+ - doc/dot/f_4.dot
110
+ - doc/dot/f_3.png
111
+ - doc/dot/f_3.dot
112
+ - doc/dot/f_2.png
113
+ - doc/dot/f_2.dot
114
+ - doc/dot/f_1.png
115
+ - doc/dot/f_1.dot
116
+ - doc/dot/f_0.png
117
+ - doc/dot/f_0.dot
118
+ test_files:
119
+ - test/tc_all.rb
120
+ rdoc_options:
121
+ - "--diagram"
122
+ - "--inline-source"
123
+ - "--line-numbers"
124
+ - "--title"
125
+ - ruby-contract
126
+ - "%s"
127
+ - "--main"
128
+ - README
129
+ extra_rdoc_files:
130
+ - TODO
131
+ - COPYING
132
+ - README
133
+ executables: []
134
+ extensions: []
135
+ requirements: []
136
+ dependencies: []