contracts 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/TUTORIAL.md +42 -1
- data/benchmarks/bench.rb +3 -3
- data/contracts.gemspec +0 -1
- data/lib/contracts.rb +65 -54
- data/lib/contracts/core_ext.rb +15 -0
- data/lib/contracts/decorators.rb +78 -46
- data/lib/contracts/eigenclass.rb +41 -0
- data/lib/contracts/errors.rb +65 -0
- data/lib/contracts/invariants.rb +0 -6
- data/lib/contracts/method_reference.rb +75 -0
- data/lib/contracts/modules.rb +17 -0
- data/lib/contracts/support.rb +16 -0
- data/lib/contracts/version.rb +1 -1
- data/spec/builtin_contracts_spec.rb +3 -5
- data/spec/contracts_spec.rb +193 -5
- data/spec/fixtures/fixtures.rb +244 -113
- data/spec/module_spec.rb +2 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/support.rb +6 -0
- metadata +8 -2
data/spec/support.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contracts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditya Bhargava
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This library provides contracts for Ruby. Contracts let you clearly express
|
14
14
|
how your code behaves, and free you from writing tons of boilerplate, defensive
|
@@ -32,8 +32,13 @@ files:
|
|
32
32
|
- contracts.gemspec
|
33
33
|
- lib/contracts.rb
|
34
34
|
- lib/contracts/builtin_contracts.rb
|
35
|
+
- lib/contracts/core_ext.rb
|
35
36
|
- lib/contracts/decorators.rb
|
37
|
+
- lib/contracts/eigenclass.rb
|
38
|
+
- lib/contracts/errors.rb
|
36
39
|
- lib/contracts/invariants.rb
|
40
|
+
- lib/contracts/method_reference.rb
|
41
|
+
- lib/contracts/modules.rb
|
37
42
|
- lib/contracts/support.rb
|
38
43
|
- lib/contracts/testable.rb
|
39
44
|
- lib/contracts/version.rb
|
@@ -43,6 +48,7 @@ files:
|
|
43
48
|
- spec/invariants_spec.rb
|
44
49
|
- spec/module_spec.rb
|
45
50
|
- spec/spec_helper.rb
|
51
|
+
- spec/support.rb
|
46
52
|
homepage: http://github.com/egonSchiele/contracts.ruby
|
47
53
|
licenses: []
|
48
54
|
metadata: {}
|