jahtml_formatter 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5b6df814f203aa2cd4c2c94180f38112cf96fe3
4
+ data.tar.gz: b892f041c4df266d5ef515e28499a2a020ea7021
5
+ SHA512:
6
+ metadata.gz: a2feef6faf93764424ba4f5b09b5df5673ca47ab20550ac4586d78afe547226af2a1dd8e2c4412c2071a7a085eae2dca9c60ebb922f4c5e06b5788a63128628c
7
+ data.tar.gz: 602cebfbbc3145f028efc14a1e0144d83823850c227915bce1dee707e249ea6ab58af7f320ca48b01a91f9ebe7b56fc98823db7a8a162cccaf598a6f4cfd9d0e
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Martin Westin
1
+ Copyright (c) 2012-2013 Martin Westin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "jahtml_formatter"
5
- s.version = '1.0.4'
5
+ s.version = '1.0.5'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Martin Westin"]
8
8
  s.email = ["martin@eimermusic.com"]
@@ -15,5 +15,5 @@ Gem::Specification.new do |s|
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.add_dependency('rspec', ["~> 2.0"])
18
+ s.add_dependency('rspec', ["~> 2.14"])
19
19
  end
@@ -27,7 +27,7 @@ require 'erb'
27
27
  @output.puts " <dd class=\"example passed\"><span class=\"passed_spec_name\">#{h(description)}</span><span class='duration'>#{formatted_run_time}s</span></dd>"
28
28
  end
29
29
 
30
- def print_example_failed( pending_fixed, description, run_time, failure_id, exception, extra_content )
30
+ def print_example_failed( pending_fixed, description, run_time, failure_id, exception, extra_content, escape_backtrace = false )
31
31
  formatted_run_time = sprintf("%.5f", run_time)
32
32
 
33
33
  @output.puts " <dd class=\"example #{pending_fixed ? 'pending_fixed' : 'failed'}\">"
@@ -36,7 +36,11 @@ require 'erb'
36
36
  @output.puts " <div class=\"failure\" id=\"failure_#{failure_id}\">"
37
37
  if exception
38
38
  @output.puts " <div class=\"message\"><pre>#{h(exception[:message])}</pre></div>"
39
- @output.puts " <div class=\"backtrace\"><pre>#{exception[:backtrace]}</pre></div>"
39
+ if escape_backtrace
40
+ @output.puts " <div class=\"backtrace\"><pre>#{h exception[:backtrace]}</pre></div>"
41
+ else
42
+ @output.puts " <div class=\"backtrace\"><pre>#{exception[:backtrace]}</pre></div>"
43
+ end
40
44
  end
41
45
  @output.puts extra_content if extra_content
42
46
  @output.puts " </div>"
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jahtml_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
5
- prerelease:
4
+ version: 1.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Martin Westin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-12 00:00:00.000000000 Z
11
+ date: 2013-09-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '2.0'
19
+ version: '2.14'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '2.0'
26
+ version: '2.14'
30
27
  description: Tweaked rspec html formatter. More suitable for pdf generation. At least
31
28
  for me.
32
29
  email:
@@ -47,27 +44,25 @@ files:
47
44
  - lib/jahtml_printer.rb
48
45
  homepage: https://github.com/eimermusic/jahtml_formatter
49
46
  licenses: []
47
+ metadata: {}
50
48
  post_install_message:
51
49
  rdoc_options: []
52
50
  require_paths:
53
51
  - lib
54
52
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
53
  requirements:
57
- - - ! '>='
54
+ - - '>='
58
55
  - !ruby/object:Gem::Version
59
56
  version: '0'
60
57
  required_rubygems_version: !ruby/object:Gem::Requirement
61
- none: false
62
58
  requirements:
63
- - - ! '>='
59
+ - - '>='
64
60
  - !ruby/object:Gem::Version
65
61
  version: '0'
66
62
  requirements: []
67
63
  rubyforge_project:
68
- rubygems_version: 1.8.23
64
+ rubygems_version: 2.0.2
69
65
  signing_key:
70
- specification_version: 3
66
+ specification_version: 4
71
67
  summary: Tweaked rspec html formatter. More suitable for pdf generation.
72
68
  test_files: []
73
- has_rdoc: