lawyer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/lawyer/rspec/matchers.rb +1 -1
- data/lib/lawyer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bbaad434f4367f45db1dfb150377141cd7169fc
|
4
|
+
data.tar.gz: 73aae6e266d7ab421fcab38a07588fdc0df7d050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbf01c04377ea161d374f38b44c44ab84d637ae69b28fdf11039beb5fb0c88f3b69a157fb7fb786eb4b894c2981a78d2d5b4cc0da04934775f8e3594ea7575bb
|
7
|
+
data.tar.gz: 6fc641024fe626b6d79bd9d7a829a6c2ad7fe8bcb7f6e1afced857ab288caa8f42a1b048fc5230c229411e535654eff0cea788f326de8b2ec1cea8bb942dc563
|
data/README.md
CHANGED
@@ -83,9 +83,9 @@ First up, create a contract that specifies the methods available in an interface
|
|
83
83
|
|
84
84
|
module Contracts
|
85
85
|
class Person < Lawyer::Contract
|
86
|
-
|
87
|
-
|
88
|
-
|
86
|
+
confirm :name # check that the method exists
|
87
|
+
confirm :name= => 1 # check the method arity
|
88
|
+
confirm :rename => [:firstname, :lastname] # check required named parameters (ruby 2.1 only)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
data/lib/lawyer/version.rb
CHANGED