Permalink
Browse files

moved fix for ruby1.8

  • Loading branch information...
1 parent 55f7775 commit c3a37f14e2dd0d68c1d5400b1fbab6a62a482ece @nougad committed Jan 28, 2012
Showing with 10 additions and 9 deletions.
  1. +10 −0 lib/ruby-osc/helper.rb
  2. +0 −9 spec/spec_helper.rb
View
@@ -1,5 +1,15 @@
# encoding: UTF-8
+if RUBY_VERSION.to_f < 1.9
+ class String
+ def force_encoding x
+ # Nothing
+ self
+ end
+ end
+end
+
module OSC
+
class DecodeError < StandardError; end
class Blob < String; end
View
@@ -3,14 +3,5 @@
$:.unshift( File.join( File.dirname( __FILE__), '..', 'lib' ) )
-if RUBY_VERSION.to_f < 1.9
- class String
- def force_encoding x
- # Nothing
- self
- end
- end
-end
-
require 'ruby-osc'
include OSC

0 comments on commit c3a37f1

Please sign in to comment.