simple_sqs 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +102 -0
- data/Rakefile +5 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/dummy_app/sqs/events/some_event.rb +11 -0
- data/lib/simple_sqs.rb +14 -0
- data/lib/simple_sqs/events.rb +2 -0
- data/lib/simple_sqs/events/base.rb +16 -0
- data/lib/simple_sqs/processor.rb +44 -0
- data/lib/simple_sqs/queue.rb +39 -0
- data/lib/simple_sqs/version.rb +3 -0
- data/lib/simple_sqs/worker.rb +82 -0
- data/lib/tasks/simple_sqs.rake +11 -0
- data/simple_sqs.gemspec +28 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 84e064a9ba95888b963a578cf6ebefb366ec55b055542c183173a97457198959
|
4
|
+
data.tar.gz: 3b6413aacbde1e5a9b2663319b6fab79ca93813e40db69f32a293d342dca1498
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30724a11c2b10164b39eb11e221aea930fa9f561a5a1583187c12691942543350e7136da08749499e8e6f095bcb44685b2d183db12c59931ff9dc0c18ebfa6eb
|
7
|
+
data.tar.gz: c34bf64d4f225428105e7083ac20fcf266614dfc9e4b60a5cb1629f02e20aef7b32edda6f2676b6d612cad3db0b9fff74ca70eda0f57365ace517d55f831f389
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use 2.3.1@simple_sqs --create
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Jean-Philippe Boily
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# SimpleSqs
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/rainforestapp/simple_sqs.svg)](https://travis-ci.org/rainforestapp/simple_sqs)
|
4
|
+
|
5
|
+
SimpleSqs is a super simple abstraction of SQS. You can have a daemon polling and running jobs for messages, and enqueue some messages too. It was developed by Rainforest QA, a [web app testing](https://www.rainforestqa.com/product/web-app-testing/) platform.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'simple_sqs'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install simple_sqs
|
22
|
+
|
23
|
+
### Configuration
|
24
|
+
|
25
|
+
The way that SimpleSqs works is that you will enqueue messages with an `event_name`, this should be the name of a class in your app consuming the messages. You need to setup the namespace for it, just like this:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# config/initializers/simple_sqs.rb <- if you are using Rails, as an example
|
29
|
+
SIMPLE_SQS_EVENTS_NAMESPACE = MyApp::Sqs::Events
|
30
|
+
```
|
31
|
+
|
32
|
+
Some more configuration needed:
|
33
|
+
|
34
|
+
```
|
35
|
+
export SIMPLE_SQS_PUBLIC_KEY=...
|
36
|
+
export SIMPLE_SQS_SECRET_KEY=...
|
37
|
+
export SIMPLE_SQS_REGION=...
|
38
|
+
```
|
39
|
+
|
40
|
+
### ActiveRecord
|
41
|
+
|
42
|
+
If your project uses ActiveRecord, the processing of messages will take place in a transaction. Stop this behaviour by setting the environment variable `SIMPLE_SQS_NO_AR_TRANSACTION` with any value:
|
43
|
+
|
44
|
+
```
|
45
|
+
export SIMPLE_SQS_NO_AR_TRANSACTION=true
|
46
|
+
```
|
47
|
+
|
48
|
+
### Librato prefix
|
49
|
+
|
50
|
+
If you have multiple apps using SimpleSqs that all logs to the same Librato account, it is higly suggested to configure each app with a [custom prefix](https://github.com/librato/librato-rails#custom-prefixes).
|
51
|
+
|
52
|
+
### Rake task
|
53
|
+
|
54
|
+
To be able to use the polling included in SimpleSqs, you can just add this to your Rakefile:
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
spec = Gem::Specification.find_by_name 'simple_sqs'
|
58
|
+
load "#{spec.gem_dir}/lib/tasks/simple_sqs.rake"
|
59
|
+
```
|
60
|
+
|
61
|
+
And then start this rake task to start polling: `bundle exec rake simple_sqs:daemon`
|
62
|
+
|
63
|
+
## Usage
|
64
|
+
|
65
|
+
You can have a daemon on Heroku, as an example, by puttin a line like this in your `Procfile`:
|
66
|
+
|
67
|
+
```
|
68
|
+
sqs: env SIMPLE_SQS_QUEUE_URL=http://.... bundle exec rake simple_sqs:daemon
|
69
|
+
```
|
70
|
+
|
71
|
+
To enqueue new messages:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
q = SimpleSqs::Queue.new(queue_url: "https://sqs.us-east-1.amazonaws.com...../my-queue-name")
|
75
|
+
q.send_message(event_name: 'MyEvent', arguments: ['ok', 1])
|
76
|
+
```
|
77
|
+
|
78
|
+
### Sample job
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
class MyApp::Sqs::Events::MyEvent < SimpleSqs::Events::Base
|
82
|
+
def process
|
83
|
+
arguments = event['Arguments']
|
84
|
+
# do whatever you want here my friend!
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
```
|
89
|
+
|
90
|
+
## Development
|
91
|
+
|
92
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
93
|
+
|
94
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
95
|
+
|
96
|
+
## Contributing
|
97
|
+
|
98
|
+
1. Fork it ( https://github.com/[my-github-username]/simple_sqs/fork )
|
99
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
100
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
101
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
102
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "simple_sqs"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/simple_sqs.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "simple_sqs/version"
|
2
|
+
require "simple_sqs/events"
|
3
|
+
require "simple_sqs/events/base"
|
4
|
+
require "simple_sqs/worker"
|
5
|
+
require "simple_sqs/processor"
|
6
|
+
require "simple_sqs/queue"
|
7
|
+
require "sentry-raven"
|
8
|
+
require "librato-rails"
|
9
|
+
require "aws-sdk"
|
10
|
+
require 'multi_json'
|
11
|
+
|
12
|
+
module SimpleSqs
|
13
|
+
# Your code goes here...
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class SimpleSqs::Events::Base
|
2
|
+
attr_reader :event, :sqs_message
|
3
|
+
|
4
|
+
def initialize(event, sqs_message = nil)
|
5
|
+
@event = event
|
6
|
+
@sqs_message = sqs_message
|
7
|
+
end
|
8
|
+
|
9
|
+
def process
|
10
|
+
raise NotImplementedError.new
|
11
|
+
end
|
12
|
+
|
13
|
+
def timestamp
|
14
|
+
Time.parse event['EventTimestamp']
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
#
|
2
|
+
# Simple SQS
|
3
|
+
#
|
4
|
+
# This is used to process SQS notifications
|
5
|
+
#
|
6
|
+
require 'logger'
|
7
|
+
|
8
|
+
class SimpleSqs::Processor
|
9
|
+
def process_sqs_message(json_message_body, sqs_message = nil, transaction_safe = true)
|
10
|
+
if Object.const_defined?("ActiveRecord") && transaction_safe
|
11
|
+
ActiveRecord::Base.transaction do
|
12
|
+
json_message_body['Events'].each do |event|
|
13
|
+
process event, sqs_message
|
14
|
+
end
|
15
|
+
end
|
16
|
+
else
|
17
|
+
json_message_body['Events'].each do |event|
|
18
|
+
process event, sqs_message
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
def process event, sqs_message
|
25
|
+
logger.debug "Processing SQS event #{event.inspect}, raw message: #{sqs_message.inspect}"
|
26
|
+
Librato.timing("sqs.process", source: event['EventType']) do
|
27
|
+
klass = SIMPLE_SQS_EVENTS_NAMESPACE.const_get(event['EventType'])
|
28
|
+
sqs_event = klass.new(event.freeze, sqs_message)
|
29
|
+
|
30
|
+
lag = ((Time.now - sqs_event.timestamp) * 1000).ceil
|
31
|
+
Librato.measure("sqs.lag", lag, source: event['EventType'])
|
32
|
+
Librato.increment("sqs.events", source: event['EventType'])
|
33
|
+
|
34
|
+
sqs_event.process
|
35
|
+
end
|
36
|
+
rescue NameError => e
|
37
|
+
Raven.capture_exception(e, extra: {parameters: event, cgi_data: ENV})
|
38
|
+
logger.error e
|
39
|
+
end
|
40
|
+
|
41
|
+
def logger
|
42
|
+
@logger ||= Logger.new(STDOUT)
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
class SimpleSqs::Queue
|
2
|
+
attr_reader :client
|
3
|
+
|
4
|
+
def initialize queue_url:
|
5
|
+
@queue_url = queue_url
|
6
|
+
@client = Aws::SQS::Client.new(
|
7
|
+
access_key_id: ENV.fetch('SIMPLE_SQS_PUBLIC_KEY'),
|
8
|
+
secret_access_key: ENV.fetch('SIMPLE_SQS_SECRET_KEY'),
|
9
|
+
region: ENV.fetch('SIMPLE_SQS_REGION')
|
10
|
+
)
|
11
|
+
end
|
12
|
+
|
13
|
+
def send_message event_name:, arguments: []
|
14
|
+
body = {'Events' => [
|
15
|
+
{'EventType' => event_name,
|
16
|
+
'EventTimestamp' => Time.now.to_s,
|
17
|
+
'Arguments' => arguments
|
18
|
+
}
|
19
|
+
]}
|
20
|
+
|
21
|
+
resp = client.send_message(
|
22
|
+
queue_url: @queue_url,
|
23
|
+
message_body: body.to_json,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
def approximate_number_of_messages
|
28
|
+
get_attribute('ApproximateNumberOfMessages')
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
def get_attribute attribute
|
33
|
+
resp = client.get_queue_attributes(
|
34
|
+
attribute_names: [attribute],
|
35
|
+
queue_url: @queue_url
|
36
|
+
)
|
37
|
+
resp.attributes[attribute]
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
class SimpleSqs::Worker
|
2
|
+
attr_reader :client, :processor
|
3
|
+
|
4
|
+
# Allow another worker to get the message after this long. Suggest 25%-50% more
|
5
|
+
# than your average job
|
6
|
+
VISIBILITY_TIMEOUT = ENV.fetch('SIMPLE_SQS_VISABILITY_TIMEOUT', 15).to_i.freeze
|
7
|
+
|
8
|
+
# Set to false if you're using a redrive policy on your queue.
|
9
|
+
DELETE_AFTER_MAX_RETRY = (ENV.fetch('DELETE_AFTER_MAX_RETRY', 'true').downcase == 'true').freeze
|
10
|
+
|
11
|
+
# If DELETE_AFTER_MAX_RETRY enabled, delete after this many retrys
|
12
|
+
MAX_RETRY = ENV.fetch('MAX_SQS_MESSAGE_RETRY', 5).to_i.freeze
|
13
|
+
|
14
|
+
def initialize queue_url:
|
15
|
+
@queue_url = queue_url
|
16
|
+
@client = Aws::SQS::Client.new(
|
17
|
+
access_key_id: ENV.fetch('SIMPLE_SQS_PUBLIC_KEY'),
|
18
|
+
secret_access_key: ENV.fetch('SIMPLE_SQS_SECRET_KEY'),
|
19
|
+
region: ENV.fetch('SIMPLE_SQS_REGION')
|
20
|
+
)
|
21
|
+
@processor = SimpleSqs::Processor.new
|
22
|
+
@poller = Aws::SQS::QueuePoller.new(@queue_url, {client: @client})
|
23
|
+
@transaction = !ENV.key?('SIMPLE_SQS_NO_AR_TRANSACTION')
|
24
|
+
end
|
25
|
+
|
26
|
+
def transaction?
|
27
|
+
@transaction
|
28
|
+
end
|
29
|
+
|
30
|
+
def start
|
31
|
+
logger.info 'Starting SQS polling'
|
32
|
+
receive_and_process
|
33
|
+
end
|
34
|
+
|
35
|
+
def receive_and_process
|
36
|
+
@poller.before_request do |stats|
|
37
|
+
trap "INT", -> (*args) { stop_polling }
|
38
|
+
trap "TERM", -> (*args) { stop_polling }
|
39
|
+
end
|
40
|
+
|
41
|
+
@poller.poll(visibility_timeout: VISIBILITY_TIMEOUT) do |message|
|
42
|
+
process(message)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
def stop_polling
|
48
|
+
logger.info "Stopping SQS polling"
|
49
|
+
throw :stop_polling
|
50
|
+
end
|
51
|
+
|
52
|
+
def process(message)
|
53
|
+
json_message_body = MultiJson.decode(message.body)
|
54
|
+
begin
|
55
|
+
processor.process_sqs_message(json_message_body, message, transaction?)
|
56
|
+
rescue Exception => e
|
57
|
+
logger.error "SQS: #{message.message_id}\t#{e.message}\t#{e.backtrace}"
|
58
|
+
Librato.increment('sqs.error')
|
59
|
+
handle_message_error(message, exception: e)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def handle_message_error(message, exception: nil)
|
64
|
+
if exception
|
65
|
+
Raven.capture_exception(exception, extra: {parameters: message, cgi_data: ENV})
|
66
|
+
end
|
67
|
+
|
68
|
+
if DELETE_AFTER_MAX_RETRY && message.attributes['ApproximateReceiveCount'].to_i > MAX_RETRY
|
69
|
+
logger.error "Deleting SQS message after multiple failures. #{message.body} #{exception}"
|
70
|
+
Librato.increment('sqs.fatal_error')
|
71
|
+
client.delete_message(queue_url: @queue_url, receipt_handle: message.receipt_handle)
|
72
|
+
else
|
73
|
+
# The `poll` loop usually deletes the messages in SQS by default, but we want to
|
74
|
+
# retry to run those as they errored out.
|
75
|
+
throw :skip_delete
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def logger
|
80
|
+
@logger ||= Logger.new(STDOUT)
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace :simple_sqs do
|
2
|
+
desc "Daemon that polls SQS"
|
3
|
+
task :daemon => :environment do
|
4
|
+
queue_url = ENV.fetch('SIMPLE_SQS_QUEUE_URL')
|
5
|
+
|
6
|
+
Rails.logger.info "Simple SQS: started polling"
|
7
|
+
|
8
|
+
worker = SimpleSqs::Worker.new(queue_url: queue_url)
|
9
|
+
worker.start
|
10
|
+
end
|
11
|
+
end
|
data/simple_sqs.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'simple_sqs/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "simple_sqs"
|
8
|
+
spec.version = SimpleSqs::VERSION
|
9
|
+
spec.authors = ["Jean-Philippe Boily"]
|
10
|
+
spec.email = ["j@jipi.ca"]
|
11
|
+
|
12
|
+
spec.summary = 'Opinionated but Simple SQS wrapper.'
|
13
|
+
spec.homepage = 'https://github.com/rainforestapp/simple_sqs'
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "aws-sdk"
|
22
|
+
spec.add_dependency "librato-rails"
|
23
|
+
spec.add_dependency "sentry-raven"
|
24
|
+
spec.add_dependency "multi_json"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "byebug"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_sqs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jean-Philippe Boily
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: librato-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sentry-raven
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: multi_json
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: byebug
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- j@jipi.ca
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".rvmrc"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- dummy_app/sqs/events/some_event.rb
|
130
|
+
- lib/simple_sqs.rb
|
131
|
+
- lib/simple_sqs/events.rb
|
132
|
+
- lib/simple_sqs/events/base.rb
|
133
|
+
- lib/simple_sqs/processor.rb
|
134
|
+
- lib/simple_sqs/queue.rb
|
135
|
+
- lib/simple_sqs/version.rb
|
136
|
+
- lib/simple_sqs/worker.rb
|
137
|
+
- lib/tasks/simple_sqs.rake
|
138
|
+
- simple_sqs.gemspec
|
139
|
+
homepage: https://github.com/rainforestapp/simple_sqs
|
140
|
+
licenses:
|
141
|
+
- MIT
|
142
|
+
metadata: {}
|
143
|
+
post_install_message:
|
144
|
+
rdoc_options: []
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
requirements: []
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 2.7.6
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: Opinionated but Simple SQS wrapper.
|
163
|
+
test_files: []
|