cbra_contracts 0.3.0b → 0.4.0b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/cbra_contracts/contract_method_parameter.rb +1 -0
- data/lib/cbra_contracts/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da58c9a644233cca26944ec76f9acc29da8b4dd036fe62f45cb52a195097fafe
|
4
|
+
data.tar.gz: 84f644313107d7e202652aaf7d6c2fc7632556e8ea0a7d5fe025c2e3d2ef1220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec67489f213c39cf7befcc8e01b40104e135bd721696e0bb7bcedf3099c4b0fe6df3a954de77ced4b434683b25069179704c05de973271a98beee14e808ced7
|
7
|
+
data.tar.gz: a6f415f56bb33265fc5146129581090def43e6b682a4f2f14e72484ae7291416d8909cb524d86b6447fb700995fc9891f4ce3ed86ffb5bbabd6eea0cc311e06a
|
data/README.md
CHANGED
@@ -53,7 +53,10 @@ Let's define a contract!
|
|
53
53
|
```ruby
|
54
54
|
# A sample `Weather` component of our application
|
55
55
|
|
56
|
-
# weather/lib/contract.rb
|
56
|
+
# ./weather/lib/weather/contract.rb
|
57
|
+
|
58
|
+
require 'cbra_contracts/dsl'
|
59
|
+
|
57
60
|
module Weather
|
58
61
|
extend CBRAContracts::DSL
|
59
62
|
|
@@ -78,7 +81,7 @@ By convention, the implementation of the lookup should live in the
|
|
78
81
|
`weather/lib/weather/lookup.rb` class.
|
79
82
|
|
80
83
|
```ruby
|
81
|
-
# weather/lib/weather/lookup.rb
|
84
|
+
# ./weather/lib/weather/lookup.rb
|
82
85
|
|
83
86
|
module Weather
|
84
87
|
class Lookup
|
@@ -127,4 +130,4 @@ The gem is available as open source under the terms of the
|
|
127
130
|
|
128
131
|
Everyone interacting in the CbraContracts project’s codebases, issue trackers,
|
129
132
|
chat rooms and mailing lists is expected to follow the
|
130
|
-
[code of conduct](https://github.com/bluebottlecoffee/cbra_contracts/blob/
|
133
|
+
[code of conduct](https://github.com/bluebottlecoffee/cbra_contracts/blob/main/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbra_contracts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blue Bottle Coffee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 1.3.1
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.1.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: DSL to delcare your Rails component contracts
|