specific 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 +4 -4
- data/lib/specific/feature.rb +10 -0
- data/lib/specific/renderer/markdown.rb +5 -1
- data/lib/specific/renderer/text.rb +5 -1
- data/lib/specific/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: e02b33835ccf0633a7a6d2a8546bbed053b583ad
|
4
|
+
data.tar.gz: 0bc83db7424bd5a51196c00a13f68fba790cdaac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d07b31fcc1a1bf288f558108a12f7e464e881c0753a9b3263e410a446fecda20d50432d83c0dc6525d1dc56a746bb2534cd7700ed943aa7215fcf0fc0a66b07
|
7
|
+
data.tar.gz: a4df6109bfa89b2eb9dc31af86309c5d05c44036ebb1d8dca2976d1101b9a4e591f493f0f4a7d829509cc785cef145f5ea2366ebbe2c820c51e7eb71dde4dae1
|
data/lib/specific/feature.rb
CHANGED
@@ -15,7 +15,11 @@ module Specific
|
|
15
15
|
grouped_features = @spec.features.group_by(&:group)
|
16
16
|
|
17
17
|
grouped_features.each do |group, features|
|
18
|
-
|
18
|
+
if group
|
19
|
+
group_title = "## Features '#{group.name}'"
|
20
|
+
else
|
21
|
+
group_title = "## Ungrouped"
|
22
|
+
end
|
19
23
|
|
20
24
|
out << group_title + "\n\n"
|
21
25
|
|
@@ -15,7 +15,11 @@ module Specific
|
|
15
15
|
grouped_features = @spec.features.group_by(&:group)
|
16
16
|
|
17
17
|
grouped_features.each do |group, features|
|
18
|
-
|
18
|
+
if group
|
19
|
+
group_title = "Group '#{group.name}'"
|
20
|
+
else
|
21
|
+
group_title = "Ungrouped"
|
22
|
+
end
|
19
23
|
|
20
24
|
out << group_title + "\n"
|
21
25
|
out << "="*group_title.size + "\n"
|
data/lib/specific/version.rb
CHANGED