rex-text 0.2.56 → 0.2.58

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 228e101f378142e65d4e105177e035ebd678f1d70a0b7bbc6c8cea5a150f3594
4
- data.tar.gz: 591ad72b7e3f1fadf4323c7092be9aff494d669311c7b628374009308d97d376
3
+ metadata.gz: f93cc2b081c3c212d771e24fc6609827bbbfa793a0ff831e36db36ed109e9698
4
+ data.tar.gz: c47a24c308143a31dbc613bf7373d7c0ff1ba1015a7682ca50ed2c6a61151cae
5
5
  SHA512:
6
- metadata.gz: e0d08ee5c96d5d0b7b6ba85fb01f18da3bc59e24bb34734f15130fc4d3db0ea14e4fe507e67dee157f3cebe17b30428420acac6020927f9478415c8cb807cba6
7
- data.tar.gz: cb322c6675fbb09555e4cd1c3a3aac91bc56d6558e106057ff9731ac0e53d810549f2a319d3a7cd31541348b827bdbbb72e38fb5a918e7ac30db2c7d5a23335d
6
+ metadata.gz: cacdcdfe6fed8cd45720cd5207f7691bf213ee2d20006cc5e14930e3416e0be7740466c10dd24507765343b40a7c9788c0251e8f02fd6861e4922fd47ab970f5
7
+ data.tar.gz: 68c829797b08567a41bebf3701409894d45835bbd13ba026e9469acb7d2f794dbddf90f0348ea9d28b71a20b411893f0b479d34f9d7449d5ca3dcd7969a95f15
checksums.yaml.gz.sig CHANGED
Binary file
@@ -53,7 +53,7 @@ jobs:
53
53
  name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
54
54
  steps:
55
55
  - name: Checkout code
56
- uses: actions/checkout@v2
56
+ uses: actions/checkout@v4
57
57
 
58
58
  - name: Setup Ruby
59
59
  uses: ruby/setup-ruby@v1
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
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Text
3
- VERSION = "0.2.56"
3
+ VERSION = "0.2.58"
4
4
  end
5
5
  end
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.56
4
+ version: 0.2.58
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-02-22 00:00:00.000000000 Z
37
+ date: 2024-05-10 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rake
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.1.4
129
+ rubygems_version: 3.2.3
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Provides Text Manipulation Methods for Exploitation
metadata.gz.sig CHANGED
Binary file