From 507740c93c795b9d1f927909456962ec64f67b65 Mon Sep 17 00:00:00 2001 From: jfarrell Date: Wed, 22 Jan 2014 22:20:21 -0500 Subject: [PATCH] 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. --- configure.ac | 3 +-- lib/rb/Makefile.am | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) 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 -- 2.17.1