ext/extconf.rb in ferocia-rubywmq-1.1.2 vs ext/extconf.rb in ferocia-rubywmq-1.1.3
- old
+ new
@@ -12,10 +12,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
-if RUBY_PLATFORM =~ /darwin/
+if RUBY_PLATFORM =~ /darwin/ || ENV['DISABLE_RUBYWMQ']
# do nothing on a mac, this is so people developing applications using this
# gem on a mac (using stubs for development) can still keep the gem in their
# Gemfile
# create a blank Makefile to satisfy extension install requirements
File.open("Makefile", "w") { |f| f << 'install:' }