soda 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/SodaLogReporter.rb +19 -2
  2. data/lib/sodainfo.rb +1 -1
  3. metadata +3 -3
@@ -614,6 +614,18 @@ HTML
614
614
  return row_data
615
615
  end
616
616
 
617
+ ###############################################################################
618
+ # FormatScreenShot -- Method
619
+ # This method converts the screenshot log file line into a nice html
620
+ # item for the html log.
621
+ #
622
+ # Input:
623
+ # line: This is the SODA log file line to format.
624
+ #
625
+ # Output:
626
+ # a row_data hash.
627
+ #
628
+ ###############################################################################
617
629
  def FormatScreenShot(line)
618
630
  row_data = Hash.new()
619
631
  line =~ /\[(\d+\/\d+\/\d+-\d+:\d+:\d+)\](\(.\))(.*)/
@@ -622,8 +634,13 @@ HTML
622
634
  msg = "#{$3}"
623
635
  row_html = ""
624
636
 
625
- data = msg.split(/:/)
626
- msg = "<b>#{data[0]}:</b> <a href=\"file://#{data[1]}\">#{data[1]}</a>"
637
+ data = msg.split(/:\s/)
638
+
639
+ data[1] = File.basename(data[1])
640
+
641
+ print "(*)#{data[1]}\n"
642
+
643
+ msg = "<b>#{data[0]}:</b> <a href=\"#{data[1]}\">#{data[1]}</a>"
627
644
  row_data['msg'] = msg
628
645
 
629
646
  return row_data
data/lib/sodainfo.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require 'Soda'
2
2
 
3
- SODA_GEM_VERSION = "1.0.4"
3
+ SODA_GEM_VERSION = "1.0.5"
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond