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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c4a41e99736f29fd49d864c842b1ecb87ac0fe514bd887176b97f13d49761cd
4
- data.tar.gz: f36d408661b7cce88e7d4cffd0a6214ad937f452479bd8e706cdbcd03ee3d9f0
3
+ metadata.gz: 5b572688cff1561139754374abf14bfc0fbbce203dd7ab8d0db5916b2c5b67ba
4
+ data.tar.gz: 8dfc948827ad091c3424dd425ba157294340fff95ec603e76f1ffcc5059541bd
5
5
  SHA512:
6
- metadata.gz: c06c78fa1741d68ebfbc1c3a88b02d30391465f532f4a4597e3625b4379924ed0852518b1d11c79ae09b0248396a579b26fce8b9cc03a8c6203bb71513c56055
7
- data.tar.gz: 61cc08f36624613bd9a1250926216b7ea60b3847ab505881974b710035a76c22a43159e3a7735a1360d59f4f31ada5cd99c3da9eb99338bca66e5432a1726f2b
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
 
@@ -1,3 +1,3 @@
1
1
  class Quarantine
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quarantine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flexport Engineering, Eric Zhu