danger-android_lint 0.0.11 → 0.0.12

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: 79e5bfcae51d8156567b963bb7ac48ea67e0db8f2465c99746ffad9e922d4b12
4
- data.tar.gz: b9e3527bba12cbd1d88713a6bd33ced049ad8edf630c2e5820eb8065fbe63267
3
+ metadata.gz: 1ef6802abdd658676a4f468420f61b6b8cb5f159308b5956d10669eb24a064af
4
+ data.tar.gz: 3e832d957ecd0a5340c47c5bf1a8aaaad48b487854eb5362d67dd3824d237d72
5
5
  SHA512:
6
- metadata.gz: 1f8811a723a32f71f8e505259f0df20b737cf7e8aa545e0b825ac8840f4411214be825d195f0ba40baad8b35f91ab6aa153ba915deaafdc2b9aa732ff57b4ff3
7
- data.tar.gz: 43e252db44f9d9254315b70c640c37edc4f8ee2996f279ab3afb4131a5ed371fa1734887afe776f48f4fabc39f3979e7127e2de38d18034e2009f4335276c004
6
+ metadata.gz: ea599c3805e6433fff6bea20f13dc8fc2019af37f3f9b9755715c5e17b3794a60ecff1b255858fe5e5d8ca5c33979ee32bbbf22f30559d671eace731556a42a0
7
+ data.tar.gz: 23c41cf0cbd6f266d6f3ae1b34aace297994858cc8498a6ffcd35a1a09b79e8bb363558f84938c92aca3fcf40cab7d9f3b846b8488000b4a6fb6327408735b63
data/.circleci/config.yml CHANGED
@@ -1,13 +1,13 @@
1
1
  version: 2.1
2
2
  orbs:
3
- ruby: circleci/ruby@1.0
3
+ ruby: circleci/ruby@2.0
4
4
 
5
5
  jobs:
6
6
  build:
7
7
  docker:
8
- - image: circleci/ruby:2.7
8
+ - image: cimg/ruby:3.2.0
9
9
  steps:
10
10
  - checkout
11
- - run: gem install bundler:2.2.10
11
+ - run: gem install bundler:2.4.3
12
12
  - run: bundle install
13
13
  - run: bundle exec rake spec
data/.github/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @barbosa
1
+ * @loadsmart/mobile
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.12
2
+
3
+ - Support ruby 3.2.0, fix undefined method exists? for File:Class (#38) ([@irgaly](https://github.com/irgaly))
4
+
1
5
  # 0.0.11
2
6
 
3
7
  - Add `excluding_issue_ids` parameter to skip showing issues with the given IDs, e.g. "MissingTranslation" ([@petitJAM](https://github.com/petitJAM))
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-android_lint (0.0.11)
4
+ danger-android_lint (0.0.12)
5
5
  danger-plugin-api (~> 1.0)
6
6
  oga
7
7
 
@@ -155,8 +155,9 @@ GEM
155
155
  yard (0.9.26)
156
156
 
157
157
  PLATFORMS
158
+ arm64-darwin-21
158
159
  universal-darwin-20
159
- x86_64-darwin-21
160
+ x86_64-darwin-22
160
161
  x86_64-linux
161
162
 
162
163
  DEPENDENCIES
@@ -172,4 +173,4 @@ DEPENDENCIES
172
173
  yard (~> 0.9.11)
173
174
 
174
175
  BUNDLED WITH
175
- 2.2.22
176
+ 2.4.3
data/catalog-info.yaml ADDED
@@ -0,0 +1,14 @@
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Component
3
+ metadata:
4
+ name: danger-android_lint
5
+ description: A Danger plugin for Android Lint
6
+ annotations:
7
+ github.com/project-slug: loadsmart/danger-android_lint
8
+ opslevel.com/tier: tier_3
9
+ tags:
10
+ - ruby
11
+ spec:
12
+ type: other
13
+ lifecycle: production
14
+ owner: mobile
@@ -1,3 +1,3 @@
1
1
  module AndroidLint
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".freeze
3
3
  end
@@ -110,7 +110,7 @@ module Danger
110
110
  system "./gradlew #{gradle_task}"
111
111
  end
112
112
 
113
- unless File.exists?(report_file)
113
+ unless File.exist?(report_file)
114
114
  fail("Lint report not found at `#{report_file}`. "\
115
115
  "Have you forgot to add `xmlReport true` to your `build.gradle` file?")
116
116
  end
@@ -47,7 +47,7 @@ module Danger
47
47
 
48
48
  it "Fails if severity is an unknown value" do
49
49
  allow(@android_lint).to receive(:`).with("ls gradlew").and_return("gradlew")
50
- allow(File).to receive(:exists?).with(@android_lint.report_file()).and_return(true)
50
+ allow(File).to receive(:exist?).with(@android_lint.report_file()).and_return(true)
51
51
 
52
52
  @android_lint.severity = "Dummy"
53
53
  @android_lint.lint
@@ -57,7 +57,7 @@ module Danger
57
57
 
58
58
  it "Sets severity to 'Warning' if no severity param is provided" do
59
59
  allow(@android_lint).to receive(:`).with("ls gradlew").and_return("gradlew")
60
- allow(File).to receive(:exists?).with(@android_lint.report_file).and_return(true)
60
+ allow(File).to receive(:exist?).with(@android_lint.report_file).and_return(true)
61
61
 
62
62
  fake_result = File.open("spec/fixtures/lint-result-with-everything.xml")
63
63
  allow(File).to receive(:open).with(@android_lint.report_file).and_return(fake_result)
@@ -68,7 +68,7 @@ module Danger
68
68
 
69
69
  it "Sets the report file to a default location if no param is provided" do
70
70
  allow(@android_lint).to receive(:`).with("ls gradlew").and_return("gradlew")
71
- allow(File).to receive(:exists?).with(@android_lint.report_file).and_return(true)
71
+ allow(File).to receive(:exist?).with(@android_lint.report_file).and_return(true)
72
72
 
73
73
  fake_result = File.open("spec/fixtures/lint-result-with-everything.xml")
74
74
  allow(File).to receive(:open).with(@android_lint.report_file).and_return(fake_result)
@@ -84,7 +84,7 @@ module Danger
84
84
 
85
85
  fake_result = File.open("spec/fixtures/lint-result-with-everything.xml")
86
86
  allow(File).to receive(:open).with(@android_lint.report_file).and_return(fake_result)
87
- allow(File).to receive(:exists?).with(@android_lint.report_file).and_return(true)
87
+ allow(File).to receive(:exist?).with(@android_lint.report_file).and_return(true)
88
88
 
89
89
  @android_lint.lint
90
90
 
@@ -93,7 +93,7 @@ module Danger
93
93
 
94
94
  it "Fails if report file does not exist" do
95
95
  allow(@android_lint).to receive(:`).with("ls gradlew").and_return("gradlew")
96
- allow(File).to receive(:exists?).with(@android_lint.report_file).and_return(false)
96
+ allow(File).to receive(:exist?).with(@android_lint.report_file).and_return(false)
97
97
 
98
98
  fake_result = File.open("spec/fixtures/lint-result-with-everything.xml")
99
99
  allow(File).to receive(:open).with(@android_lint.report_file).and_return(fake_result)
@@ -107,7 +107,7 @@ module Danger
107
107
  describe 'lint' do
108
108
  before do
109
109
  allow(@android_lint).to receive(:`).with("ls gradlew").and_return("gradlew")
110
- allow(File).to receive(:exists?).with(@android_lint.report_file).and_return(false)
110
+ allow(File).to receive(:exist?).with(@android_lint.report_file).and_return(false)
111
111
  end
112
112
 
113
113
  it 'Prints markdown if issues were found' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-android_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Barbosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oga
@@ -183,6 +183,7 @@ files:
183
183
  - README.md
184
184
  - Rakefile
185
185
  - atlantis.yaml
186
+ - catalog-info.yaml
186
187
  - danger-android_lint.gemspec
187
188
  - lib/android_lint/gem_version.rb
188
189
  - lib/android_lint/plugin.rb
@@ -215,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
216
  - !ruby/object:Gem::Version
216
217
  version: '0'
217
218
  requirements: []
218
- rubygems_version: 3.2.22
219
+ rubygems_version: 3.4.1
219
220
  signing_key:
220
221
  specification_version: 4
221
222
  summary: Lint files of a gradle based Android project. This is done using the Android's