rspec-sonarqube-formatter 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: 93972356452ed71c7faa406e7bbf606ecd50f3e132b0e069275b512b31f600b1
4
- data.tar.gz: a93154e5011e94d1d0803600e8b3e1ebad2681e8546d8f75619c193ef11f900c
3
+ metadata.gz: ef424483d247fd4aa4c43b094723e01662b069d35ab1995537e4f77b9b37b8ae
4
+ data.tar.gz: 70d55f43dad49c2652971f8e750250dabe7d6bbd755829f33320fce98c5dd0f7
5
5
  SHA512:
6
- metadata.gz: 7615b6c9602c81f122a17ca9721eb4fe2ab25d1a36793cfa931d68dc8e99a0eed4b1e0e6c9bc1ed7203037e098fb875e9e7f3503490434e9ce5c208c665e1fa3
7
- data.tar.gz: 0de1ff8fffa56043ee5145981cda0b56e2bf04bd8c319a24e1efcafe9316a62725423f8e44c02b4b7dd852b47df47a0924f505ccc1c9bef4d922c5785ed8ee5a
6
+ metadata.gz: cce8ac04f3ee6794e3b1859e8498c31ce4f8001fc53ab5724263337ad96f878d4b35d4406921149f6827c83da0c305f21e6109baa44bd57cddf9691ab00304a7
7
+ data.tar.gz: 2b216e5bbc402bf93a9022d5490853807659a389a96db24db13c83df4319e0f2c898540ca80a4621abfe040847d936c92ace8b5a51bc1b3f06023f9de03ebdea
@@ -42,7 +42,7 @@ notifications:
42
42
 
43
43
  deploy:
44
44
  - provider: rubygems
45
- skip_cleanup: true
45
+ cleanup: false
46
46
  api_key:
47
47
  secure: fThOZtHGWfz6JCETpxPtY5/Q/2JwuRMPdtnkUH+591p8ymLfCPW/1UlmJiETvKVVScFh5tLnCKp7bFPhi3/U3Ld1A1c/sG7A+ibpi4kWegiz4V99aAl8Rn/GxL/Bfzx/JTFKXtdgVig5m2vvhSiOHnN/8go18YUXsMKdC9s9pRQBNnv+reVUgiGj88W0NjhtPrBGNtKqk/eekGdjEvdwAYlAAgQ6ZeXgepK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JhPQay1a1h/jLfX5hp0wSjUeiyZKmdKYOu/6a4myrq+GHaUwtGyWcAk1DzX0d1sMptSKKmj56vjAiLZtGawVazkMdYzMZ5szOCI2wz1ps2A+3h28TL8UOSGCjZgx3dyuXBY9QHweEAJqDy7FlFN8=
56
56
  file: "*.gem"
57
- skip_cleanup: true
57
+ cleanup: false
58
58
  on:
59
59
  tags: true
60
60
  rvm: 2.6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-sonarqube-formatter (1.1.0)
4
+ rspec-sonarqube-formatter (1.0.0.pre.local)
5
5
  rspec (~> 3.0)
6
6
 
7
7
  GEM
@@ -0,0 +1,20 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ These versions are supported:
6
+
7
+ | Version | Supported |
8
+ | ------- | ------------------ |
9
+ | 1.1.0 | :white_check_mark: |
10
+ | 1.0.0 | :white_check_mark: |
11
+ | < 1.0 | :x: |
12
+
13
+ ## Reporting a Vulnerability
14
+
15
+ Please report any vulnerabilities
16
+ [as an issue](https://github.com/otherguy/rspec-sonarqube-formatter/issues)
17
+ and tag it with `security`.
18
+
19
+ Expect a response within 24 hours. Any vulnerabilities will be fixed
20
+ within a reasonable time frame.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'htmlentities'
4
+
3
5
  class RspecSonarqubeFormatter
4
6
  ::RSpec::Core::Formatters.register self,
5
7
  :start, :stop, :example_group_started, :example_started, :example_passed, :example_failed, :example_pending
@@ -39,7 +41,7 @@ class RspecSonarqubeFormatter
39
41
 
40
42
  def example_failed(notification)
41
43
  @output.puts " <testCase name=\"#{clean_string(notification.example.description)}\" duration=\"#{duration(notification.example)}\">"
42
- @output.puts " <failure message=\"#{notification.exception}\" stacktrace=\"#{notification.example.location}\" />"
44
+ @output.puts " <failure message=\"#{clean_string(notification.exception)}\" stacktrace=\"#{clean_string(notification.example.location)}\" />"
43
45
  @output.puts ' </testCase>'
44
46
  end
45
47
 
@@ -50,7 +52,7 @@ class RspecSonarqubeFormatter
50
52
  end
51
53
 
52
54
  def clean_string(input)
53
- input.to_s.gsub(/\e\[\d;*\d*m/, '').tr('"', "'")
55
+ HTMLEntities.new.encode input.to_s.gsub(/\e\[\d;*\d*m/, '').tr('"', "'")
54
56
  end
55
57
 
56
58
  def duration(example)
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
+ spec.add_dependency 'htmlentities', '~> 4.3.3'
34
35
  spec.add_dependency 'rspec', '~> 3.0'
35
36
  spec.add_development_dependency 'bundler', '~> 2.0.2'
36
37
  spec.add_development_dependency 'coveralls', '~> 0.8.23'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-sonarqube-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Graf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-05 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: htmlentities
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.3.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.3.3
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +146,7 @@ files:
132
146
  - LICENSE.md
133
147
  - README.md
134
148
  - Rakefile
149
+ - SECURITY.md
135
150
  - documentation/sonarcloud.png
136
151
  - lib/rspec_sonarqube_formatter.rb
137
152
  - rspec-sonarqube-formatter.gemspec