txgh 5.3.3 → 5.3.4
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/txgh/version.rb +1 -1
- data/lib/txgh.rb +2 -0
- data/spec/txgh_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9913740e9d673d5e128e9347ab27f2402e605ad1
|
|
4
|
+
data.tar.gz: 8dc303dd112a95c897131e974d61d74cd45725f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84eb6e77456cf413c8da184260d10534497701b7869567ba0b275ce1faa3d1e2b93fd3be7ecbd57e8e6e4fda2a99351568ec7efe2ebf6f668a584eaca2e787b8
|
|
7
|
+
data.tar.gz: 73f36c4560a70a016d416570b417782d066c410ce813caa5f1fa971ae3a4af3d67c111440ef37bc188afb1af2bd7a5968ad3569f4f29bbdcc4b29f0f6ecc8df5
|
data/lib/txgh/version.rb
CHANGED
data/lib/txgh.rb
CHANGED
|
@@ -59,6 +59,8 @@ module Txgh
|
|
|
59
59
|
GithubStatus.new(project, repo, resource).update(options.fetch(:sha))
|
|
60
60
|
rescue Octokit::UnprocessableEntity
|
|
61
61
|
# raised because we've tried to create too many statuses for the commit
|
|
62
|
+
rescue Txgh::TransifexNotFoundError
|
|
63
|
+
# raised if transifex resource can't be found
|
|
62
64
|
end
|
|
63
65
|
|
|
64
66
|
def env
|
data/spec/txgh_spec.rb
CHANGED
|
@@ -43,5 +43,17 @@ describe Txgh do
|
|
|
43
43
|
)
|
|
44
44
|
end.to_not raise_error
|
|
45
45
|
end
|
|
46
|
+
|
|
47
|
+
it 'handles transifex errors' do
|
|
48
|
+
expect_any_instance_of(Txgh::GithubStatus).to(
|
|
49
|
+
receive(:update).and_raise(Txgh::TransifexNotFoundError)
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
expect do
|
|
53
|
+
Txgh.update_status_callback(
|
|
54
|
+
project: nil, repo: nil, resource: nil, sha: nil
|
|
55
|
+
)
|
|
56
|
+
end.to_not raise_error
|
|
57
|
+
end
|
|
46
58
|
end
|
|
47
59
|
end
|