danger-dangermattic 1.2.1 → 1.2.2

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: 475e995ad47a8b43461803346efd892f806b60b95714f31fa7ff5c44c7148a80
4
- data.tar.gz: 9ce8906845c50e840c4e129f419f93d7907fb3cc001daeaa8cb66db1390d2de3
3
+ metadata.gz: dee5f031f75e2069d6d197e11a2c20be5e8bdd24792e04c36733632886bcbe56
4
+ data.tar.gz: 6375edfd326a90f60eb89b073d43896582fe23626624ccf08c148ada39bdacb2
5
5
  SHA512:
6
- metadata.gz: 87f999a8b4c043997a558305046a8263c0218ce2c14da8359ff1d998d55690345bacd1914c2ef75417503cd54dcb1b99f59c5deaa40f1ea0508c09a7804a8365
7
- data.tar.gz: 13916d9ab80f9ab9e1e9252a431e0807198f11130d199b1d144b7d9baaad7416289f9b72ce11fc90384da2d63f49fb358b4414c9fade23d5658bf588f65b0530
6
+ metadata.gz: 2c6fdb6234e0f0957b20ab49aa4fc855a546edd73ac26b6d0ecafd8808a2dc5168530e784dc0341044684e0477e77b8d528bf5922753f6286dca47ff8f8d5407
7
+ data.tar.gz: 64ec129dac49b60046827c2ca42f91728fc395202cfbe2e4cf8d34773113fd6da4064c02f4f971fab9736f7a2842fd86f9f25d23c6208257c862d55fe7b9c39c
data/CHANGELOG.md CHANGED
@@ -20,6 +20,12 @@ _None_
20
20
 
21
21
  _None_
22
22
 
23
+ ## 1.2.2
24
+
25
+ ### Bug Fixes
26
+
27
+ - `android_unit_test_checker`: add `sealed` and `value` classes as an exception when reporting missing Android unit tests [#94]
28
+
23
29
  ## 1.2.1
24
30
 
25
31
  ### Bug Fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-dangermattic (1.2.1)
4
+ danger-dangermattic (1.2.2)
5
5
  danger (~> 9.4)
6
6
  danger-plugin-api (~> 1.0)
7
7
  danger-rubocop (~> 0.13)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dangermattic
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
@@ -24,12 +24,14 @@ module Danger
24
24
  #
25
25
  class AndroidUnitTestChecker < Plugin
26
26
  ANY_CLASS_DETECTOR = /class\s+([A-Z]\w+)\s*(.*?)\s*{/m
27
- CLASS_MODIFIER_DETECTOR = /((?:\s|public|internal|protected|private|final|abstract|static|data|enum)*)class\s+([A-Z]\w+)\s*(.*?)\s*{/m
27
+ CLASS_MODIFIER_DETECTOR = /((?:\s|public|internal|protected|private|final|abstract|static|data|enum|sealed|value)*)class\s+([A-Z]\w+)\s*(.*?)\s*{/m
28
28
 
29
29
  CLASS_MODIFIER_EXCEPTIONS = [
30
30
  /\s*data\s*/,
31
31
  /\s*private\s*/,
32
- /\s*enum\s*/
32
+ /\s*enum\s*/,
33
+ /\s*sealed\s*/,
34
+ /\s*value\s*/
33
35
  ].freeze
34
36
 
35
37
  DEFAULT_CLASSES_EXCEPTIONS = [
@@ -10,3 +10,23 @@ class TestsINeedThem2AnotherClass
10
10
  println("thisNeedsATest")
11
11
  }
12
12
  }
13
+
14
+ enum class ProtocolState {
15
+ WAITING {
16
+ override fun signal() = TALKING
17
+ },
18
+
19
+ TALKING {
20
+ override fun signal() = WAITING
21
+ };
22
+
23
+ abstract fun signal(): ProtocolState
24
+ }
25
+
26
+ value class Password(private val s: String)
27
+
28
+ sealed class Error(val message: String) {
29
+ class NetworkError : Error("Network failure")
30
+ class DatabaseError : Error("Database cannot be reached")
31
+ class UnknownError : Error("An unknown error has occurred")
32
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-dangermattic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger