Vincent Batts <vbatts@slackware.com>


Patch
r1407206

r1407206 | philip | 2012-11-08 18:28:38 +0000 (Thu, 08 Nov 2012)

Initial support for ruby 1.9.3 when creating swig bindings for subversion.

* Makefile.in:
  (check-swig-rb): Ruby 1.8 uses --verbose, 1.9 does not for run-test.rb

* subversion/bindings/swig/ruby/test/test_core.rb:
  (test_time, test_create_commit_info): Updated for ruby1.9 time, which
   uses nanoseconds.
  (test_config_each): Tweak sort.

* subversion/bindings/swig/ruby/test/test_repos.rb:
  (test_create): Ruby1.8 carries the assignment through block, ruby1.9
   does not carry assignments, we need to explicitly do this.

* subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:
  (TestSuite): Run priority tests only for ruby1.8.

* subversion/bindings/swig/ruby/test/test_delta.rb:
  (test_txdelta_window): Fix nil return in ruby1.9,
  (test_txdelta_window_compose): Ruby1.8 carries the assignment through
   block, ruby1.9 does not carry assignments, we need to explicitly do this
  (test_svndiff): Fix StringIO encoding to be ASCII-8BIT, no longer
   assumed as in ruby1.8.

* subversion/bindings/swig/ruby/test/test-unit-ext.rb:
  (): Turn off some tests for ruby1.9, they should be fixed still.

* subversion/bindings/swig/ruby/test/test_fs.rb:
  (): Update md5 to digest/md5 in require.
  (assert_create): Assignments not carried through block in 1.9.
  (test_root, test_delta): Use new md5 name.

* subversion/bindings/swig/ruby/test/test_wc.rb,
  subversion/bindings/swig/ruby/test/test_client.rb:
  (make_context): Ruby1.8 carries the assignment through block, ruby1.9
   does not carry assignments, we need to explicitly do this.

* subversion/bindings/swig/ruby/test/my-assertions.rb:
  (my_assert_block): New.
  (assert_true, assert_false, assert_nested_sorted_array,
   assert_equal_log_entries): Use it.

* subversion/bindings/swig/ruby/svn/util.rb:
  (to_ruby_class_name): Convert to string before splitting for ruby1.9
   compat.

* subversion/bindings/swig/ruby/svn/info.rb:
  (parse_diff): Use each_line for ruby1.9 and each for ruby1.8.

* configure.ac:
  Detect ruby1.9.3 - added teeny version detection restrict build
  to 1.8.x and >= 1.9.3.

Patch by: Michael Chletsos <mpchlets@gmail.com>,
          Vincent Batts <vbatts@slackware.com>