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 +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -4
- data/lib/rubium/browser.rb +1 -1
- data/lib/rubium/version.rb +1 -1
- data/lib/rubium.rb +1 -1
- data/rubium.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fcfb93374d1a40e65007cbadd579dccb55715a7cc16298944bac5276112b7fd6
|
|
4
|
+
data.tar.gz: db26213aa97ca72da071ad52602034cd69a5a21726e4b437c1c8e87ff952a88f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/README.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Description
|
|
4
4
|
|
|
5
|
-
Rubium is a
|
|
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 `
|
|
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.
|
data/lib/rubium/browser.rb
CHANGED
|
@@ -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
|
-
] +
|
|
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]
|
data/lib/rubium/version.rb
CHANGED
data/lib/rubium.rb
CHANGED
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.
|
|
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
|
-
|
|
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: []
|