Skip to content

Commit d93d970

Browse files
author
Stefano Tortarolo
committed
Remove trailing spaces
1 parent ea21ef9 commit d93d970

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/net/ber.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,24 +293,24 @@ def to_arr
293293

294294
##
295295
# A String object with a BER identifier attached.
296-
#
296+
#
297297
class Net::BER::BerIdentifiedString < String
298298
attr_accessor :ber_identifier
299299

300300
# The binary data provided when parsing the result of the LDAP search
301301
# has the encoding 'ASCII-8BIT' (which is basically 'BINARY', or 'unknown').
302-
#
302+
#
303303
# This is the kind of a backtrace showing how the binary `data` comes to
304304
# BerIdentifiedString.new(data):
305305
#
306306
# @conn.read_ber(syntax)
307307
# -> StringIO.new(self).read_ber(syntax), i.e. included from module
308-
# -> Net::BER::BERParser.read_ber(syntax)
308+
# -> Net::BER::BERParser.read_ber(syntax)
309309
# -> (private)Net::BER::BERParser.parse_ber_object(syntax, id, data)
310-
#
310+
#
311311
# In the `#parse_ber_object` method `data`, according to its OID, is being
312312
# 'casted' to one of the Net::BER:BerIdentifiedXXX classes.
313-
#
313+
#
314314
# As we are using LDAP v3 we can safely assume that the data is encoded
315315
# in UTF-8 and therefore the only thing to be done when instantiating is to
316316
# switch the encoding from 'ASCII-8BIT' to 'UTF-8'.
@@ -322,9 +322,9 @@ class Net::BER::BerIdentifiedString < String
322322
# I have no clue how this encodings function.
323323
def initialize args
324324
super
325-
#
325+
#
326326
# Check the encoding of the newly created String and set the encoding
327-
# to 'UTF-8' (NOTE: we do NOT change the bytes, but only set the
327+
# to 'UTF-8' (NOTE: we do NOT change the bytes, but only set the
328328
# encoding to 'UTF-8').
329329
current_encoding = encoding
330330
if current_encoding == Encoding::BINARY

test/ber/test_ber.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ def test_binary_data
130130
def test_ascii_data_in_utf8
131131
data = "some text".force_encoding("UTF-8")
132132
bis = Net::BER::BerIdentifiedString.new(data)
133-
133+
134134
assert bis.valid_encoding?, "should be a valid encoding"
135135
assert_equal "UTF-8", bis.encoding.name
136136
end
137-
137+
138138
def test_umlaut_data_in_utf8
139139
data = "Müller".force_encoding("UTF-8")
140140
bis = Net::BER::BerIdentifiedString.new(data)

0 commit comments

Comments
 (0)