ronin-web-user_agents 0.1.0.beta1 → 0.1.0
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/.github/workflows/ruby.yml +1 -0
- data/.yardopts +1 -1
- data/ChangeLog.md +3 -0
- data/README.md +3 -2
- data/gemspec.yml +3 -3
- data/lib/ronin/web/user_agents/chrome.rb +1 -1
- data/lib/ronin/web/user_agents/data_dir.rb +1 -1
- data/lib/ronin/web/user_agents/firefox.rb +1 -1
- data/lib/ronin/web/user_agents/google_bot.rb +1 -1
- data/lib/ronin/web/user_agents/os/android.rb +1 -1
- data/lib/ronin/web/user_agents/os/linux.rb +1 -1
- data/lib/ronin/web/user_agents/os/mac_os.rb +1 -1
- data/lib/ronin/web/user_agents/os/windows.rb +1 -1
- data/lib/ronin/web/user_agents/version.rb +2 -2
- data/lib/ronin/web/user_agents.rb +1 -1
- data/ronin-web-user_agents.gemspec +2 -1
- metadata +6 -23
- data/spec/chrome_spec.rb +0 -511
- data/spec/firefox_spec.rb +0 -414
- data/spec/google_bot_spec.rb +0 -231
- data/spec/os/android_spec.rb +0 -55
- data/spec/os/linux_spec.rb +0 -48
- data/spec/os/mac_os_spec.rb +0 -73
- data/spec/os/windows_spec.rb +0 -52
- data/spec/spec_helper.rb +0 -4
- data/spec/user_agents_spec.rb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55a3e3bfe46dc0c698ffee051249993e16f7cb1e3f411e140b4379a168b4f5ee
|
4
|
+
data.tar.gz: aed3f4680b30846c2d8c61caa8addca28e86de85deeb94fb6fdb7ac6f18bd05a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76ebaf12208752b5ec1b2466a1dc0992aa202a026a2b700062014ee7c4d7ed15e6161340176dda532b3f6d0330f97c9a10be5146f2996b7b622f341d764c7759
|
7
|
+
data.tar.gz: b9dbce6211bfe348305adf37ff68de6b77ebb5a5b96c6fea4173accfae17a893834ea831297f741c1211089525b9b61bcf68d27b77189965b88a894fe1b8334d
|
data/.github/workflows/ruby.yml
CHANGED
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--markup markdown --title 'Ronin
|
1
|
+
--markup markdown --title 'Ronin::Web::UserAgents Documentation' --protected
|
data/ChangeLog.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
### 0.1.0 / 2023-XX-XX
|
2
2
|
|
3
|
+
* Extracted and refactored from [ronin-web](https://github.com/ronin-rb/ronin-web/tree/v0.3.0.rc1).
|
4
|
+
* Relicensed as LGPL-3.0.
|
3
5
|
* Initial release:
|
6
|
+
* Requires `ruby` >= 3.0.0.
|
4
7
|
* Generates random but realistic `User-Agent` strings from known values.
|
5
8
|
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://github.com/ronin-rb/ronin-web-user_agents/actions/workflows/ruby.yml)
|
4
4
|
[](https://codeclimate.com/github/ronin-rb/ronin-web-user_agents)
|
5
|
+
[](https://badge.fury.io/rb/ronin-web-user_agents)
|
5
6
|
|
6
7
|
* [Website](https://ronin-rb.dev/)
|
7
8
|
* [Source](https://github.com/ronin-rb/ronin-web-user_agents)
|
@@ -114,7 +115,7 @@ RestClient.get "https://www.whatismybrowser.com/detect/what-is-my-user-agent",
|
|
114
115
|
Spoof `curl`'s `User-Agent` string:
|
115
116
|
|
116
117
|
```shell
|
117
|
-
user_agent="$(ruby -
|
118
|
+
user_agent="$(ruby -r ronin/web/user_agents -e 'print Ronin::Web::UserAgents.chrome.random')"
|
118
119
|
|
119
120
|
curl --user-agent "$user_agent" https://www.whatismybrowser.com/detect/what-is-my-user-agent
|
120
121
|
```
|
@@ -159,7 +160,7 @@ gem.add_dependency 'ronin-web-user_agents', '~> 0.1'
|
|
159
160
|
|
160
161
|
## License
|
161
162
|
|
162
|
-
Copyright (c) 2006-
|
163
|
+
Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3@gmail.com)
|
163
164
|
|
164
165
|
ronin-web-user_agents is free software: you can redistribute it and/or modify
|
165
166
|
it under the terms of the GNU Lesser General Public License as published
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
name: ronin-web-user_agents
|
2
|
-
summary:
|
2
|
+
summary: Generate random but realistic User-Agent strings
|
3
3
|
description: Yet another User-Agent string generator library.
|
4
4
|
|
5
5
|
license: LGPL-3.0
|
@@ -9,10 +9,10 @@ homepage: https://ronin-rb.dev/
|
|
9
9
|
has_yard: true
|
10
10
|
|
11
11
|
metadata:
|
12
|
-
documentation_uri: https://
|
12
|
+
documentation_uri: https://ronin-rb.dev/docs/ronin-web-user_agents
|
13
13
|
source_code_uri: https://github.com/ronin-rb/ronin-web-user_agents
|
14
14
|
bug_tracker_uri: https://github.com/ronin-rb/ronin-web-user_agents/issues
|
15
|
-
changelog_uri: https://github.com/ronin-rb/ronin-web-user_agents/blob/
|
15
|
+
changelog_uri: https://github.com/ronin-rb/ronin-web-user_agents/blob/main/ChangeLog.md
|
16
16
|
rubygems_mfa_required: 'true'
|
17
17
|
|
18
18
|
required_ruby_version: ">= 3.0.0"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -22,7 +22,7 @@ module Ronin
|
|
22
22
|
module Web
|
23
23
|
module UserAgents
|
24
24
|
# ronin-web-user_agents version
|
25
|
-
VERSION = '0.1.0
|
25
|
+
VERSION = '0.1.0'
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# ronin-web-user_agents - Yet another User-Agent string generator library.
|
4
4
|
#
|
5
|
-
# Copyright (c) 2006-
|
5
|
+
# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
|
6
6
|
#
|
7
7
|
# ronin-web-user_agents is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU Lesser General Public License as published
|
@@ -27,13 +27,14 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.files = `git ls-files`.split($/)
|
28
28
|
gem.files = glob[gemspec['files']] if gemspec['files']
|
29
29
|
gem.files += Array(gemspec['generated_files'])
|
30
|
+
# exclude test files from the packages gem
|
31
|
+
gem.files -= glob[gemspec['test_files'] || 'spec/{**/}*']
|
30
32
|
|
31
33
|
gem.executables = gemspec.fetch('executables') do
|
32
34
|
glob['bin/*'].map { |path| File.basename(path) }
|
33
35
|
end
|
34
36
|
|
35
37
|
gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
|
36
|
-
gem.test_files = glob[gemspec['test_files'] || 'spec/{**/}*_spec.rb']
|
37
38
|
gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
|
38
39
|
|
39
40
|
gem.require_paths = Array(gemspec.fetch('require_paths') {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin-web-user_agents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -62,23 +62,14 @@ files:
|
|
62
62
|
- lib/ronin/web/user_agents/version.rb
|
63
63
|
- ronin-web-user_agents.gemspec
|
64
64
|
- scripts/index_user_agents
|
65
|
-
- spec/chrome_spec.rb
|
66
|
-
- spec/firefox_spec.rb
|
67
|
-
- spec/google_bot_spec.rb
|
68
|
-
- spec/os/android_spec.rb
|
69
|
-
- spec/os/linux_spec.rb
|
70
|
-
- spec/os/mac_os_spec.rb
|
71
|
-
- spec/os/windows_spec.rb
|
72
|
-
- spec/spec_helper.rb
|
73
|
-
- spec/user_agents_spec.rb
|
74
65
|
homepage: https://ronin-rb.dev/
|
75
66
|
licenses:
|
76
67
|
- LGPL-3.0
|
77
68
|
metadata:
|
78
|
-
documentation_uri: https://
|
69
|
+
documentation_uri: https://ronin-rb.dev/docs/ronin-web-user_agents
|
79
70
|
source_code_uri: https://github.com/ronin-rb/ronin-web-user_agents
|
80
71
|
bug_tracker_uri: https://github.com/ronin-rb/ronin-web-user_agents/issues
|
81
|
-
changelog_uri: https://github.com/ronin-rb/ronin-web-user_agents/blob/
|
72
|
+
changelog_uri: https://github.com/ronin-rb/ronin-web-user_agents/blob/main/ChangeLog.md
|
82
73
|
rubygems_mfa_required: 'true'
|
83
74
|
post_install_message:
|
84
75
|
rdoc_options: []
|
@@ -98,13 +89,5 @@ requirements: []
|
|
98
89
|
rubygems_version: 3.3.26
|
99
90
|
signing_key:
|
100
91
|
specification_version: 4
|
101
|
-
summary:
|
102
|
-
test_files:
|
103
|
-
- spec/chrome_spec.rb
|
104
|
-
- spec/firefox_spec.rb
|
105
|
-
- spec/google_bot_spec.rb
|
106
|
-
- spec/os/android_spec.rb
|
107
|
-
- spec/os/linux_spec.rb
|
108
|
-
- spec/os/mac_os_spec.rb
|
109
|
-
- spec/os/windows_spec.rb
|
110
|
-
- spec/user_agents_spec.rb
|
92
|
+
summary: Generate random but realistic User-Agent strings
|
93
|
+
test_files: []
|