Sha256: 6157a46742923df8945a4ad826c8fafc75c922d5323471d0f2d71fa0afca6af2

Contents?: true

Size: 377 Bytes

Versions: 14

Compression:

Stored size: 377 Bytes

Contents

require 'restclient'

module RestClient

  def self.ssl_settings
    {
      :verify_ssl => OpenSSL::SSL::VERIFY_PEER,
      :ssl_ca_file => File.join(File.dirname(__FILE__), 'cert')
    }
  end

  def self.post(url, payload, headers={}, &block)
    Request.execute(ssl_settings.merge(:method => :post, :url => url, :payload => payload, :headers => headers), &block)
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
paypal-express-0.2.1 lib/restclient_with_ssl_support.rb
paypal-express-0.2.0 lib/restclient_with_ssl_support.rb
paypal-express-0.1.0 lib/restclient_with_ssl_support.rb
paypal-express-0.0.9 lib/restclient_with_ssl_support.rb
paypal-express-0.0.8 lib/restclient_with_ssl_support.rb
paypal-express-0.0.7 lib/restclient_with_ssl_support.rb
paypal-express-0.0.6 lib/restclient_with_ssl_support.rb
paypal-express-0.0.5 lib/restclient_with_ssl_support.rb
itunes-receipt-0.0.2 lib/restclient_with_ssl_support.rb
paypal-express-0.0.4 lib/restclient_with_ssl_support.rb
itunes-receipt-0.0.1 lib/restclient_with_ssl_support.rb
paypal-express-0.0.3 lib/restclient_with_ssl_support.rb
paypal-express-0.0.2 lib/restclient_with_ssl_support.rb
paypal-express-0.0.1 lib/restclient_with_ssl_support.rb