From 554530dd60f1eccd16750fef172b23823f260326 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Fri, 3 Jan 2014 12:30:12 +0000 Subject: [PATCH] rspec-mocks version constraint released --- Gemfile | 2 -- lib/common/models/wp_version/findable.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 0cc315cd..720943f4 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,5 @@ source "https://rubygems.org" -# Seg fault in Typhoeus 0.6.3 (and ethon > 0.5.11) with rspec gem "typhoeus", ">=0.6.3" gem "nokogiri" gem "json" @@ -11,5 +10,4 @@ group :test do gem "webmock", ">=1.9.3" gem "simplecov" gem "rspec", :require => "spec" - gem "rspec-mocks", "<=2.14.2" # 2.14.3 just messed around :/ end diff --git a/lib/common/models/wp_version/findable.rb b/lib/common/models/wp_version/findable.rb index 87c29c36..7c53e618 100755 --- a/lib/common/models/wp_version/findable.rb +++ b/lib/common/models/wp_version/findable.rb @@ -12,7 +12,7 @@ class WpVersion < WpItem # # @return [ WpVersion ] def find(target_uri, wp_content_dir, wp_plugins_dir, versions_xml) - methods.grep(/find_from_/).each do |method| + methods.grep(/^find_from_/).each do |method| if method === :find_from_advanced_fingerprinting version = send(method, target_uri, wp_content_dir, wp_plugins_dir, versions_xml)