Sha256: b0cad3a3692dd463706b41f12a772b018097a15139292fd4ef309d636b2e9c82
Contents?: true
Size: 994 Bytes
Versions: 16
Compression:
Stored size: 994 Bytes
Contents
# pheme [![Circle CI](https://circleci.com/gh/wealthsimple/pheme.svg?style=svg)](https://circleci.com/gh/wealthsimple/pheme) [![](https://img.shields.io/gem/v/pheme.svg)](https://rubygems.org/gems/pheme) Ruby SNS publisher + SQS poller & message handler ## installation & config ```ruby # Gemfile gem 'pheme' ``` ```ruby # Initializer aws_config = { credentials: Aws::Credentials.new('YOUR_ACCESS_KEY_ID', 'YOUR_SECRET_ACCESS_KEY'), region: 'us-east-1', # Enter your AWS region here } Aws.config.update(aws_config) AWS_SNS_CLIENT = Aws::SNS::Client.new(aws_config) AWS_SQS_CLIENT = Aws::SQS::Client.new(aws_config) Pheme.configure do |config| config.sqs_client = AWS_SQS_CLIENT config.sns_client = AWS_SNS_CLIENT config.logger = Logger.new(STDOUT) # Optionally replace with your app logger, e.g. `Rails.logger` end ``` # usage See https://github.com/wealthsimple/pheme/tree/master/spec/support for example implementations of each class. TODO: write better usage instructions.
Version data entries
16 entries across 16 versions & 1 rubygems