blinka-reporter 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blinka_client.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76add87e3b4c07e52d38ace7ea5c8359b0eb2dc636165ffdf753fb3d475ed119
|
4
|
+
data.tar.gz: 5322abc35807213e72c59876ab0b33d5aaa8312bc8d56daf4203d34737666f5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff827a035306476db6c83740fa95fb6a620c9475e012ef7d48b9d6feac766fc47f31e91c63bb9ecca57bddb2064c3951b97393d5206d4937b44e62078518a5d
|
7
|
+
data.tar.gz: 6e1432283c7f061f44448b67cd4af16be906b4baf38cda9947ea6b9d4af1d4e4a1ebaf96b7231685afbfffc9d10ee6042103921f8c01dcf04b0b8f1db3a256b2
|
data/lib/blinka_client.rb
CHANGED
@@ -23,7 +23,7 @@ class BlinkaClient
|
|
23
23
|
@team_secret = ENV.fetch('BLINKA_TEAM_SECRET', nil)
|
24
24
|
@repository = ENV.fetch('BLINKA_REPOSITORY', nil)
|
25
25
|
@tag = ENV.fetch('BLINKA_TAG', '')
|
26
|
-
@commit =
|
26
|
+
@commit = BlinkaClient.find_commit
|
27
27
|
|
28
28
|
if @team_id.nil? || @team_secret.nil? || @repository.nil?
|
29
29
|
raise(BlinkaError, <<~EOS)
|
@@ -198,4 +198,11 @@ class BlinkaClient
|
|
198
198
|
}
|
199
199
|
}
|
200
200
|
end
|
201
|
+
|
202
|
+
def self.find_commit
|
203
|
+
ENV.fetch(
|
204
|
+
'BLINKA_COMMIT',
|
205
|
+
ENV.fetch('HEROKU_TEST_RUN_COMMIT_VERSION', `git rev-parse HEAD`.chomp)
|
206
|
+
)
|
207
|
+
end
|
201
208
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blinka-reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Wessman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|