From: jfarrell Date: Thu, 23 Jan 2014 03:20:21 +0000 (-0500) Subject: Thrift-2184: undefined method rspec_verify for Thrift::MemoryBufferTransport X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=507740c93c795b9d1f927909456962ec64f67b65;p=common%2Fthrift.git Thrift-2184: undefined method rspec_verify for Thrift::MemoryBufferTransport Client: rb Patch: jfarrell | Nevo Hed Updates ruby checks to require bundler and uses bundle exec to ensure the required rake version. --- diff --git a/configure.ac b/configure.ac index 593b66cf..7d9a82e5 100755 --- a/configure.ac +++ b/configure.ac @@ -232,9 +232,8 @@ AX_THRIFT_LIB(ruby, [Ruby], yes) have_ruby=no if test "$with_ruby" = "yes"; then AC_PATH_PROG([RUBY], [ruby]) - AC_PATH_PROG([RAKE], [rake]) AC_PATH_PROG([BUNDLER], [bundle]) - if test "x$RUBY" != "x" -a "x$RAKE" != "x"; then + if test "x$RUBY" != "x" -a "x$BUNDLER" != "x"; then have_ruby="yes" fi fi diff --git a/lib/rb/Makefile.am b/lib/rb/Makefile.am index 091c67fe..300f6768 100755 --- a/lib/rb/Makefile.am +++ b/lib/rb/Makefile.am @@ -29,21 +29,21 @@ EXTRA_DIST = \ DESTDIR ?= / -all-local: if HAVE_BUNDLER + +all-local: $(BUNDLER) install $(BUNDLER) exec rake -endif install-exec-hook: - $(RAKE) install + $(BUNDLER) exec rake install clean-local: - $(RAKE) clean + $(BUNDLER) exec rake clean check-local: all -if HAVE_BUNDLER $(BUNDLER) install $(BUNDLER) exec rake + endif