look_out 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdec67d5f1c7cf1fd402590a9253478d8bd02f31bbc035da87f9158404acffcb
4
- data.tar.gz: b1ffb441a22a8e848574909b615c501de88ae61f70dea1f417a8cdd6b7d2d6eb
3
+ metadata.gz: 1b0b5672716c13b8079a5a342c85e9980ba151edf8a6352034d96d200740b5a7
4
+ data.tar.gz: fb8424c9077a0ceae45371a03c233ac63ad98754a668640960478e0cda5614cc
5
5
  SHA512:
6
- metadata.gz: 269a1f6cfe4b33579b3459e54e1c0fa46b18d213df522a10bcb425ce6109a7926efd2a4320b002d0872ca5db3387722c2663ffca3749861a6ac179b4f799479e
7
- data.tar.gz: 027f217582b28481f3908fefbf19e5830d30dc9f2782ac182bdb55b07492ff76e00d26dea284898ce6533d53f0cc9318f019360aa2fbfcc00aee9271cfd9eb8a
6
+ metadata.gz: 2c86a5edaefcd685ea2b842352f9a9d2c5c62915ba0f9547f1f85a81722d3c7bf64454dc1698eeac4fb0dbc13fc0171214197aebfc1c5ac4c68cf7a64429a2ea
7
+ data.tar.gz: 35cfb0c50773b0f9908654b3761ea41d1f12dedeb613018121a399a9013e5f8923145cdaf6e416780e5e33e6004599a6c1e71aa33f1015d5668ef85f17183638
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.1.24 / 2020-05-02
3
+ ==================
4
+
5
+ * Update user fetching strat
6
+
2
7
  0.1.23 / 2020-05-02
3
8
  ==================
4
9
 
@@ -22,7 +22,7 @@ module LookOut
22
22
  api_key: LookOut.config.api_key,
23
23
  data: output_hash,
24
24
  cast: {
25
- user: LookOut.config.user,
25
+ user: user,
26
26
  sha: sha,
27
27
  env: env,
28
28
  integrated: integrated
@@ -46,7 +46,7 @@ module LookOut
46
46
  data: data.to_json,
47
47
  sail: {
48
48
  uid: uid,
49
- user: LookOut.config.user,
49
+ user: user,
50
50
  sha: sha,
51
51
  env: env,
52
52
  integrated: integrated
@@ -92,6 +92,15 @@ module LookOut
92
92
  false
93
93
  end
94
94
  end
95
+
96
+ def user
97
+ if LookOut.config.user && !LookOut.config.user.empty?
98
+ LookOut.config.user
99
+ else
100
+ ENV['LOOK_OUT_USER'] || `git config user.name`.chomp
101
+ end
102
+ end
103
+
95
104
  def env
96
105
  if ENV['JENKINS'] || ENV['CI']
97
106
  :integration
@@ -1,3 +1,3 @@
1
1
  module LookOut
2
- VERSION = '0.1.23'.freeze
2
+ VERSION = '0.1.24'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: look_out
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2020-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus