Thrift-2184: undefined method rspec_verify for Thrift::MemoryBufferTransport
authorjfarrell <jfarrell@apache.org>
Thu, 23 Jan 2014 03:20:21 +0000 (22:20 -0500)
committerjfarrell <jfarrell@apache.org>
Thu, 23 Jan 2014 03:20:21 +0000 (22:20 -0500)
Client: rb
Patch: jfarrell | Nevo Hed

Updates ruby checks to require bundler and uses bundle exec to ensure
the required rake version.

configure.ac
lib/rb/Makefile.am

index 593b66c..7d9a82e 100755 (executable)
@@ -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
index 091c67f..300f676 100755 (executable)
@@ -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