job_spec 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/job_spec/render_as_markdown.rb +1 -1
- data/lib/job_spec/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: 34e0e60ce34085d1accbd0b08fa5c2818111e8de
|
4
|
+
data.tar.gz: fe3fb2ce6f79bac5f82c7b3b482b3df99b2589bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c477f9443965d74477b75c99a78e9b96db5f0e6a6d93b266ac2c2fae34f7df32013366c848ad8c9b7c0941b635e585b11dd687c2647b6b4ee9af5becdb7abf97
|
7
|
+
data.tar.gz: ceeda97e7bebef885830430aaa97ca6da38418530fd33a4ffc5103995d018f659bbbe906d0c11db4287889e05a3d10423eb96bf642d9e59586a63462011638ad
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# JobSpec
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/job_spec.svg)](https://badge.fury.io/rb/job_spec)
|
4
|
+
|
3
5
|
A ruby gem for defining job specifications in a nice DSL that enables composition of expectations between roles.
|
4
6
|
|
5
7
|
## Installing
|
@@ -15,8 +17,8 @@ gem install job_spec
|
|
15
17
|
Create a job specification for a role:
|
16
18
|
|
17
19
|
``` ruby
|
18
|
-
JobSpec::Role.definition
|
19
|
-
expected
|
20
|
+
JobSpec::Role.definition 'Engineer' do
|
21
|
+
expected 'to be cool'
|
20
22
|
end
|
21
23
|
```
|
22
24
|
|
@@ -13,7 +13,7 @@ module JobSpec
|
|
13
13
|
|
14
14
|
role.expectations.map(&:values).each do |(expectation, description)|
|
15
15
|
markdown << "## #{expectation.capitalize}"
|
16
|
-
markdown << description
|
16
|
+
markdown << description unless description.nil?
|
17
17
|
end
|
18
18
|
|
19
19
|
markdown.join("\n\n")
|
data/lib/job_spec/version.rb
CHANGED