ronin-support 1.0.4 → 1.0.5

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: d6f75dd96200bd01190ad5ae040cc28dfc658c3f6bcf6c7f299bcdb01d1ee974
4
- data.tar.gz: 2a9b6e98f9959efacbbc81fccecbaa68b1620a8f52e38efdc941dcdba74ba38d
3
+ metadata.gz: a34adac08397fc6bc4164f60be481e5f945eda3d18fcf5f93c0145fcc6a624ea
4
+ data.tar.gz: a6199b50de111e4140ee8159a0537b557e1e0e481f51ca04e362222a13572338
5
5
  SHA512:
6
- metadata.gz: 604e499c76bfd98e82dd2711a203edb85263742df23f128179d52b283c1f6e468334a34b456119b76c1a0d84b2d06969100d4b75e880a5b4ab963e6ccf244742
7
- data.tar.gz: 843289f09e088afc611ee793f645cdb978bb51613d69176591599c26fdc4e8bfcc8b255e76fc01a7b8c40b1024aa94b69976754de3d9ef84b9ae5eecc62d4223
6
+ metadata.gz: 3b998a3b8fdfb358d1416d77c8f1107ef708f97ab635b6e1d5cd3d24804f958f4ea23e670cdf0c6dd718e358fccfda3fc2609432563c27e1f68d4f0c785bc426
7
+ data.tar.gz: b1d94229203e0485999d89a6521bd5ec43aa1356d347ae90f09e6ef85255b704a5e2de2bfcedd02a6b91596942a3673b796b8f70d760f883110f033f86545557
@@ -12,6 +12,7 @@ jobs:
12
12
  - '3.0'
13
13
  - '3.1'
14
14
  - '3.2'
15
+ - '3.3'
15
16
  # - jruby
16
17
  # - truffleruby
17
18
  name: Ruby ${{ matrix.ruby }}
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 1.0.5 / 2023-12-27
2
+
3
+ * Fixed a bug in {Ronin::Support::Binary::Stream::Methods#read_string} on Ruby
4
+ 3.3.0.
5
+
1
6
  ### 1.0.4 / 2023-12-15
2
7
 
3
8
  * Fixed a bug in {Array#pack} where complex types (ex: `[[:uint32, 4], 10]`)
@@ -111,7 +111,11 @@ module Ronin
111
111
  # @api public
112
112
  #
113
113
  def read_string(length=nil)
114
- new_string = String.new('', encoding: external_encoding)
114
+ new_string = if (encoding = external_encoding)
115
+ String.new('', encoding: encoding)
116
+ else
117
+ String.new('')
118
+ end
115
119
 
116
120
  if length
117
121
  length.times do
@@ -108,7 +108,7 @@ module Ronin
108
108
  # Path to the CA certificate file or directory.
109
109
  #
110
110
  # @return [OpenSSL::SSL::SSLSocket]
111
- # the new SSL Socket.
111
+ # The new SSL Socket.
112
112
  #
113
113
  # @api public
114
114
  #
@@ -246,7 +246,7 @@ module Ronin
246
246
  # The new SSL Socket.
247
247
  #
248
248
  # @return [OpenSSL::SSL::SSLSocket, nil]
249
- # the new SSL Socket. If a block is given, then `nil` will be
249
+ # The new SSL Socket. If a block is given, then `nil` will be
250
250
  # returned.
251
251
  #
252
252
  # @example
@@ -573,7 +573,7 @@ module Ronin
573
573
  # Path to the CA certificate file or directory.
574
574
  #
575
575
  # @return [OpenSSL::SSL::SSLSocket]
576
- # the new SSL Socket.
576
+ # The new SSL Socket.
577
577
  #
578
578
  # @api public
579
579
  #
@@ -107,7 +107,7 @@ module Ronin
107
107
  # Path to the CA certificate file or directory.
108
108
  #
109
109
  # @return [OpenSSL::SSL::SSLSocket]
110
- # the new SSL Socket.
110
+ # The new SSL Socket.
111
111
  #
112
112
  # @api public
113
113
  #
@@ -233,7 +233,7 @@ module Ronin
233
233
  # The new SSL Socket.
234
234
  #
235
235
  # @return [OpenSSL::SSL::SSLSocket, nil]
236
- # the new SSL Socket. If a block is given, then `nil` will be
236
+ # The new SSL Socket. If a block is given, then `nil` will be
237
237
  # returned.
238
238
  #
239
239
  # @example
@@ -519,7 +519,7 @@ module Ronin
519
519
  # * `:client_once`
520
520
  #
521
521
  # @return [OpenSSL::SSL::SSLSocket]
522
- # the new SSL Socket.
522
+ # The new SSL Socket.
523
523
  #
524
524
  # @api public
525
525
  #
@@ -19,6 +19,6 @@
19
19
  module Ronin
20
20
  module Support
21
21
  # ronin-support version
22
- VERSION = '1.0.4'
22
+ VERSION = '1.0.5'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.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-12-16 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chars
@@ -470,7 +470,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
470
470
  - !ruby/object:Gem::Version
471
471
  version: '0'
472
472
  requirements: []
473
- rubygems_version: 3.3.26
473
+ rubygems_version: 3.5.3
474
474
  signing_key:
475
475
  specification_version: 4
476
476
  summary: A support library for ronin-rb.