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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75d925fb646f10a5c59ccd9f9d2d5bf82689152c
4
- data.tar.gz: 675591ce3513a715b33db42f791a2b38004e27a3
3
+ metadata.gz: 1b02502d933653cb61bb727b4a9ea92419e0fe01
4
+ data.tar.gz: ce1117efeedb11a8b6550b0a1c13f1410d9bb96a
5
5
  SHA512:
6
- metadata.gz: 77c08c08bf6aa7306f665e48e31bdafd0ff0b0a2bdf0cb43241a254be66016849757dd870a167fad86146bc5d93f3267d78014b3c6fea2dfaa3d9172fbfce5b9
7
- data.tar.gz: a58591ddea153b6d031cfd8bab65add0305cfed51cc929198cb29ae5567640a734e903af3b09a580b687439e2732c94d53783a02aa77ab6f32922bcb30e52ed3
6
+ metadata.gz: 0c6f121d41ef77bb4b6262d2082ce48dd78edef56dcc6d33557d0ab93cfb1a817ed6ec33cc3d5d7f83347eabc4ecba4d3cda5df42579cc9884b05cf6b821b006
7
+ data.tar.gz: 215204111a0a3e27314b062d91630da275e383639f3fee9999201cd3dc450cec81b768e1cd22d760adde6ae739f53a4bbdd7ae7937036d5a67382424040339c2
@@ -113,8 +113,12 @@ module Html
113
113
  </ul>
114
114
  </div>
115
115
 
116
- <div class="panel-footer scenario-screenshot">
117
- <a href="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'"><img src="../screenshots/'+feature[:filename]+'/'+scenario[:screenshot]+'" /></a>
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
 
@@ -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: nil,
85
+ feature_name: "",
85
86
  feature_description: [],
86
87
  context_name: nil,
87
88
  context_description: [],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aipim-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.166
4
+ version: 0.0.168
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facta TI