Author: martinkl
Date: Wed Jan 13 20:33:03 2016
New Revision: 1724508
URL: http://svn.apache.org/viewvc?rev=1724508&view=rev
Log:
AVRO-1782. Ruby: Fix unit test failures in new versions of Ruby.
Modified:
avro/trunk/CHANGES.txt
avro/trunk/lang/ruby/lib/avro/schema_normalization.rb
avro/trunk/lang/ruby/test/case_finder.rb
Modified: avro/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1724508&r1=1724507&r2=1724508&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Wed Jan 13 20:33:03 2016
@@ -262,6 +262,8 @@ Avro 1.8.0 (15 December 2015)
AVRO-1781. Java: Fix Schema.parse thread safety bug introduced by logical
types. (blue)
+ AVRO-1782. Ruby: Fix unit test failures in new versions of Ruby. (martinkl)
+
Avro 1.7.7 (23 July 2014)
NEW FEATURES
Modified: avro/trunk/lang/ruby/lib/avro/schema_normalization.rb
URL:
http://svn.apache.org/viewvc/avro/trunk/lang/ruby/lib/avro/schema_normalization.rb?rev=1724508&r1=1724507&r2=1724508&view=diff
==============================================================================
--- avro/trunk/lang/ruby/lib/avro/schema_normalization.rb (original)
+++ avro/trunk/lang/ruby/lib/avro/schema_normalization.rb Wed Jan 13 20:33:03
2016
@@ -25,7 +25,7 @@ module Avro
end
def to_parsing_form(schema)
- JSON.dump(normalize_schema(schema))
+ MultiJson.dump(normalize_schema(schema))
end
private
Modified: avro/trunk/lang/ruby/test/case_finder.rb
URL:
http://svn.apache.org/viewvc/avro/trunk/lang/ruby/test/case_finder.rb?rev=1724508&r1=1724507&r2=1724508&view=diff
==============================================================================
--- avro/trunk/lang/ruby/test/case_finder.rb (original)
+++ avro/trunk/lang/ruby/test/case_finder.rb Wed Jan 13 20:33:03 2016
@@ -16,6 +16,8 @@
# specific language governing permissions and limitations
# under the License.
#
+require 'strscan'
+
class CaseFinder
PATH = File.expand_path("../../../../share/test/data/schema-tests.txt",
__FILE__)