milou 1.0.0 → 1.0.1

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: 35c1b97511bd156f6c9f7fe78ae56c57548000ec02f9081ed9f71e1d5c71d84d
4
- data.tar.gz: b6a63f15c3b513ab8810125b338487253281742de21c5c3ff81e24a5e16d721a
3
+ metadata.gz: 4be82578a6455e2a956a342787142d11877e559ebe7470131b0d3dc5f8817c7e
4
+ data.tar.gz: 16e13904db4cfdd71cf56f902d8b5ce54b9fabe45e55590d8e0a4fc901295419
5
5
  SHA512:
6
- metadata.gz: d3e4235616ed6020a1086101f55a9647212e8d7a3b5b7d41224a0f64a3294468b0d27af65459c1a71965fb9ca2ada113c14bdcea162a4bcadf80bbe5163584b1
7
- data.tar.gz: 6652d5076db74480f1ddba263f706561b1009d1da7d0f724dfad5d350a9ff239481bcac32bc23aba04366728b7a74a019ecc4da6fd80863434d5950ea6b20f1e
6
+ metadata.gz: 4300c4c297c0066c6702a011b66f8e5ed6af9993605f08d3f7fc9e4c69e66e2a4db996a68b98b41a8e3a8a9708f3f2f8de9d00527cb6b650080b99c4ec31ff18
7
+ data.tar.gz: 5b424fd13b097eefc374555f015c35471b1741c5425332654214b69ad1eab5665f862afc3916b737b2ca76e0da928e6df19a3838f17e0f4d69b9b4d521e34ce4
@@ -19,8 +19,6 @@ module Watchdog
19
19
  detox_cmd = 'yarn run detox-build'
20
20
 
21
21
  Watchdog::Utils.run_cmd(detox_cmd)
22
-
23
- # %x[ #{detox_cmd} 2>&1 ]
24
22
  end
25
23
 
26
24
  # Detox runner
@@ -28,8 +26,6 @@ module Watchdog
28
26
  detox_cmd = 'yarn run detox-test'
29
27
 
30
28
  Watchdog::Utils.run_cmd(detox_cmd)
31
-
32
- # %x[ #{detox_cmd} 2>&1 ]
33
29
  end
34
30
 
35
31
  # Watchdog runner
@@ -37,13 +33,9 @@ module Watchdog
37
33
 
38
34
  status_regex = /(FAIL|PASS) (.*\.js) \((.*)\)/
39
35
 
40
- commit_branch = Watchdog::Utils.run_cmd('git symbolic-ref --short HEAD').chomp
41
- commit_sha = Watchdog::Utils.run_cmd('git --no-pager show -s --format=%H').chomp
42
- commit_timestamp = Watchdog::Utils.run_cmd('git --no-pager log -1 --format=%cd').chomp
43
-
44
- # commit_branch = %x[ #{'git symbolic-ref --short HEAD'} 2>&1 ]
45
- # commit_sha = %x[ #{'git --no-pager show -s --format=%H'} 2>&1 ]
46
- # commit_timestamp = %x[ #{'git --no-pager log -1 --format=%cd'} 2>&1 ]
36
+ commit_branch = Watchdog::Utils.run_cmd('git symbolic-ref --short HEAD')[0].chomp
37
+ commit_sha = Watchdog::Utils.run_cmd('git --no-pager show -s --format=%H')[0].chomp
38
+ commit_timestamp = Watchdog::Utils.run_cmd('git --no-pager log -1 --format=%cd')[0].chomp
47
39
 
48
40
  run = {
49
41
  test_run: {
@@ -70,14 +62,11 @@ module Watchdog
70
62
  end
71
63
  end
72
64
 
73
-
74
-
75
65
  headers = {
76
66
  'Content-Type' => 'application/json',
77
67
  'X-API-KEY' => ENV['WATCHDOG_AUTH_TOKEN']
78
68
  }
79
- puts "run"
80
- puts run
69
+
81
70
  response = HTTParty.post(
82
71
  ENV['WATCHDOG_API_URL'],
83
72
  :body => run.to_json,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Watchdog
4
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.1".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milou
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-01 00:00:00.000000000 Z
11
+ date: 2022-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.3.7
88
+ rubygems_version: 3.0.6
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Watchdog SDK