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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dee5f031f75e2069d6d197e11a2c20be5e8bdd24792e04c36733632886bcbe56
|
4
|
+
data.tar.gz: 6375edfd326a90f60eb89b073d43896582fe23626624ccf08c148ada39bdacb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6fdb6234e0f0957b20ab49aa4fc855a546edd73ac26b6d0ecafd8808a2dc5168530e784dc0341044684e0477e77b8d528bf5922753f6286dca47ff8f8d5407
|
7
|
+
data.tar.gz: 64ec129dac49b60046827c2ca42f91728fc395202cfbe2e4cf8d34773113fd6da4064c02f4f971fab9736f7a2842fd86f9f25d23c6208257c862d55fe7b9c39c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger
|