quarantine 2.1.1 → 2.1.2
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/lib/quarantine/databases/google_sheets.rb +4 -0
- data/lib/quarantine/rspec_adapter.rb +2 -1
- data/lib/quarantine/version.rb +1 -1
- 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: 5b572688cff1561139754374abf14bfc0fbbce203dd7ab8d0db5916b2c5b67ba
|
|
4
|
+
data.tar.gz: 8dfc948827ad091c3424dd425ba157294340fff95ec603e76f1ffcc5059541bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 879da05b1135ab244f4246e8003418a0e5b50f68ac7ca408b7ead93ebc44b5b54676d84be4b6793166c84ddf4816f92c09664ad6d78cc02755c7bf4c0de181b9
|
|
7
|
+
data.tar.gz: d7d9cc51559136896dde5ad0ebde281542cbe2ed4b0a42a7dfa508a264d070bab67d1ea9dfe1c213e50fa98308e85430791d69e57b301c1d1d11ce3883bcfeab
|
|
@@ -21,6 +21,8 @@ class Quarantine
|
|
|
21
21
|
sig { override.params(table_name: String).returns(T::Enumerable[Item]) }
|
|
22
22
|
def fetch_items(table_name)
|
|
23
23
|
parse_rows(spreadsheet.worksheet_by_title(table_name))
|
|
24
|
+
rescue GoogleDrive::Error
|
|
25
|
+
raise Quarantine::DatabaseError
|
|
24
26
|
end
|
|
25
27
|
|
|
26
28
|
sig do
|
|
@@ -54,6 +56,8 @@ class Quarantine
|
|
|
54
56
|
# Insert any items whose IDs weren't found in existing rows at the end
|
|
55
57
|
worksheet.insert_rows(parsed_rows.count + 2, new_rows)
|
|
56
58
|
worksheet.save
|
|
59
|
+
rescue GoogleDrive::Error
|
|
60
|
+
raise Quarantine::DatabaseError
|
|
57
61
|
end
|
|
58
62
|
|
|
59
63
|
private
|
|
@@ -23,7 +23,8 @@ class Quarantine
|
|
|
23
23
|
database: RSpec.configuration.quarantine_database,
|
|
24
24
|
test_statuses_table_name: RSpec.configuration.quarantine_test_statuses,
|
|
25
25
|
extra_attributes: RSpec.configuration.quarantine_extra_attributes,
|
|
26
|
-
failsafe_limit: RSpec.configuration.quarantine_failsafe_limit
|
|
26
|
+
failsafe_limit: RSpec.configuration.quarantine_failsafe_limit,
|
|
27
|
+
release_at_consecutive_passes: RSpec.configuration.quarantine_release_at_consecutive_passes,
|
|
27
28
|
)
|
|
28
29
|
end
|
|
29
30
|
|
data/lib/quarantine/version.rb
CHANGED