paraxial 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b27974dfe877ee32f7c49718c18916c39c6d13dff2b1fd0087b8da359207713
4
- data.tar.gz: d93d8ab5654d522f8093f998afa5f65fc77c7abc363bd89c377dccca8b140bb3
3
+ metadata.gz: baa2ee1790a37ff9ba35dabce992774e0a7d1090e6b5ffd9fb24fcc3eefd037c
4
+ data.tar.gz: 8d454295bf64117f57e9df2c90a3cb6e888b291f0d40d101b3b264c02cbc7b8e
5
5
  SHA512:
6
- metadata.gz: 0e0e45aece62762e91542544721c3ff73ee9c0de01ee0215793ae2f4120cd9b21de34a392c0ab805805720e7955befb8a99d9a6ffa9a57571d95c73d5ebed34c
7
- data.tar.gz: 242039eabbd12a31d0c5e48f0c7b63a18b559ec5f49d867ff7dabcd6fe81398ba8fb8e47f08cb6c1c43f3beecd94e71e62eff014acc83afb2ae718ce1864b2b3
6
+ metadata.gz: 8406bf6da59a65c52c31b5dd2fa7c967924a4f6de9a6a6b1695877a01643ebc8e08d79e7f6cf53f5a95bf5af495dac550fdefbf6d28f98957afb8b1a34c46cac
7
+ data.tar.gz: f5327f15ba804a0a50fa3575fee33dd6db99cb99c0e1ab58aa22cd5248e9d169d3fe5c8c66e991d5dec18ca66640b1697e7ef86622381fbe0201a6c672aa862b
@@ -7,7 +7,7 @@ require_relative '../free_tier'
7
7
 
8
8
  Bundler.setup
9
9
 
10
- unless Rails.env.test? || File.basename($0) == 'rake' || defined?(Rails::Generators)
10
+ unless Rails.env.test? || File.basename($0) == 'rake' || Paraxial.do_not_start?
11
11
  Rails.application.config.to_prepare do
12
12
  puts "[Paraxial] v#{Paraxial::VERSION} Agent starting..."
13
13
  api_key = Paraxial::Helpers.get_api_key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paraxial
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
data/lib/paraxial.rb CHANGED
@@ -176,7 +176,7 @@ module Paraxial
176
176
 
177
177
  def self.check_exploit_guard
178
178
  if configuration.nil?
179
- puts "[Paraxial] Exploit Guard, no configuration exists, will not run"
179
+ # puts "[Paraxial] Exploit Guard, no configuration exists, will not run"
180
180
  return
181
181
  end
182
182
 
@@ -199,4 +199,21 @@ module Paraxial
199
199
  @exploit_guard = nil
200
200
  end
201
201
  end
202
+
203
+ def self.do_not_start?
204
+ defined?(Rails::Command::CredentialsCommand) ||
205
+ defined?(Rails::Command::Db::System::ChangeCommand) ||
206
+ defined?(Rails::Command::DbConsoleCommand) ||
207
+ defined?(Rails::Command::DestroyCommand) ||
208
+ defined?(Rails::Command::DevCommand) ||
209
+ defined?(Rails::Command::EncryptedCommand) ||
210
+ defined?(Rails::Command::GenerateCommand) ||
211
+ defined?(Rails::Command::InitializersCommand) ||
212
+ defined?(Rails::Command::NotesCommand) ||
213
+ defined?(Rails::Command::RoutesCommand) ||
214
+ defined?(Rails::Command::RunnerCommand) ||
215
+ defined?(Rails::Command::SecretsCommand) ||
216
+ defined?(Rails::Command::AboutCommand) ||
217
+ defined?(Rails::Command::DbconsoleCommand)
218
+ end
202
219
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paraxial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Lubas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.5.11
136
+ rubygems_version: 3.5.23
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Paraxial.io Ruby Agent