rex-text 0.2.56 → 0.2.57
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
- checksums.yaml.gz.sig +0 -0
- data/lib/rex/text/lang.rb +14 -0
- data/lib/rex/text/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4be7ba44cf30e38db54d223a59c21a0afec606e083cd005686fc42218a50010
|
|
4
|
+
data.tar.gz: 3fa85e08816119262aff2a4f476c5c8aea29456229beee3d0575f57edb709541
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7eb8d6ff25261432871a027fa4ebe77cc47fa3ae9711af39f6ad64a4ab403e64a6f14ec31f5c04c863d16d2ae831f17f7eeee59b603ace8f6dd37f23e0b2dc66
|
|
7
|
+
data.tar.gz: ca4408939a10094725332ac3c7a82d8b7d6a3de2dbe60b8fee39c80f5123f24125f9365a5b84afcce6de714de3c4cf3b223f44f44272836109089f7158e4a0a2
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/rex/text/lang.rb
CHANGED
|
@@ -217,5 +217,19 @@ module Rex
|
|
|
217
217
|
return wordwrap(str, 0, wrap, '', '# ')
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
+
#
|
|
221
|
+
# Converts to a zig style array of bytes
|
|
222
|
+
#
|
|
223
|
+
def self.to_zig(str, wrap = DefaultWrap, name = "buf")
|
|
224
|
+
return numhexify(str, wrap, '', '', "\nconst #{name}: []const u8 = \&.{\n", "};", ',')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
#
|
|
228
|
+
# Creates a zig-style comment
|
|
229
|
+
#
|
|
230
|
+
def self.to_zig_comment(str, wrap = DefaultWrap)
|
|
231
|
+
return wordwrap(str, 0, wrap, '', '// ')
|
|
232
|
+
end
|
|
233
|
+
|
|
220
234
|
end
|
|
221
235
|
end
|
data/lib/rex/text/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rex-text
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.57
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
DgscAao7wB3xW2BWEp1KnaDWkf1x9ttgoBEYyuYwU7uatB67kBQG1PKvLt79wHvz
|
|
35
35
|
Dxs+KOjGbBRfMnPgVGYkORKVrZIwlaboHbDKxcVW5xv+oZc7KYXWGg==
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2024-
|
|
37
|
+
date: 2024-03-28 00:00:00.000000000 Z
|
|
38
38
|
dependencies:
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
name: rake
|
metadata.gz.sig
CHANGED
|
Binary file
|