paraxial 1.4.0 → 1.4.2

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: b51eef23aae22276c25b2f576f35d4a66fd2c0e286cd5d8b8c5ba86172bb9167
4
- data.tar.gz: d1c5152de188f489b296ba377d0358fc8265bb5ba7d0cefb2b0975dfce2897fe
3
+ metadata.gz: 90acf2bb0c21441d420b6433f1b0d378108d3c4042d6fda40116892877d535bb
4
+ data.tar.gz: 6edfae3d19b3e713ac41bcccf11c545ca479201f29da1fbe230bac4de8b796e5
5
5
  SHA512:
6
- metadata.gz: f9720fcb74a4146551ff9a1c51d5d28bcb45e82d01ce0d6f28ee34f3923fc2c5c05b3a18548e34d92ba5aed8976541eccfc0c73be562404f3e0f7cd3a469b2d7
7
- data.tar.gz: 1cf80129ca6b2ed6c1e2dbe422af2ea150bc4f245f45cb89e5eec2fe07a002ccedc3816f7e8a4a02ea4a46386d5ff61508517a3e85b3af1b6ec71ee5fe5e0f79
6
+ metadata.gz: 66c9b8fbc397de4bb01c5f0afa46ecf5198e88f171342324211c5e5f1401dc7ee6a3b05b9e4dcb41731113f9985ea0edfc6b4ffc7e156efa8697e1b113b2178c
7
+ data.tar.gz: e4c82f63baba03fcedd857ac7ac2dd6f16afff05f153982c26f3292077dc0f2879ff1266e46d2a8ad213e380178af521889293ad85cce10062574ec535e7b641
@@ -7,7 +7,7 @@ module Paraxial
7
7
  @mutex = Mutex.new
8
8
  @headers = { 'Content-Type': 'application/json' }
9
9
 
10
- if Paraxial::Helpers.get_api_key
10
+ if Paraxial::Helpers.get_api_key and !Paraxial.configuration&.disable_http_tick
11
11
  @thread = Thread.new do
12
12
  loop do
13
13
  get_abr
data/lib/paraxial/cli.rb CHANGED
@@ -88,7 +88,11 @@ module Paraxial
88
88
  m = JSON.parse(response.body)
89
89
 
90
90
  if m['ok'].nil?
91
- puts "[Paraxial] Upload failed, check if PARAXIAL_API_KEY is valid"
91
+ if m['error']&.start_with?("Free tier limited")
92
+ puts "[Paraxial] Upload failed, free tier limit reached"
93
+ else
94
+ puts "[Paraxial] Upload failed, check if PARAXIAL_API_KEY is valid"
95
+ end
92
96
  exit(1)
93
97
  end
94
98
 
@@ -1,7 +1,7 @@
1
1
  module Paraxial
2
2
  module Helpers
3
3
  def self.get_paraxial_url
4
- @paraxial_url ||= ENV['PARAXIAL_URL'] || 'https://app.paraxial.io/'
4
+ @paraxial_url ||= ENV['PARAXIAL_URL'] || 'https://app.paraxial.io'
5
5
  end
6
6
 
7
7
  def self.get_ban_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paraxial
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.2'
5
5
  end
data/lib/paraxial.rb CHANGED
@@ -184,9 +184,11 @@ module Paraxial
184
184
 
185
185
  class Configuration
186
186
  attr_accessor :exploit_guard
187
+ attr_accessor :disable_http_tick
187
188
 
188
189
  def initialize
189
190
  @exploit_guard = nil
191
+ @disable_http_tick = nil
190
192
  end
191
193
  end
192
194
 
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.4.0
4
+ version: 1.4.2
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-18 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec