lawyer 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.
- checksums.yaml +4 -4
- data/README.md +1 -8
- data/lib/lawyer/rspec.rb +5 -0
- data/lib/lawyer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15fdccaa23596150e15e10a8c993a523016cff6a
|
|
4
|
+
data.tar.gz: b811dcef5d54dbd55869b91c35f9622e545556e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebe162b390bd2ebfe54290f41f5c4f6a83afd3b5d7ea2271de5ad61372a3d227156cd1de284b59fa239904c1afd2b9e188147bd0e51cea5bca1b3ed45746b141
|
|
7
|
+
data.tar.gz: adddcfed1ae140614377099810cd04fb7bef51b82769604c2261bd9e5703ca5aeaac5257ad05818d7987b37872a50fdffacb38fc68cb61349e0f6f6d21c3aaa3
|
data/README.md
CHANGED
|
@@ -90,17 +90,10 @@ First up, create a contract that specifies the methods available in an interface
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
Add Laywer to your spec_helper:
|
|
93
|
+
Add Laywer to your spec_helper by including:
|
|
94
94
|
|
|
95
95
|
require 'lawyer/rspec'
|
|
96
96
|
|
|
97
|
-
RSpec.configure do |config|
|
|
98
|
-
config.include Lawyer::RSpec::Matchers
|
|
99
|
-
config.include Lawyer::RSpec::ContractDouble
|
|
100
|
-
|
|
101
|
-
# ...
|
|
102
|
-
end
|
|
103
|
-
|
|
104
97
|
Test an implementation:
|
|
105
98
|
|
|
106
99
|
require 'contracts/person'
|
data/lib/lawyer/rspec.rb
CHANGED
data/lib/lawyer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lawyer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Cinnamond
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|