Permalink
Browse files

Bump to 3.1, fix small issue in formatted_digits

In formatted_digits, if digits isn't a string, then split will fail.
Digits is technically a string when it comes from Twilio via the
request params, so let's allow that to be valid.
  • Loading branch information...
JMongol committed Mar 13, 2013
1 parent bd0f479 commit c1494de3d8cef8ff3736ae7ede0b93d00f0320cd
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/twilio-test-toolkit/call_scope.rb
  2. +1 −1 lib/twilio-test-toolkit/version.rb
@@ -125,7 +125,7 @@ def formatted_digits(digits, options = {})
if digits.nil?
''
elsif options[:finish_on_key]
- digits.split(options[:finish_on_key])[0]
+ digits.to_s.split(options[:finish_on_key])[0]
else
digits
end
@@ -1,3 +1,3 @@
module TwilioTestToolkit
- VERSION = "3.0.0"
+ VERSION = "3.1.0"
end

0 comments on commit c1494de

Please sign in to comment.