Skip to content

Commit

Permalink
Fixed non-string handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Epigene committed Jun 19, 2018
1 parent 5c4d74b commit a752d1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
seb_elink (1.0.1.pre.beta1)
seb_elink (1.0.1.pre.beta2)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion lib/seb_elink/gateway.rb
Expand Up @@ -37,7 +37,7 @@ def produce_footprint(options)

# 2. build the 'len(p1)||p1..' string
# This here is weak. Handling accented unicode is one, but chinese characters will break thos logic
length = data_hash[field].size.to_s.rjust(3, "0")
length = data_hash[field].to_s.size.to_s.rjust(3, "0")

"#{length}#{data_hash[field]}"
end.join("")
Expand Down
2 changes: 1 addition & 1 deletion lib/seb_elink/version.rb
@@ -1,3 +1,3 @@
module SebElink
VERSION = "1.0.1-beta1"
VERSION = "1.0.1-beta2"
end

0 comments on commit a752d1b

Please sign in to comment.