saddler-reporter-github 2.1.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +26 -0
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/saddler/reporter/github/helper.rb +2 -2
- data/lib/saddler/reporter/github/version.rb +1 -1
- metadata +7 -7
- data/.circleci/config.yml +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65b57db331194bbdfaee75010373a4badb7d084f36fba7cfd1a7aa8d738c545a
|
|
4
|
+
data.tar.gz: 60aeec6b0563b306768f586788a850e9ed4a2aaed8f8284216253fcaf024ea31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b124eb43f4184b577777e8af1b4385689ce9e59e9e3d1eb37fce7447aeeed37ea423b3afd3e2353a5ad0bdf3c8ba2999c4078f7b192145c65cab0963f5e2b62
|
|
7
|
+
data.tar.gz: b1ea4d05496964c50bb9e97130c24fdeea684df3f98cab16ae3bc1ca052f4dcf3f2a73847c54d7a74d17ab5418334de693a96a83c0e9c5a34f605a7c58423da1
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- master
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
ruby:
|
|
16
|
+
- '3.3'
|
|
17
|
+
- '3.2'
|
|
18
|
+
- '3.1'
|
|
19
|
+
- '3.0'
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [2.1.1](https://github.com/packsaddle/ruby-saddler-reporter-github/compare/v2.1.0...v2.1.1) (2024-05-25)
|
|
2
|
+
|
|
3
|
+
* **helper:** Use dig ([7c4de29](https://github.com/packsaddle/ruby-saddler-reporter-github/commit/7c4de29))
|
|
4
|
+
|
|
1
5
|
# [2.1.0](https://github.com/packsaddle/ruby-saddler-reporter-github/compare/v2.0.0...v2.1.0) (2021-11-07)
|
|
2
6
|
|
|
3
7
|
* Relax git_diff_parser version
|
data/README.md
CHANGED
|
@@ -114,8 +114,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
114
114
|
|
|
115
115
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
116
116
|
|
|
117
|
-
[ci-url]: https://
|
|
118
|
-
[ci-image]: https://img.shields.io/
|
|
117
|
+
[ci-url]: https://github.com/packsaddle/ruby-saddler-reporter-github/actions/workflows/ci.yml
|
|
118
|
+
[ci-image]: https://img.shields.io/github/actions/workflow/status/packsaddle/ruby-saddler-reporter-github/ci.yml?style=flat-square
|
|
119
119
|
[gem-url]: https://rubygems.org/gems/saddler-reporter-github
|
|
120
120
|
[gem-image]: http://img.shields.io/gem/v/saddler-reporter-github.svg?style=flat-square
|
|
121
121
|
[docs-url]: http://www.rubydoc.info/gems/saddler-reporter-github
|
|
@@ -10,7 +10,7 @@ module Saddler
|
|
|
10
10
|
# @return [String] concatenated errors. separated with new line.
|
|
11
11
|
def concat_body(data)
|
|
12
12
|
buffer = []
|
|
13
|
-
files = data
|
|
13
|
+
files = data.dig('checkstyle', 'file') || []
|
|
14
14
|
files = [files] if files.is_a?(Hash)
|
|
15
15
|
files.each do |file|
|
|
16
16
|
errors = file['error'] ||= []
|
|
@@ -32,7 +32,7 @@ module Saddler
|
|
|
32
32
|
# @return [Array<Comment>] comment objects
|
|
33
33
|
def build_comments_with_patches(data, patches)
|
|
34
34
|
comments = []
|
|
35
|
-
files = data
|
|
35
|
+
files = data.dig('checkstyle', 'file') || []
|
|
36
36
|
files = [files] if files.is_a?(Hash)
|
|
37
37
|
files.each do |file|
|
|
38
38
|
errors = file['error'] ||= []
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saddler-reporter-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sanemat
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|
|
@@ -135,8 +135,8 @@ executables: []
|
|
|
135
135
|
extensions: []
|
|
136
136
|
extra_rdoc_files: []
|
|
137
137
|
files:
|
|
138
|
-
- ".circleci/config.yml"
|
|
139
138
|
- ".conventional-changelog.context.js"
|
|
139
|
+
- ".github/workflows/ci.yml"
|
|
140
140
|
- ".gitignore"
|
|
141
141
|
- ".rubocop.yml"
|
|
142
142
|
- CHANGELOG.md
|
|
@@ -164,7 +164,7 @@ homepage: https://github.com/packsaddle/ruby-saddler-reporter-github
|
|
|
164
164
|
licenses:
|
|
165
165
|
- MIT
|
|
166
166
|
metadata: {}
|
|
167
|
-
post_install_message:
|
|
167
|
+
post_install_message:
|
|
168
168
|
rdoc_options: []
|
|
169
169
|
require_paths:
|
|
170
170
|
- lib
|
|
@@ -179,8 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
180
|
version: '0'
|
|
181
181
|
requirements: []
|
|
182
|
-
rubygems_version: 3.
|
|
183
|
-
signing_key:
|
|
182
|
+
rubygems_version: 3.3.26
|
|
183
|
+
signing_key:
|
|
184
184
|
specification_version: 4
|
|
185
185
|
summary: Saddler reporter for GitHub.
|
|
186
186
|
test_files: []
|
data/.circleci/config.yml
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
version: 2.1
|
|
2
|
-
orbs:
|
|
3
|
-
ruby: circleci/ruby@1.2
|
|
4
|
-
|
|
5
|
-
executors:
|
|
6
|
-
linux:
|
|
7
|
-
docker:
|
|
8
|
-
- image: cimg/base:stable
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
test:
|
|
12
|
-
parameters:
|
|
13
|
-
os:
|
|
14
|
-
type: executor
|
|
15
|
-
ruby-version:
|
|
16
|
-
type: string
|
|
17
|
-
executor: << parameters.os >>
|
|
18
|
-
steps:
|
|
19
|
-
- checkout
|
|
20
|
-
- ruby/install:
|
|
21
|
-
version: << parameters.ruby-version >>
|
|
22
|
-
- run:
|
|
23
|
-
name: bundle install
|
|
24
|
-
command: bundle install
|
|
25
|
-
- run:
|
|
26
|
-
name: test
|
|
27
|
-
command: bundle exec rake
|
|
28
|
-
workflows:
|
|
29
|
-
all-tests:
|
|
30
|
-
jobs:
|
|
31
|
-
- test:
|
|
32
|
-
matrix:
|
|
33
|
-
parameters:
|
|
34
|
-
os: [linux]
|
|
35
|
-
ruby-version: ["2.6", "2.7", "3.0"]
|