tweakphoeus 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +11 -8
- data/CHANGELOG.md +5 -0
- data/lib/tweakphoeus/user_agent.rb +1 -2
- data/lib/tweakphoeus/version.rb +1 -1
- data/lib/tweakphoeus.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2fc171c1f446511f0c9ad337b4885e9ffc8cd0fe28ea3089875cf5a15a7fb25
|
4
|
+
data.tar.gz: 59583e9143549eb48d50b58e01e84155082e71c573191a3e4ce39f791ddd5e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 746e43e153431a56c07a7ec5c51ffa1a90f4e800c1018cb3792214877e10edc2e0aa3278a6290a43231192da9045170615bf6f32b1e0d521bc7ccb25d5e8bd28
|
7
|
+
data.tar.gz: '043856a637bbfb0a9fb5cdfd27f1bcba6ea8e132f3fdff9e0ce119f32578d042b039668f855383570c0b7ff02553c6b087b2506a632fd56bfa4fcd8500e2fa96'
|
data/.github/workflows/main.yml
CHANGED
@@ -5,15 +5,18 @@ on: [pull_request]
|
|
5
5
|
jobs:
|
6
6
|
build:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: [ '2.6', '2.7', '3.0' ]
|
8
11
|
steps:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
17
|
+
bundler-cache: true
|
18
|
+
- name: Run the default task
|
19
|
+
run: bundle exec rake
|
17
20
|
services:
|
18
21
|
whoami:
|
19
22
|
image: containous/whoami
|
data/CHANGELOG.md
CHANGED
@@ -40,3 +40,8 @@ Upgrading Typhoeus dependency to 1.4.0
|
|
40
40
|
- ssl_verifypeer and redirect parameters removed from HTTP verb methods
|
41
41
|
- cookie_jar is not longer an Hash, it has been extracted to Tweakphoeus::CookieJar class
|
42
42
|
- refeer_list is not longer an Array, it has been extracted to Tweakphoeus::RefererList class
|
43
|
+
|
44
|
+
-- v0.6.1 - Fixing issues with the modification of a frozen string
|
45
|
+
- Adds missing requires in the mail `.rb` file
|
46
|
+
- Solves an issue with a modification on a frozen string
|
47
|
+
> /Users/davidmartingarcia/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/tweakphoeus-0.6.0/lib/tweakphoeus/user_agent.rb:17:in `gsub!': can't modify frozen String: "Mozilla/5.0 (X11; gNewSense; Linux x86) Gecko/20100101 Firefox/84.0" (FrozenError)
|
@@ -14,8 +14,7 @@ module Tweakphoeus
|
|
14
14
|
def random(systems: OS_DATA[:types])
|
15
15
|
user_agent = "Mozilla/5.0 (#{os[systems.sample]}) #{browser}"
|
16
16
|
firefox_version = user_agent.match(%r{Firefox/([0-9.]+)})
|
17
|
-
user_agent.gsub
|
18
|
-
user_agent
|
17
|
+
user_agent.gsub(')', "; rv:#{firefox_version[1]})") if firefox_version.is_a?(MatchData)
|
19
18
|
end
|
20
19
|
|
21
20
|
private
|
data/lib/tweakphoeus/version.rb
CHANGED
data/lib/tweakphoeus.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tweakphoeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Martin Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|