rubbyReport 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubbyReport.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85ad31c1987be3b493591a27b94b739b3fae30b2491a709064893948e267a6ef
4
- data.tar.gz: 3a9fda6461e60be7a93672cc3fcbab41e7cd0ad179bc984448cd2e288e96da40
3
+ metadata.gz: 633bd378e94cd1fe823497d91c3506738bdf3c18fb2f6cd681d005ecfca48066
4
+ data.tar.gz: 95d0ff3583cf3f75352383a9abd29af928ac85b2658d3498a245ee1a1ee173e0
5
5
  SHA512:
6
- metadata.gz: 6cb7a53085377fb81e7d927dc6dea9f33b0a124f49cb76b5e07f86e26426f0bd2629769ba8aff38796b5c6a7617a9a92db21ecbc084eb6188d3bb0761020c9c5
7
- data.tar.gz: ad08a6552a58ec4784c10edd6526449351bd07e397e2e0c5067dc99c9c20c729338c4d1e6551ad5ef367ae29723876d24a742b2b06940968c1916afd164a1991
6
+ metadata.gz: 870ed4c6abeb207dd03fa2f597851a13c2d8817890546b22aae0e6d71a5fd9c4df708eb0671ce820cece6eb8dac1be5d568912e19a6cef2be20d56d85b773aa6
7
+ data.tar.gz: 143edf84448ee38744e457eb8b10eaedf1abec4f0fef4784bd261084a9732c8840cc83750c2dfe4ad1fa2471b992c686f904000a0541bb24c7ead6424c0321f0
data/lib/rubbyReport.rb CHANGED
@@ -17,12 +17,14 @@ class RubbyReport
17
17
  def run(description = "", key = "",template='basic')
18
18
  data = ReportData.new
19
19
  data.images_array = @images_list.map do |img|
20
- [img.split('@')[-2], generate_base_64_from_img_to_src(img)]
20
+ titulo_formatado = img.split('@')[-2]
21
+ titulo = titulo_formatado.nil? ? img.split('.')[0] : titulo_formatado
22
+ [titulo, generate_base_64_from_img_to_src(img)]
21
23
  end
22
24
  data.issue_description = description
23
25
  data.issue_key = key
24
- data.time = Time.now
25
- filename = key = '' ? "#{key}.html" : "report.html"
26
+ data.time = Time.now
27
+ filename = key == "" ? "report.html" : "#{key}.html"
26
28
 
27
29
  view = Report.new(template, data)
28
30
  File.write(filename, view.render)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubbyReport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tenorio