Project

General

Profile

« Previous | Next » 

Revision ce4e7bc9

Added by Justin Sherrill about 8 years ago

Fixes #13700 - Updating to support rest-client 1.8.0

View differences:

lib/runcible/base.rb
i.respond_to?(:with_indifferent_access) ? i.with_indifferent_access : i
end
end
response = RestClient::Response.create(body, response.net_http_res, response.args)
response = rest_client_response(body, response.net_http_res, response.args)
rescue JSON::ParserError
log_exception
end
......
return response
end
def rest_client_response(body, net_http_res, args)
if Gem.loaded_specs['rest-client'].version < Gem::Version.create('1.8.0')
RestClient::Response.create(body, net_http_res, args)
else
RestClient::Response.create(body, net_http_res, args, nil)
end
end
def required_params(local_names, binding, keys_to_remove = [])
local_names = local_names.each_with_object({}) do |v, acc|
value = binding.eval(v.to_s) unless v == :_
runcible.gemspec
gem.version = Runcible::VERSION
gem.add_dependency('json')
gem.add_dependency('rest-client', ['>= 1.6.1', '< 1.8.0'])
gem.add_dependency('rest-client', ['>= 1.7.0', '< 2.0.0'])
gem.add_dependency('oauth')
gem.add_dependency('activesupport', '>= 3.0.10')
gem.add_dependency('i18n', '>= 0.5.0')

Also available in: Unified diff