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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1037083b611dde6989352cb350cda150f68bc4eb7913c52996dda2b8594fc7df
4
- data.tar.gz: 77dd9f7c0a916fcaf64912b1a1b5236ba30cf87e626af38a873e272bfc47de45
3
+ metadata.gz: da58c9a644233cca26944ec76f9acc29da8b4dd036fe62f45cb52a195097fafe
4
+ data.tar.gz: 84f644313107d7e202652aaf7d6c2fc7632556e8ea0a7d5fe025c2e3d2ef1220
5
5
  SHA512:
6
- metadata.gz: 003d0239f631533d15ef0b1898063b75341873baca0d6f29fb3228e39dfda3bc66637c3b20f3d2123c00cfbe44bc9be2180e9fca4e8eeeca0dfecaec002543c2
7
- data.tar.gz: eba420064450a9bdef0f8ee92c6d3dc89a0b15902d7c553b77b369b342f4cc6f85844d6a8c929191eaf2c9e9654373dbaeaa6b56300ccc1abce911c87448b632
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/master/CODE_OF_CONDUCT.md).
133
+ [code of conduct](https://github.com/bluebottlecoffee/cbra_contracts/blob/main/CODE_OF_CONDUCT.md).
@@ -11,6 +11,7 @@ module CBRAContracts
11
11
  symbol
12
12
  hash
13
13
  bool
14
+ array
14
15
  ].freeze
15
16
 
16
17
  attr_reader :name, :type, :description, :required
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CBRAContracts
4
- VERSION = '0.3.0b'
4
+ VERSION = '0.4.0b'
5
5
  end
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.3.0b
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-06-18 00:00:00.000000000 Z
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.0.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