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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55acf7f078dde513a17df8881e21dfff69fe13d2
4
- data.tar.gz: 38b5607de1eb989507368bd2563520541a02075b
3
+ metadata.gz: 9bbaad434f4367f45db1dfb150377141cd7169fc
4
+ data.tar.gz: 73aae6e266d7ab421fcab38a07588fdc0df7d050
5
5
  SHA512:
6
- metadata.gz: 78a7f3b0e962d5fc977a17166cec84e296e161fe3f870e5ef10fc09f55a11dd7dbbf208cc3a8e308567bcbe02336b31f3bcd9dc3f7da4d26656b77ef09fe347d
7
- data.tar.gz: c5e122a257a4c43e80a3aea6200490f7fa3faf410257d18d6c2b778fed384675abc4b7a94b31e2a4dfc8ae41b839527b62aed56d632f2174e8ecf2322faba6f3
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
- check :name # check that the method exists
87
- check :name= => 1 # check the method arity
88
- check :rename => [:firstname, :lastname] # check required named parameters (ruby 2.1 only)
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
 
@@ -17,7 +17,7 @@ module Lawyer
17
17
  end
18
18
 
19
19
  failure_message_for_should do |actual|
20
- @expectation.to_s
20
+ @exception.to_s
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Lawyer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lawyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Cinnamond