Author: martinkl
Date: Wed Jan 13 20:32:45 2016
New Revision: 1724507
URL: http://svn.apache.org/viewvc?rev=1724507&view=rev
Log:
AVRO-1782. Ruby: Fix unit test failures in new versions of Ruby.
Modified:
avro/branches/branch-1.8/CHANGES.txt
avro/branches/branch-1.8/lang/ruby/lib/avro/schema_normalization.rb
avro/branches/branch-1.8/lang/ruby/test/case_finder.rb
Modified: avro/branches/branch-1.8/CHANGES.txt
URL:
http://svn.apache.org/viewvc/avro/branches/branch-1.8/CHANGES.txt?rev=1724507&r1=1724506&r2=1724507&view=diff
==============================================================================
--- avro/branches/branch-1.8/CHANGES.txt (original)
+++ avro/branches/branch-1.8/CHANGES.txt Wed Jan 13 20:32:45 2016
@@ -247,6 +247,8 @@ Avro 1.8.0 (15 December 2015)
AVRO-1779. Avro docs convenience artifact missing LICENSE/NOTICE.
(blue via tomwhite)
+ AVRO-1782. Ruby: Fix unit test failures in new versions of Ruby. (martinkl)
+
Avro 1.7.7 (23 July 2014)
NEW FEATURES
Modified: avro/branches/branch-1.8/lang/ruby/lib/avro/schema_normalization.rb
URL:
http://svn.apache.org/viewvc/avro/branches/branch-1.8/lang/ruby/lib/avro/schema_normalization.rb?rev=1724507&r1=1724506&r2=1724507&view=diff
==============================================================================
--- avro/branches/branch-1.8/lang/ruby/lib/avro/schema_normalization.rb
(original)
+++ avro/branches/branch-1.8/lang/ruby/lib/avro/schema_normalization.rb Wed Jan
13 20:32:45 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/branches/branch-1.8/lang/ruby/test/case_finder.rb
URL:
http://svn.apache.org/viewvc/avro/branches/branch-1.8/lang/ruby/test/case_finder.rb?rev=1724507&r1=1724506&r2=1724507&view=diff
==============================================================================
--- avro/branches/branch-1.8/lang/ruby/test/case_finder.rb (original)
+++ avro/branches/branch-1.8/lang/ruby/test/case_finder.rb Wed Jan 13 20:32:45
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__)