rspec-sonarqube-formatter 0.0.1.pre.alpha.pre.36 → 0.0.1

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: f4a26531408acaeefdd3b2fd7ed68f6fbb859b3dac2b9a29bbf5cc2befe66794
4
- data.tar.gz: e2bf5be8c8300bbf8f2e136449134cdd875d57acae9f04818e30ed127813e607
3
+ metadata.gz: 38a060c9e4535a6929c2ed5f6c6a7ba8f46095fc61f6d93f7a98a60994453ee9
4
+ data.tar.gz: f14b4ac1ac39937faf3348639813461ae62de251754f95c943a357fe200812ae
5
5
  SHA512:
6
- metadata.gz: 053b645abdb79e99849fd25d415dc1227b2fc80ba4b86932d91aafbcaa84253ece2f69f8f3ec05bf2eb79f51193271fe99d3dd6226c5c4f97e0f0ce43f3b15df
7
- data.tar.gz: a6a79341b17a588057a45ffbea9dd1a891b56ada62eba1b30ee8b961cc6d10f46f107fcd5d1619737e0c34ae6c227f8b104361d5376c95bc44049d7f3957e25b
6
+ metadata.gz: 34bbb74c49907fdc8a79391a868acc6f2368ab764e9cdd9a00e0b5a1aa0a12a5758a05fc8d69568878c1d2f82026911f96bd8338908363941f0936d80908f848
7
+ data.tar.gz: 95cf9508b6f2a375101cfdeac8da981896c21ddaea72d0711c58d8fdf73407baaccb35c2ace0ed3df1b713538cc4061107080ed101cfa575d74a0022daafb7d7
data/.gitignore CHANGED
@@ -1,4 +1,6 @@
1
1
  ### macOS ###
2
+
3
+ # General
2
4
  .DS_Store
3
5
  .AppleDouble
4
6
  .LSOverride
@@ -15,15 +17,16 @@
15
17
  .VolumeIcon.icns
16
18
  .com.apple.timemachine.donotpresent
17
19
 
18
-
19
20
  ### VisualStudioCode ###
