fast_ci 1.0.7 → 1.0.8

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: 88ff9bc4e8535b44f8a75083d9f2e6e498a180eb579e59576deba2a78587e161
4
- data.tar.gz: 5236dba1f25ad3776050e25482c4ce1a1810c90f051b59b5274d57ad7deee5e6
3
+ metadata.gz: c239c5fd08387acc13ba1f0f6d1117d90f351ce5bb9c4c047c20d2c04b704d69
4
+ data.tar.gz: 0d939f6a5effaa8264cb4adaaa498ff9971a2caa7dc7dfa586b2b7b1bbca1e12
5
5
  SHA512:
6
- metadata.gz: 9509a523d124226ba2e495bf4683a7d0f409fb0a99e5b1f6653e1c27d47329905bb07dd2ee3de1233aae2be9ebc3f3256c1ea9da9f2e15452ea373b175b90632
7
- data.tar.gz: 66ba3bc4ac0b3862c58e8cd0ca0ee803ce17dbacd0d08602343bf9d015d1eeacc1cbc0f82dae5ac0f327dc9c8c34f728b79b1fe1260963832382ba476ead3495
6
+ metadata.gz: 553fab801f37d28df640090771fcba163ff98931191f6a7e15171e1644f87ea6d6221ce89b5fce53d8548fc04f83e3a79afafc1276d1da61327c3235bbdab751
7
+ data.tar.gz: 59206570323046b8c211742bfa606d2d18be638caaa28c1f34992ef1df4baba95d241cf81669ec2340c366d7e93b5318fc327978ede002d33eb470c2a15067e4
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- fast_ci (1.0.7)
14
+ fast_ci (1.0.8)
15
15
  async-websocket (<= 0.20.0)
16
16
  brakeman (>= 5.4.1)
17
17
  console (>= 1.10.0)
@@ -52,4 +52,7 @@ at_exit do
52
52
  end
53
53
 
54
54
  events << ['custom_started'.upcase, ['0', { key: 'bundler_audit' }]]
55
+
56
+ FastCI.start_report('bundler_audit')
57
+
55
58
  Bundler::Audit::CLI.start
@@ -6,6 +6,8 @@ require 'zlib'
6
6
  module FastCI
7
7
  module Brakeman
8
8
  def self.start
9
+ FastCI.start_report('brakeman')
10
+
9
11
  events = []
10
12
  events << ['brakeman_run'.upcase, {}]
11
13
  FastCI::Brakeman::Commandline.start(output_files: ['tmp/brakeman.json'], ensure_ignore_notes: false)
@@ -10,6 +10,8 @@ module FastCI
10
10
  module Cli
11
11
  class Application < ::RubyCritic::Cli::Application
12
12
  def execute
13
+ FastCI.start_report('ruby_critic')
14
+
13
15
  events = []
14
16
  events << ['ruby_critic_run'.upcase, {}]
15
17
  status = super
@@ -3,6 +3,8 @@ require_relative "simple_cov/reporting"
3
3
  module FastCI
4
4
  module SimpleCov
5
5
  if ENV['FSCI_REMOTE_TESTS'] == 'true' && ENV["SIMPLECOV_ACTIVE"] && ENV['DRYRUN'] != 'true'
6
+ FastCI.start_report('simplecov')
7
+
6
8
  ::SimpleCov.send(:at_exit) do
7
9
  ::SimpleCov.result.format!
8
10
 
@@ -61,8 +63,9 @@ module FastCI
61
63
  end
62
64
 
63
65
  ::SimpleCov::Result.prepend(Scf)
64
- else
65
- ::SimpleCov.send(:include, FastCI::SimpleCov::Reporting) unless ENV['DRYRUN'] == 'true'
66
+ elsif ENV['DRYRUN'] != 'true'
67
+ FastCI.start_report('simplecov')
68
+ ::SimpleCov.send(:include, FastCI::SimpleCov::Reporting)
66
69
  end
67
70
  end
68
71
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastCI
4
- VERSION = "1.0.7"
4
+ VERSION = "1.0.8"
5
5
  end
data/lib/fast_ci.rb CHANGED
@@ -76,6 +76,11 @@ module FastCI
76
76
  res = Net::HTTP.post_form(uri, data)
77
77
  end
78
78
 
79
+ def start_report(run_key)
80
+ uri = URI("#{FastCI.configuration.fastci_api_url}/api/runs/notify_client_start")
81
+ res = Net::HTTP.post_form(uri, report_options(run_key, nil))
82
+ end
83
+
79
84
  def send_events(data)
80
85
  reset_webmock = false
81
86
  if defined?(WebMock)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nesha Zoric
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: console