danger-ktlint 0.0.8 → 0.0.9

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: dc1ee245bea9673a3e729ac4e2d97a8ecbb3874d5611fd66dcbae2680394228a
4
- data.tar.gz: ad171ca2a7277cd353a0063ab7c83affaa50c3af00916d821a416e2060bbcb2b
3
+ metadata.gz: cfc32999a67bcd5237b8a60e6ccb01bcaf200f0b390ca7b6905c16da1a3a02ef
4
+ data.tar.gz: 34d4bfc24e8792edc0f7e242384502688f4828ef8d40dc362b2589c0c5ed8996
5
5
  SHA512:
6
- metadata.gz: cb56b1dc3bae9fb5564370370af3194c887a105d893af0e79df0f87bef159d86dbb6c1cbe8d1e73bc8077c08ddb2c4c1ab6522c0bc913adec130dff2f8c3dbf8
7
- data.tar.gz: 91a696b9a9ad8aafa5896be3e8121ea38bdc72ff032e7a4478935ac0b8b5ab29e21ecdb971107aa03d3d48767c2e65a198b50a723278a544f54c6c5e50773e77
6
+ metadata.gz: 76370cac3a76f4d05a70f682db0c6eda85f02732ba15f6777dd5fbe0a20e02f105bec0d12d47e438b06aba9ddda69c5c054dfba8bbde1965ac20049c3a844bdc
7
+ data.tar.gz: c756a585fe088c13d16a35e80e6528d611c0baf98383f85586d620a11dd63f6aed0e3e59675edacdc5367ca5af9ff124e66e2d7f69ba30af2fe77ff7bc7e26d1
@@ -6,12 +6,15 @@ jobs:
6
6
  test:
7
7
  name: Run spec
8
8
  runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
9
12
 
10
13
  steps:
11
14
  - uses: actions/checkout@v2
12
15
  - uses: ruby/setup-ruby@v1
13
16
  with:
14
- ruby-version: 3.0.1
17
+ ruby-version: ${{ matrix.ruby-version }}
15
18
  bundler-cache: true
16
19
  - name: Run spec
17
20
  run: |
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+
4
+ ## 0.0.9
5
+ - Support Ruby 3.2 [#17](https://github.com/mataku/danger-ktlint/pull/17)
6
+
3
7
  ## 0.0.8
4
8
  - Fix log format - [@DavidBertet](https://github.com/DavidBertet) [#14](https://github.com/mataku/danger-ktlint/pull/14)
5
9
  - Fix unit tests
@@ -1,3 +1,3 @@
1
1
  module Ktlint
2
- VERSION = "0.0.8".freeze
2
+ VERSION = "0.0.9".freeze
3
3
  end
data/lib/ktlint/plugin.rb CHANGED
@@ -177,7 +177,7 @@ module Danger
177
177
  end
178
178
 
179
179
  def ktlint_result_files
180
- if !report_file.nil? && !report_file.empty? && File.exists?(report_file)
180
+ if !report_file.nil? && !report_file.empty? && File.exist?(report_file)
181
181
  [report_file]
182
182
  elsif !report_files_pattern.nil? && !report_files_pattern.empty?
183
183
  Dir.glob(report_files_pattern)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-ktlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - mataku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-08 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -151,7 +151,7 @@ homepage: https://github.com/mataku/danger-ktlint
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}
154
- post_install_message:
154
+ post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.1.6
170
- signing_key:
169
+ rubygems_version: 3.4.13
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: Lint kotlin files using ktlint command line interface.
173
173
  test_files: