chromate-rb 0.0.3.pre → 0.0.5.pre

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: 69be8ab00b56202a699439b91f9578f662570c4686fd290aa2c151d0f843b18d
4
- data.tar.gz: 9513eee5138f694a31d628f0fbb63ced5c750c4e9213967c27a9cacddc04f799
3
+ metadata.gz: 7a6e0c59bba0d3151b4c9410a45b0451a794d671a0ec2ef31f45c896fcc8105e
4
+ data.tar.gz: 826cc7d89807105021ef7c7ae46b6fad6883184e7f37cfa5ebc91d63a7c5238b
5
5
  SHA512:
6
- metadata.gz: ee7d1248c446032c9940c3f63b8161e2c1350800c55bcff78bec2f0bf65363c2befcf2f135171f24c1987a996935d590e50b63b12dbc2bb3ddca7ce54ade95fd
7
- data.tar.gz: ac9446088c14121f78cb7b53cce6cdaf3b71f8b0b1a1f89c8ec940ed8844e9f97eddaa87fb0533f4771fcd6fb3c0f8249edbba80b1f9d3adfbeb85dce5f60d49
6
+ metadata.gz: 582e41f8faa35e13e2375e54461183b755df726bce5127de7994e6b355839148ab7b33f6500ac52688c3f202c5a80f03482cf02e671c60ae93f6f83dc1eb49e8
7
+ data.tar.gz: dd086276079a8e70509e5805c9a24464237dcc8347aedd8a02e65117b08ff1e0ed09a8e2381342373f06e85c6a34cbbd71b2cc96230b0c9ff0a35972d601edda
@@ -13,7 +13,7 @@ module BotBrowser
13
13
 
14
14
  def install(version = nil)
15
15
  create_config_dir
16
- binary_path, profile_path = Downloader.download(version)
16
+ binary_path, profile_path = Downloader.download(version, nil, platform)
17
17
  bot_browser_path = install_binary(binary_path)
18
18
  bot_browser_profile_path = install_profile(profile_path)
19
19
 
@@ -42,6 +42,18 @@ module BotBrowser
42
42
 
43
43
  private
44
44
 
45
+ def platform
46
+ if mac?
47
+ :mac
48
+ elsif linux?
49
+ :linux
50
+ elsif windows?
51
+ :windows
52
+ else
53
+ raise 'Unsupported platform'
54
+ end
55
+ end
56
+
45
57
  def install_binary(binary_path)
46
58
  Chromate::CLogger.log("Installing binary from #{binary_path}")
47
59
  return install_binary_mac(binary_path) if mac?
@@ -39,7 +39,7 @@ module Chromate
39
39
 
40
40
  result['result']['value']
41
41
  rescue StandardError => e
42
- Chromate::CLogger.log("Error evaluating script: #{e.message}", :error)
42
+ Chromate::CLogger.log("Error evaluating script: #{e.message}", level: :error)
43
43
  nil
44
44
  end
45
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chromate
4
- VERSION = '0.0.3.pre'
4
+ VERSION = '0.0.5.pre'
5
5
  end
data/logo.png CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chromate-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.pre
4
+ version: 0.0.5.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eth3rnit3
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-23 00:00:00.000000000 Z
11
+ date: 2025-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi