Skip to content

Commit

Permalink
Stops handling 1.8.7 missing RUBY_ENGINE constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
philnash committed Sep 24, 2014
1 parent 2ab5a93 commit 419f480
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/twilio-ruby/rest/client.rb
Expand Up @@ -53,18 +53,11 @@ class Client

API_VERSION = '2010-04-01'

# 1.8.7 doesn't have the RUBY_ENGINE constant.
if defined?(RUBY_ENGINE)
engine = RUBY_ENGINE
else
engine = 'ruby'
end

HTTP_HEADERS = {
'Accept' => 'application/json',
'Accept-Charset' => 'utf-8',
'User-Agent' => "twilio-ruby/#{Twilio::VERSION}" \
" (#{engine}/#{RUBY_PLATFORM}" \
" (#{RUBY_ENGINE}/#{RUBY_PLATFORM}" \
" #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL})"
}

Expand Down

0 comments on commit 419f480

Please sign in to comment.