20
21
  .vscode/*
21
22
  !.vscode/settings.json
22
23
  !.vscode/tasks.json
23
24
  !.vscode/launch.json
24
25
  !.vscode/extensions.json
25
- .history
26
26
 
27
+ ### VisualStudioCode Patch ###
28
+ # Ignore all local history of files
29
+ .history
27
30
 
28
31
  ### Application ###
29
32
  .rspec_status
@@ -32,6 +35,3 @@ test-report.xml
32
35
  .scannerwork
33
36
  rubocop.json
34
37
  .idea
35
- *.gem
36
- .bundle/
37
- cc-test-reporter
data/.travis.yml CHANGED
@@ -41,20 +41,8 @@ notifications:
41
41
  secure: vPOzM6Sg5OQKgkzAnKOeSGFwpfslmSynoTJ1UiNa3b4qeZPHqabs+IGe54gtWEepC3YqlcIjZ8pLoKDYJP4xic75RILeeVs1Ya//5/0yiUshE/yKWvHDY7p6ozKo0LAgX9Ean9q5OvMDJXBImoBBmqKyfNOT/IVKMML2d/LwK2MJQuJmOjWQS++f8l4ZTbnoLC59uPP6MvaPf0QktspxTEP5sKjDd/5DDkzkBGueu8jFHzXjkjozrj6rRk1Jiexh9BsNJCFnz3/nurrg1NXCNlFk0BLCcop5VTKjuibSqO+U8x5DAon2nuFz7dVAi7vC8l9fL/pnYhb5x2e2XXt3VtisadG302ysVekFlDCzQ+zD4LudzBQDaOH8OQW+5+noK8qDXV0IAPeKZzT8Nb1/LkJMiNzVQiLHlOYThDGUj9+9qb6MsigzxFUjhTQN5XmarVy7p2xMO5pzNPXIPd2dEJVrabaFWoOL+Qog/Om8GBKmxsToJR8f6oVk8SDK3Q9cPjoZQoujyRiK3acTK+srT+J2nCnPwU0Sy/RRRbvmvIUDwNbJ8jkeYBs0y1aXk8SsMKRqzdrLNq/5YvyjzzMUGzrDdJAkqywwIV0ROLdsqBC+cIPAJoJF7s5b7kTM1EGy01IuLGxJ8EJ3UYOl1KXRzoAafBb6pWEL34Tu0OSMj3Q=
42
42
 
43
43
  deploy:
44
- - provider: rubygems
45
- skip_cleanup: true
46
- api_key:
47
- secure: fThOZtHGWfz6JCETpxPtY5/Q/2JwuRMPdtnkUH+591p8ymLfCPW/1UlmJiETvKVVScFh5tLnCKp7bFPhi3/U3Ld1A1c/sG7A+ibpi4kWegiz4V99aAl8Rn/GxL/Bfzx/JTFKXtdgVig5m2vvhSiO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sMQ05PcSc1GZG5rJ+sgbapbTLhss3ygsXPpJg7Tfu3JzJ6zAHrPc/I3HWVvYV2mz7rqhKiXVHKEDN9yULDGIBKgrNZmvyinJhPQay1a1h/jLfX5hp0wSjUeiyZKmdKYOu/6a4myrq+GHaUwtGyWcAk1DzX0d1sMptSKKmj56vjAiLZtGawVazkMdYzMZ5szOCI2wz1ps2A+3h28TL8UOSGCjZgx3dyuXBY9QHweEAJqDy7FlFN8=
56
- file: "*.gem"
57
- skip_cleanup: true
58
- on:
59
- tags: true
60
- rvm: 2.6
44
+ provider: rubygems
45
+ api_key: "6146a2575bc6372332977cea56de7094"
46
+ on:
47
+ tags: true
48
+ gemspec: my-gemspec.gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-sonarqube-formatter (0.0.1.pre.alpha.pre.36)
4
+ rspec-sonarqube-formatter (1.0.0)
5
5
  rspec (~> 3.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -11,7 +11,7 @@ Rspec formatter to generates an xml file for SonarQube, using the generec-test-d
11
11
  [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/otherguy/rspec-sonarqube-formatter)][codeclimate]
12
12
  [![License](https://img.shields.io/github/license/otherguy/rspec-sonarqube-formatter)][license]
13
13
 
14
- [rubygems]: https://rubygems.org/gems/rspec-sonarqube-formatter
14
+ [rubygems]: xxx
15
15
  [issues]: https://github.com/otherguy/rspec-sonarqube-formatter/issues
16
16
  [travis]: https://travis-ci.com/otherguy/rspec-sonarqube-formatter
17
17
  [coveralls]: https://coveralls.io/github/otherguy/rspec-sonarqube-formatter
@@ -28,3 +28,71 @@ bundle install
28
28
 
29
29
  Tests:
30
30
  bundle exec rake spec
31
+
32
+
33
+ ## Installation
34
+
35
+ Add this line to your application's `Gemfile`:
36
+
37
+ ```ruby
38
+ gem 'rspec_sonarqube_formatter'
39
+ ```
40
+
41
+ And then execute:
42
+
43
+ $ bundle
44
+
45
+ Or install it yourself as:
46
+
47
+ $ gem install rspec_sonar_formatter
48
+
49
+ ## Usage
50
+
51
+ Add the following in your spec/spec_helper.rb :
52
+
53
+ ```ruby
54
+ RSpec.configure do |c|
55
+ c.formatter = 'documentation'
56
+ c.add_formatter('RSpec::RspecSonarFormatter::Formatter', 'junit/reports_sonar.xml')
57
+ ...
58
+ end
59
+ ```
60
+
61
+ and add the following option to the sonar-scanner configuration, after you have run your rspec tests:
62
+
63
+ ```bash
64
+ testExecutionReportPaths=junit/reports_sonar.xml
65
+ ```
66
+
67
+ If you are using a jenkins file, this can be done like:
68
+
69
+ ```java
70
+ stage('SonarQube Analysis') {
71
+ steps {
72
+ withSonarQubeEnv('Sonarqube puppet 6.7.1 LTS') {
73
+ sh '''
74
+ /opt/sonar-scanner/bin/sonar-scanner \
75
+ --define "sonar.projectKey=puppet:${gitlabSourceRepoName}" \
76
+ --define "sonar.projectName=${gitlabSourceRepoName}" \
77
+ --define "sonar.projectVersion=${BUILD_ID}-${gitlabMergeRequestIid}" \
78
+ --define "sonar.exclusions=spec/fixtures/**/*" \
79
+ --define "sonar.testExecutionReportPaths=junit/reports_sonar.xml" \
80
+ --define "sonar.sources=."
81
+ '''
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ ## Development
88
+
89
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the
90
+ tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
91
+
92
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
93
+ version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the
94
+ version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
95
+
96
+ ## Contributing
97
+
98
+ Bug reports and pull requests are welcome on GitHub at https://github.com/witjoh/rspec_sonar_formatter.
@@ -5,13 +5,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'rspec-sonarqube-formatter'
8
-
9
- # rubocop:disable Gemspec/DuplicatedAssignment
10
8
  spec.version = '0.0.1'
11
9
  spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
12
- # rubocop:enable Gemspec/DuplicatedAssignment
13
-
14
10
  spec.platform = Gem::Platform::RUBY
11
+
15
12
  spec.authors = ['Alexander Graf']
16
13
  spec.email = ['alex@otherguy.uo']
17
14
 
@@ -21,7 +18,7 @@ Gem::Specification.new do |spec|
21
18
  }
22
19
 
23
20
  spec.summary = 'Generic test data formatter for SonarQube'
24
- spec.description = 'Generates an XML report that the SonarQube Generic Test Data parser can understand'
21
+ spec.description = 'Generates an report that the SonarQube Generic Test Data parser understands'
25
22
  spec.homepage = 'https://github.com/otherguy/rspec-sonarqube-formatter'
26
23
  spec.license = 'MIT'
27
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-sonarqube-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.alpha.pre.36
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Graf
@@ -108,8 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.2.0
111
- description: Generates an XML report that the SonarQube Generic Test Data parser can
112
- understand
111
+ description: Generates an report that the SonarQube Generic Test Data parser understands
113
112
  email:
114
113
  - alex@otherguy.uo
115
114
  executables: []
@@ -133,7 +132,7 @@ files:
133
132
  - README.md
134
133
  - Rakefile
135
134
  - lib/rspec_sonarqube_formatter.rb
136
- - rspec-sonarqube-formatter.gemspec
135
+ - rspec_sonarqube_formatter.gemspec
137
136
  - sonar-project.properties
138
137
  homepage: https://github.com/otherguy/rspec-sonarqube-formatter
139
138
  licenses:
@@ -152,12 +151,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
151
  version: '0'
153
152
  required_rubygems_version: !ruby/object:Gem::Requirement
154
153
  requirements:
155
- - - ">"
154
+ - - ">="
156
155
  - !ruby/object:Gem::Version
157
- version: 1.3.1
156
+ version: '0'
158
157
  requirements: []
159
- rubyforge_project:
160
- rubygems_version: 2.7.7
158
+ rubygems_version: 3.0.3
161
159
  signing_key:
162
160
  specification_version: 4
163
161
  summary: Generic test data formatter for SonarQube