rspec-mergify 0.1.0 → 0.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 +4 -4
- data/README.md +2 -0
- data/lib/mergify/rspec/utils.rb +1 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a69562ff8faf56e93122d4a11c50cf94e4d328a06a57b84cbc7eff1a80dc3dc9
|
|
4
|
+
data.tar.gz: d5cdd6a938db90e73a0771a2646b0aa9f303c120ffd72e26df8c02df3a19cbbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d6f8fdc77e89ecb4a69c3c44804b2b75ee6749cd4f0f664e903629a6216e4c1be7860a0a774df2b1c90e6eee233f18a5d1e9d07b94949b5c106972f7849cb30
|
|
7
|
+
data.tar.gz: 2228d6143a76bfba2f0e955ee6ca988d89786e0aeedb9ed2a00d2dde40678dff529f4dd276a30fc7b31f77290389da1b09e40f467021203f578fa760b84c5ee8
|
data/README.md
CHANGED
|
@@ -35,6 +35,8 @@ The plugin activates automatically when running in CI (detected via the `CI` env
|
|
|
35
35
|
| `MERGIFY_TRACEPARENT` | W3C distributed trace context | — |
|
|
36
36
|
| `MERGIFY_TEST_JOB_NAME` | Mergify test job name | — |
|
|
37
37
|
|
|
38
|
+
For detailed documentation, see the [official guide](https://docs.mergify.com/ci-insights/test-frameworks/rspec/).
|
|
39
|
+
|
|
38
40
|
## Development
|
|
39
41
|
|
|
40
42
|
### Prerequisites
|
data/lib/mergify/rspec/utils.rb
CHANGED
|
@@ -101,12 +101,7 @@ module Mergify
|
|
|
101
101
|
# Attributes whose env var is unset or whose callable returns nil are omitted.
|
|
102
102
|
def get_attributes(mapping)
|
|
103
103
|
mapping.each_with_object({}) do |(attr, (cast, env_or_callable)), result|
|
|
104
|
-
value =
|
|
105
|
-
if env_or_callable.respond_to?(:call)
|
|
106
|
-
env_or_callable.call
|
|
107
|
-
else
|
|
108
|
-
ENV.fetch(env_or_callable, nil)
|
|
109
|
-
end
|
|
104
|
+
value = env_or_callable.respond_to?(:call) ? env_or_callable.call : ENV.fetch(env_or_callable, nil)
|
|
110
105
|
|
|
111
106
|
next if value.nil?
|
|
112
107
|
next if value.respond_to?(:empty?) && value.empty?
|