ronin-db-activerecord 0.1.4 → 0.1.5

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: 33a8e923e83f3f3d8441d721b7840a370b230c6bb055c0eee04ddb87e380ecc0
4
- data.tar.gz: a54ff9c9fa40b79e4271122467f9335091943980ab488ed5ef2a3a0f7ba93d29
3
+ metadata.gz: 35997b96261ef5eff4b50913690276c01e5c252984575aaed1cb2043c54e420f
4
+ data.tar.gz: 97fb7f0f80518d129b4919e12787fb837a2a1090a67fa3d443f8f46f067a26aa
5
5
  SHA512:
6
- metadata.gz: f99534027f46f48308b13038a0d91c0dcb462903d662f37580bab90ca0b08c94a9354d9dfef63a138244f57e9e3c6fc2158a993cfbee12ee551244a22124b6ba
7
- data.tar.gz: 823b4b5a7efdcbdabeede52192e55bedcd4341c356d8679fa4a0782d7c4c686fd12a27b7c0ef8424175449a861c33caf7b3764de16e38a039ed7f8ee130cc9d3
6
+ metadata.gz: f21ffa2cc2243a506e1338bf64f14dbcf6dd99605a25ac49b0a05f5e5298dfa43e2dbbedb50c74df9cb06ea74e35f33d6ce2bee1cc0ffa018c40aa194d9108a4
7
+ data.tar.gz: 6f04a43848ab8faccb4e779d8f999de7cc51a669a935dddf0ec1e7a7d3f314a202355cbe114d29bfe70c49e55ec92a7cd4e9f2dcf7fba535013587f6d248bdc7
data/ChangeLog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 0.1.5 / 2023-12-13
2
+
3
+ * Corrected {Ronin::DB::HTTPRequest#request_method} to accept and store
4
+ uppercase HTTP verbs (ex: `GET`).
5
+ * Corrected {Ronin::DB::HTTPRequest#request_method} helper methods to use the
6
+ singular suffix of `_request?` (ex: `get_request?`).
7
+
1
8
  ### 0.1.4 / 2023-10-16
2
9
 
3
10
  * Require [activerecord] `~> 7.0`.
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gem 'sqlite3', '~> 1.0', platforms: [:mri, :truffleruby]
8
8
 
9
9
  platform :jruby do
10
10
  gem 'jruby-openssl', '~> 0.7'
11
- gem 'activerecord-jdbcsqlite3-adapter', '~> 70.0.pre'
11
+ gem 'activerecord-jdbcsqlite3-adapter', '~> 70.0'
12
12
  end
13
13
 
14
14
  group :development do
data/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: ronin-db-activerecord
2
- version: 0.1.4
2
+ version: 0.1.5
3
3
  summary: ActiveRecord backend for the Ronin Database
4
4
  description:
5
5
  ronin-db-activerecord contains ActiveRecord models and migrations for the
data/lib/ronin/db/arch.rb CHANGED
@@ -44,7 +44,7 @@ module Ronin
44
44
  # @!attribute [rw] endian
45
45
  # Endianness of the architecture.
46
46
  #
47
- # @return [:little, :big]
47
+ # @return ["little", "big"]
48
48
  enum :endian, {little: 'little', big: 'big'}
49
49
  validates :endian, presence: true
50
50
 
@@ -48,24 +48,24 @@ module Ronin
48
48
  # @!attribute [rw] request_method
49
49
  # The request method.
50
50
  #
51
- # @return [:copy, :delete, :get, :head, :lock, :mkcol, :move, :options, :patch, :post, :propfind, :proppatch, :put, :trace, :unlock]
52
- enum request_method: [
53
- :copy,
54
- :delete,
55
- :get,
56
- :head,
57
- :lock,
58
- :mkcol,
59
- :move,
60
- :options,
61
- :patch,
62
- :post,
63
- :propfind,
64
- :proppatch,
65
- :put,
66
- :trace,
67
- :unlock
68
- ], _suffix: :requests
51
+ # @return ["copy", "delete", "get", "head", "lock", "mkcol", "move", "options", "patch", "post", "propfind", "proppatch", "put", "trace", "unlock"]
52
+ enum request_method: {
53
+ copy: 'COPY',
54
+ delete: 'DELETE',
55
+ get: 'GET',
56
+ head: 'HEAD',
57
+ lock: 'LOCK',
58
+ mkcol: 'MKCOL',
59
+ move: 'MOVE',
60
+ options: 'OPTIONS',
61
+ patch: 'PATCH',
62
+ post: 'POST',
63
+ propfind: 'PROPFIND',
64
+ proppatch: 'PROPPATCH',
65
+ put: 'PUT',
66
+ trace: 'TRACE',
67
+ unlock: 'UNLOCK'
68
+ }, _suffix: :request
69
69
  validates :request_method, presence: true
70
70
 
71
71
  # @!attribute [rw] path
data/lib/ronin/db/os.rb CHANGED
@@ -43,7 +43,7 @@ module Ronin
43
43
  # @!attribute [rw] flavor
44
44
  # The flavor of the OS (Linux, BSD).
45
45
  #
46
- # @return [:linux, :bsd]
46
+ # @return ["linux", "bsd"]
47
47
  enum :flavor, {linux: 'Linux', bsd: 'BSD'}
48
48
 
49
49
  # @!attribute [rw] version
data/lib/ronin/db/port.rb CHANGED
@@ -40,7 +40,7 @@ module Ronin
40
40
  # @!attribute [rw] protocol
41
41
  # The protocol of the port (either `'tcp'` / `'udp'`).
42
42
  #
43
- # @return [:tcp, :udp]
43
+ # @return ["tcp", "udp"]
44
44
  enum :protocol, {tcp: 'tcp', udp: 'udp'}, default: :tcp
45
45
  validates :protocol, presence: true
46
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-db-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-17 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri-query_params