brief 1.17.3 → 1.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/apps/blueprint/models/epic.rb +4 -2
- data/lib/brief/document/source_map.rb +4 -1
- data/lib/brief/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: ccbb8086f73b327e3b5b59a693d50c687ab1a85b
|
4
|
+
data.tar.gz: d0e9ed96ee7343f2868eb0f56ccae7410be2ec65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac5059fce7f8c5f5ac0b8ca8528f0fe586ee9f267088f97ec2b989d8e43b2c1059d8008bbeb52e4a1c1d47fada440ed4d6a9dead2be358412a5793af10fd881
|
7
|
+
data.tar.gz: 25c408b26caf984bda324671bad7c874d4063d76c9139e03352c3c166acbc894b2eaedac6894282b287f3ad9f7c1965926816d9cc809c1c81b58fdac58132994
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brief (1.17.
|
4
|
+
brief (1.17.4)
|
5
5
|
activesupport (> 3.2)
|
6
6
|
commander (~> 4.3)
|
7
7
|
em-websocket (~> 0.5)
|
@@ -78,19 +78,19 @@ GEM
|
|
78
78
|
rack-test (0.6.3)
|
79
79
|
rack (>= 1.0)
|
80
80
|
rake (0.9.6)
|
81
|
-
rspec (3.
|
82
|
-
rspec-core (~> 3.
|
83
|
-
rspec-expectations (~> 3.
|
84
|
-
rspec-mocks (~> 3.
|
85
|
-
rspec-core (3.
|
86
|
-
rspec-support (~> 3.
|
87
|
-
rspec-expectations (3.
|
81
|
+
rspec (3.3.0)
|
82
|
+
rspec-core (~> 3.3.0)
|
83
|
+
rspec-expectations (~> 3.3.0)
|
84
|
+
rspec-mocks (~> 3.3.0)
|
85
|
+
rspec-core (3.3.1)
|
86
|
+
rspec-support (~> 3.3.0)
|
87
|
+
rspec-expectations (3.3.0)
|
88
88
|
diff-lcs (>= 1.2.0, < 2.0)
|
89
|
-
rspec-support (~> 3.
|
90
|
-
rspec-mocks (3.
|
89
|
+
rspec-support (~> 3.3.0)
|
90
|
+
rspec-mocks (3.3.1)
|
91
91
|
diff-lcs (>= 1.2.0, < 2.0)
|
92
|
-
rspec-support (~> 3.
|
93
|
-
rspec-support (3.
|
92
|
+
rspec-support (~> 3.3.0)
|
93
|
+
rspec-support (3.3.0)
|
94
94
|
sawyer (0.6.0)
|
95
95
|
addressable (~> 2.3.5)
|
96
96
|
faraday (~> 0.8, < 0.10)
|
@@ -97,7 +97,7 @@ class Brief::Apps::Blueprint::Epic
|
|
97
97
|
path = feature_file_for(feature_heading)
|
98
98
|
FileUtils.mkdir_p(path.dirname)
|
99
99
|
|
100
|
-
c = generate_feature_content(
|
100
|
+
c = generate_feature_content(feature_heading)
|
101
101
|
|
102
102
|
path.open("w+") do |fh|
|
103
103
|
fh.write(c)
|
@@ -182,7 +182,9 @@ class Brief::Apps::Blueprint::Epic
|
|
182
182
|
errors = []
|
183
183
|
|
184
184
|
begin
|
185
|
-
features
|
185
|
+
if features.any? {|f| f.title.to_s.length == 0 }
|
186
|
+
errors.push "Feature is missing title. Should be an h2 element"
|
187
|
+
end
|
186
188
|
rescue => e
|
187
189
|
errors.push "Error generating features: #{ e.message }"
|
188
190
|
end
|
@@ -32,6 +32,9 @@ module Brief::Document::SourceMap
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def line_numbers_for_heading(heading_element, include_heading=true)
|
35
|
+
if heading_element.nil?
|
36
|
+
binding.pry
|
37
|
+
end
|
35
38
|
if heading_element.is_a?(String) && heading_element.length > 1
|
36
39
|
heading_element = heading_element_tags.find do |el|
|
37
40
|
el.attr('data-heading').include?(heading_element.strip.downcase) || el.text.to_s.strip.downcase.include?(heading_element.strip.downcase)
|
@@ -39,7 +42,7 @@ module Brief::Document::SourceMap
|
|
39
42
|
end
|
40
43
|
|
41
44
|
if heading_element.nil?
|
42
|
-
|
45
|
+
binding.pry
|
43
46
|
end
|
44
47
|
|
45
48
|
start_index = heading_element.attr('data-line-number').to_i
|
data/lib/brief/version.rb
CHANGED