itunes-receipt 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/itunes.rb +1 -1
- data/spec/itunes/receipt_spec.rb +2 -2
- metadata +5 -7
- data/lib/cert +0 -3538
- data/lib/restclient_with_ssl_support.rb +0 -16
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'restclient'
|
2
|
-
|
3
|
-
module RestClient
|
4
|
-
|
5
|
-
def self.ssl_settings
|
6
|
-
{
|
7
|
-
:verify_ssl => OpenSSL::SSL::VERIFY_PEER,
|
8
|
-
:ssl_ca_file => File.join(File.dirname(__FILE__), 'cert')
|
9
|
-
}
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.post(url, payload, headers={}, &block)
|
13
|
-
Request.execute(ssl_settings.merge(:method => :post, :url => url, :payload => payload, :headers => headers), &block)
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|