rubium 0.3.1 → 0.3.2

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: 32083fd958f5b6419a2acff72d3e16b82081471518c15e87a49dfecf9da1a185
4
- data.tar.gz: 5059eeb52dadf5403d4402ae6d97f6dd15702b64092ccfa9bfeebad3645a9fce
3
+ metadata.gz: fcfb93374d1a40e65007cbadd579dccb55715a7cc16298944bac5276112b7fd6
4
+ data.tar.gz: db26213aa97ca72da071ad52602034cd69a5a21726e4b437c1c8e87ff952a88f
5
5
  SHA512:
6
- metadata.gz: 4f03a7deb8da6691ee76e91ca88b67901fa8df8e43e452e69168beb6d15255fae5f9a1f7fc5b475af755f5d362182b6ebf472bea73ec3a49d4545a9c0a600744
7
- data.tar.gz: 0b39bf0d315c46611fb197d472419846cc5726c15075ed692dedf1fea2825900c50b9dbd71cf2d775915d6fc1e384d98d5f92e0733ad4b45930816b23e1e1c24
6
+ metadata.gz: acd06d872499a883b00d47246d0d66639bf54f6b93e777d87f273ef1783dd761a5a13b87be0204114b18b129169c80982248cd06ee7e6baf7913c1f0a344f44a
7
+ data.tar.gz: 83913f350d231770cae28c720b84655d577380f623e1955027723503b6ea86ffe7f333cde46c4bccc2a3ae176819bf116a2ce6e89a9c9bf35b98fa32275fe0b3
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.2] - 2025-12-31
9
+
10
+ * Add ostruct to gemspec (Ruby 3.5 compatibility)
11
+ * Rename DEFAULT_PUPPETEER_ARGS to DEFAULT_ARGS
12
+
8
13
  ## [0.3.1] - 2025-12-16
9
14
 
10
15
  ### Added
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2025 Victor Afanasev
3
+ Copyright (c) 2026 Victor Afanasev
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  ## Description
4
4
 
5
- Rubium is a handy wrapper around [chrome_remote](https://github.com/cavalle/chrome_remote) gem. It adds browsers instances handling, and some Capybara-like methods. It is very lightweight (250 lines of code in the main `Rubium::Browser` class for now) and doens't use Selenium or Capybara. Consider Rubium as a _very simple_ and _basic_ implementation of [Puppeteer](https://github.com/GoogleChrome/puppeteer) in Ruby language.
6
-
7
- You can use Rubium as a lightweight alternative to Selenium/Capybara/Watir if you need to perform some operations (like web scraping) using Headless Chromium and Ruby. Of course, the API currently doesn't has a lot of methods to automate browser, but it has the most frequently used and basic ones.
5
+ Rubium is a lightweight Ruby API for headless antidetect Chrome browser automation. It provides essential Capybara-like methods in just 300 lines of code no Selenium or heavy dependencies required. Use it as a simple alternative to Puppeteer/Playwright for web scraping and basic browser automation tasks:
8
6
 
9
7
  ```ruby
10
8
  require 'rubium'
@@ -111,7 +109,7 @@ end
111
109
 
112
110
 
113
111
  ## Installation
114
- Rubium tested with `2.3.0` Ruby version and up.
112
+ Rubium tested with `3.1.0` Ruby version and up.
115
113
 
116
114
  ## Contribution
117
115
  Sure, feel free to fork and add new functionality.
@@ -203,7 +203,7 @@ module Rubium
203
203
  #{chrome_path} about:blank
204
204
  --remote-debugging-port=#{@port}
205
205
  --user-data-dir=#{@data_dir}
206
- ] + DEFAULT_PUPPETEER_ARGS
206
+ ] + DEFAULT_ARGS
207
207
 
208
208
  command << '--headless' if ENV['HEADLESS'] != 'false' && options[:headless] != false
209
209
  command << "--window-size=#{options[:window_size].join(',')}" if options[:window_size]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubium
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
data/lib/rubium.rb CHANGED
@@ -5,7 +5,7 @@ require 'rubium/version'
5
5
  require 'rubium/browser'
6
6
 
7
7
  module Rubium
8
- DEFAULT_PUPPETEER_ARGS = %w[
8
+ DEFAULT_ARGS = %w[
9
9
  --disable-field-trial-config
10
10
  --disable-background-networking
11
11
  --disable-background-timer-throttling
data/rubium.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['Victor Afanasev']
11
11
  spec.email = ['vicfreefly@gmail.com']
12
12
 
13
- spec.summary = 'Headless Chromium Ruby API based on ChromeRemote gem'
13
+ spec.summary = 'Antidetect Headless Chromium Ruby API based on ChromeRemote gem'
14
14
  spec.description = spec.summary
15
15
  spec.homepage = 'https://github.com/vifreefly/rubium'
16
16
  spec.license = 'MIT'
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency 'cliver', '~> 0.3'
28
28
  spec.add_dependency 'nokogiri'
29
29
  spec.add_dependency 'random-port'
30
+ spec.add_dependency 'ostruct'
30
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Afanasev
@@ -65,7 +65,21 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
- description: Headless Chromium Ruby API based on ChromeRemote gem
68
+ - !ruby/object:Gem::Dependency
69
+ name: ostruct
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ description: Antidetect Headless Chromium Ruby API based on ChromeRemote gem
69
83
  email:
70
84
  - vicfreefly@gmail.com
71
85
  executables: []
@@ -105,5 +119,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
119
  requirements: []
106
120
  rubygems_version: 4.0.1
107
121
  specification_version: 4
108
- summary: Headless Chromium Ruby API based on ChromeRemote gem
122
+ summary: Antidetect Headless Chromium Ruby API based on ChromeRemote gem
109
123
  test_files: []