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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03c683dbe483dcb944eadb334058f6da81058b7bae8fc203c7f288c60fbe647e
4
- data.tar.gz: 0d7f722f5ffd1dcea27d2a479f47081447bae1590cac958569af924f7bad2dd0
3
+ metadata.gz: 65b57db331194bbdfaee75010373a4badb7d084f36fba7cfd1a7aa8d738c545a
4
+ data.tar.gz: 60aeec6b0563b306768f586788a850e9ed4a2aaed8f8284216253fcaf024ea31
5
5
  SHA512:
6
- metadata.gz: a719c58ccae7cfe082bd6cdb71d6147d3795c733de7a8217ea0d64838f98542c4c741c39b4a1ffeb0dd55ef44e662ed6929780ecb7df7144d546b23b87f3378f
7
- data.tar.gz: b0bd8e82b5cc3ce8f4daa5fb405ae8d6eb63032527d37531db79ea68f315df839d236aa4142e886110d33c233103ad50196a94c79eae14c951819d4e0a6e7860
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://circleci.com/gh/packsaddle/ruby-saddler-reporter-github
118
- [ci-image]: https://img.shields.io/circleci/build/github/packsaddle/ruby-saddler-reporter-github?style=flat-square
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['checkstyle']['file'] ||= []
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['checkstyle']['file'] ||= []
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'] ||= []
@@ -1,7 +1,7 @@
1
1
  module Saddler
2
2
  module Reporter
3
3
  module Github
4
- VERSION = '2.1.0'.freeze
4
+ VERSION = '2.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
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.0
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: 2021-11-07 00:00:00.000000000 Z
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.1.6
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"]