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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 211ce690829536496ff38bb3b42eeb7aca3fc6288e43def11bfbba17f28895e5
4
- data.tar.gz: e9085b315d3f470f0d521864926ded3bdbfd0c2ea033d19795abace19645a294
3
+ metadata.gz: 55a3e3bfe46dc0c698ffee051249993e16f7cb1e3f411e140b4379a168b4f5ee
4
+ data.tar.gz: aed3f4680b30846c2d8c61caa8addca28e86de85deeb94fb6fdb7ac6f18bd05a
5
5
  SHA512:
6
- metadata.gz: a4690d6f464cae3c3fb33a2ab1904147ec2c41cd148e90a609b52e3bf28d8ef7b5bf3197a2c88de88b56b67cb6aca6d4bab08c564692d9341df658f035685d5b
7
- data.tar.gz: 531decd58766e34c94b7e558b1bc3d2ef236edaf354e48f9b663e1ed8a7ee87d71d98f543962a71278a0f5f21a604511d4f2255cca8e2dda9b9612b4905a4333
6
+ metadata.gz: 76ebaf12208752b5ec1b2466a1dc0992aa202a026a2b700062014ee7c4d7ed15e6161340176dda532b3f6d0330f97c9a10be5146f2996b7b622f341d764c7759
7
+ data.tar.gz: b9dbce6211bfe348305adf37ff68de6b77ebb5a5b96c6fea4173accfae17a893834ea831297f741c1211089525b9b61bcf68d27b77189965b88a894fe1b8334d
@@ -21,6 +21,7 @@ jobs:
21
21
  uses: ruby/setup-ruby@v1
22
22
  with:
23
23
  ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
24
25
  - name: Install libsqlite3
25
26
  run: |
26
27
  sudo apt update -y && \
data/.yardopts CHANGED
@@ -1 +1 @@
1
- --markup markdown --title 'Ronin Web UserAgents Documentation' --protected
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
  [![CI](https://github.com/ronin-rb/ronin-web-user_agents/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-web-user_agents/actions/workflows/ruby.yml)
4
4
  [![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-web-user_agents.svg)](https://codeclimate.com/github/ronin-rb/ronin-web-user_agents)
5
+ [![Gem Version](https://badge.fury.io/rb/ronin-web-user_agents.svg)](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 -Ilib -r ronin/web/user_agents -e 'print Ronin::Web::UserAgents.chrome.random')"
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-2022 Hal Brodigan (postmodern.mod3@gmail.com)
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: generate random User-Agent strings
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://rubydoc.info/gems/ronin-web-user_agents
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/master/ChangeLog.md
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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.beta1'
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-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
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.beta1
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-01-01 00:00:00.000000000 Z
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://rubydoc.info/gems/ronin-web-user_agents
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/master/ChangeLog.md
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: generate random User-Agent strings
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: []