Skip to content

Commit

Permalink
raise ruby 1.8.7 error
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Sep 22, 2014
1 parent 990c0bf commit 1908cac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/protocol_buffers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require 'stringio'

if RUBY_VERSION < "1.9"
raise("This version of ruby-protocol-buffers no longer supports Ruby 1.8.7")
end

module ProtocolBuffers
def self.bin_sio(*args)
sio = StringIO.new(*args)
Expand Down

0 comments on commit 1908cac

Please sign in to comment.