rspec-mocks version constraint released

This commit is contained in:
erwanlr
2014-01-03 12:30:12 +00:00
parent 2472e5546f
commit 554530dd60
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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)