Skip to content

Instantly share code, notes, and snippets.

View gessgallardo's full-sized avatar
🚀
Delivering!

Gess Gallardo gessgallardo

🚀
Delivering!
View GitHub Profile
@gessgallardo
gessgallardo / AppStore.rb
Last active July 7, 2016 21:48 — forked from sauloarruda/receipt
Apple iOS in app purchase validate receipt in Ruby
# This module is created to test the apple sandbox in app purchase server to validate a receipt using Ruby Code.
# Based on VerifyReceipt.rb [@sauloarruda (http://twitter.com/sauloarruda)]
# AppStore.rb by @gessgallardo (http://twitter.com/gessgallardo)
require "faraday"
require "faraday_middleware"
module AppStore
class Requestor
attr_accessor :test
@gessgallardo
gessgallardo / MailgunS3Attachment.rb
Created July 6, 2016 00:29 — forked from masonoise/MailgunS3Attachment.rb
Wrapper class to enable using AWS S3 objects as attachments when sending mail via the Mailgun REST interface using RestClient. This allows reading directly from the S3 object instead of creating an intermediate temp file.
#
# This class will wrap an S3 object and provide the methods that the Mailgun library expects in order
# to use the S3 object for sending a mail attachment.
#
# Use as follows:
#
# data = Multimap.new
# data[:from] = "My Self <no-reply@example.com>"
# data[:subject] = "Subject"
# data[:to] = "#{recipients.join(', ')}"