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" source "https://rubygems.org"
# Seg fault in Typhoeus 0.6.3 (and ethon > 0.5.11) with rspec
gem "typhoeus", ">=0.6.3" gem "typhoeus", ">=0.6.3"
gem "nokogiri" gem "nokogiri"
gem "json" gem "json"
@@ -11,5 +10,4 @@ group :test do
gem "webmock", ">=1.9.3" gem "webmock", ">=1.9.3"
gem "simplecov" gem "simplecov"
gem "rspec", :require => "spec" gem "rspec", :require => "spec"
gem "rspec-mocks", "<=2.14.2" # 2.14.3 just messed around :/
end end

View File

@@ -12,7 +12,7 @@ class WpVersion < WpItem
# #
# @return [ WpVersion ] # @return [ WpVersion ]
def find(target_uri, wp_content_dir, wp_plugins_dir, versions_xml) 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 if method === :find_from_advanced_fingerprinting
version = send(method, target_uri, wp_content_dir, wp_plugins_dir, versions_xml) version = send(method, target_uri, wp_content_dir, wp_plugins_dir, versions_xml)