aipim-rails 0.0.166 → 0.0.168
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aipim-rails/html.rb +6 -2
- data/lib/aipim-rails/parser.rb +2 -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: 1b02502d933653cb61bb727b4a9ea92419e0fe01
|
4
|
+
data.tar.gz: ce1117efeedb11a8b6550b0a1c13f1410d9bb96a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c6f121d41ef77bb4b6262d2082ce48dd78edef56dcc6d33557d0ab93cfb1a817ed6ec33cc3d5d7f83347eabc4ecba4d3cda5df42579cc9884b05cf6b821b006
|
7
|
+
data.tar.gz: 215204111a0a3e27314b062d91630da275e383639f3fee9999201cd3dc450cec81b768e1cd22d760adde6ae739f53a4bbdd7ae7937036d5a67382424040339c2
|
data/lib/aipim-rails/html.rb
CHANGED
@@ -113,8 +113,12 @@ module Html
|
|
113
113
|
</ul>
|
114
114
|
</div>
|
115
115
|
|
116
|
-
<div class="panel-footer scenario-screenshot">
|
117
|
-
|
116
|
+
<div class="panel-footer scenario-screenshot">'
|
117
|
+
if !scenario[:screenshot].nil? && !feature[:filename].nil?
|
118
|
+
output.puts '
|
119
|
+
<a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>'
|
120
|
+
end
|
121
|
+
output.puts '
|
118
122
|
</div>
|
119
123
|
</div>'
|
120
124
|
|
data/lib/aipim-rails/parser.rb
CHANGED
@@ -4,6 +4,7 @@ module Parser
|
|
4
4
|
|
5
5
|
# inicia o processo de parset
|
6
6
|
def self.init(filename)
|
7
|
+
system("mkdir -p aipim/screenshots/#{filename}")
|
7
8
|
parser(filename)
|
8
9
|
end
|
9
10
|
|
@@ -81,7 +82,7 @@ module Parser
|
|
81
82
|
screenshot: false,
|
82
83
|
screenshot_counter: 0,
|
83
84
|
screenshots: screenshots,
|
84
|
-
feature_name:
|
85
|
+
feature_name: "",
|
85
86
|
feature_description: [],
|
86
87
|
context_name: nil,
|
87
88
|
context_description: [],
|