blinka-reporter 0.2.0 → 0.2.1
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 +13 -4
- 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: bda58bde54cfddafa7711c984e477a7781299f90874a137e4e396dd048885afe
|
4
|
+
data.tar.gz: 41ce526368565e1f97884fb13977f8833081681a2f63e29343e78508c4f4535a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f98b19c0df3fe63a02c322d53c22bdca62a473d106a3984a6803fc856e1203028e4de3f4b1f9d902b399fad285294218ee47c736f6f2f3b984c5ba63048d40fd
|
7
|
+
data.tar.gz: 0d701507d2ae55c3d022694c212a668d91804acbe18040e0476d8bf585f098edc1fc0dbe4a51a7d340c56fcc3309c4aeec6cc199b1990e4f1430e98314d190c7
|
data/lib/blinka_client.rb
CHANGED
@@ -13,12 +13,21 @@ class BlinkaClient
|
|
13
13
|
:jwt_token
|
14
14
|
)
|
15
15
|
def initialize
|
16
|
-
@host = ENV.fetch('BLINKA_HOST', 'https://
|
17
|
-
@team_id = ENV.fetch('BLINKA_TEAM_ID')
|
18
|
-
@team_secret = ENV.fetch('BLINKA_TEAM_SECRET')
|
19
|
-
@repository = ENV.fetch('BLINKA_REPOSITORY')
|
16
|
+
@host = ENV.fetch('BLINKA_HOST', 'https://www.blinka.app')
|
17
|
+
@team_id = ENV.fetch('BLINKA_TEAM_ID', nil)
|
18
|
+
@team_secret = ENV.fetch('BLINKA_TEAM_SECRET', nil)
|
19
|
+
@repository = ENV.fetch('BLINKA_REPOSITORY', nil)
|
20
20
|
@tag = ENV.fetch('BLINKA_TAG', '')
|
21
21
|
@commit = ENV.fetch('BLINKA_COMMIT', `git rev-parse HEAD`.chomp)
|
22
|
+
|
23
|
+
if @team_id.nil? || @team_secret.nil? || @repository.nil?
|
24
|
+
raise(BlinkaError, <<~EOS)
|
25
|
+
Missing configuration, make sure to set required environment variables:
|
26
|
+
- BLINKA_TEAM_ID
|
27
|
+
- BLINKA_TEAM_SECRET
|
28
|
+
- BLINKA_REPOSITORY
|
29
|
+
EOS
|
30
|
+
end
|
22
31
|
end
|
23
32
|
end
|
24
33
|
|
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.2.
|
4
|
+
version: 0.2.1
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|