funktor 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +6 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +84 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +154 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/exe/funktor +13 -0
  14. data/exe/funktor-deploy +8 -0
  15. data/funktor.gemspec +38 -0
  16. data/lib/funktor.rb +63 -0
  17. data/lib/funktor/active_job_handler.rb +52 -0
  18. data/lib/funktor/aws/sqs/event.rb +20 -0
  19. data/lib/funktor/aws/sqs/record.rb +14 -0
  20. data/lib/funktor/cli/application.rb +23 -0
  21. data/lib/funktor/cli/bootstrap.rb +35 -0
  22. data/lib/funktor/cli/generate.rb +0 -0
  23. data/lib/funktor/cli/generate/base.rb +13 -0
  24. data/lib/funktor/cli/generate/work_queue.rb +25 -0
  25. data/lib/funktor/cli/init.rb +78 -0
  26. data/lib/funktor/cli/templates/Gemfile +9 -0
  27. data/lib/funktor/cli/templates/config/environment.yml +4 -0
  28. data/lib/funktor/cli/templates/config/funktor.yml +51 -0
  29. data/lib/funktor/cli/templates/config/package.yml +9 -0
  30. data/lib/funktor/cli/templates/config/ruby_layer.yml +11 -0
  31. data/lib/funktor/cli/templates/function_definitions/active_job_handler.yml +11 -0
  32. data/lib/funktor/cli/templates/function_definitions/incoming_job_handler.yml +11 -0
  33. data/lib/funktor/cli/templates/funktor.yml.tt +51 -0
  34. data/lib/funktor/cli/templates/gitignore +2 -0
  35. data/lib/funktor/cli/templates/handlers/active_job_handler.rb +17 -0
  36. data/lib/funktor/cli/templates/handlers/incoming_job_handler.rb +8 -0
  37. data/lib/funktor/cli/templates/iam_permissions/active_job_queue.yml +8 -0
  38. data/lib/funktor/cli/templates/iam_permissions/incoming_job_queue.yml +8 -0
  39. data/lib/funktor/cli/templates/iam_permissions/ssm.yml +5 -0
  40. data/lib/funktor/cli/templates/package.json +1 -0
  41. data/lib/funktor/cli/templates/resources/active_job_queue.yml +22 -0
  42. data/lib/funktor/cli/templates/resources/cloudwatch_dashboard.yml +518 -0
  43. data/lib/funktor/cli/templates/resources/incoming_job_queue.yml +22 -0
  44. data/lib/funktor/cli/templates/resources/incoming_job_queue_user.yml +26 -0
  45. data/lib/funktor/cli/templates/serverless.yml +54 -0
  46. data/lib/funktor/cli/templates/workers/hello_worker.rb +8 -0
  47. data/lib/funktor/deploy/cli.rb +42 -0
  48. data/lib/funktor/deploy/serverless.rb +60 -0
  49. data/lib/funktor/deploy/serverless_templates/serverless.yml +156 -0
  50. data/lib/funktor/fake_job_queue.rb +15 -0
  51. data/lib/funktor/incoming_job_handler.rb +39 -0
  52. data/lib/funktor/job.rb +76 -0
  53. data/lib/funktor/middleware/metrics.rb +51 -0
  54. data/lib/funktor/middleware_chain.rb +62 -0
  55. data/lib/funktor/testing.rb +69 -0
  56. data/lib/funktor/version.rb +3 -0
  57. data/lib/funktor/worker.rb +86 -0
  58. metadata +173 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 154286564dee4cc895ef3515dcacfa515a91ecde743862e36c833d6db0389447
4
+ data.tar.gz: e1786a3bdda966cd7d1fdda07ae3faf12f3ec2ca27b51506257520b3d13b02dd
5
+ SHA512:
6
+ metadata.gz: c6b7de2400aceac0dcad12d2ad4093a07be595a120f88c58eddf7fa63f3a353e7637c47963cca8e79263b1ec29838ee5c26147a0e924cc7508092ac968e104b2
7
+ data.tar.gz: c5cf1bdea5c9ad86415d7da9350b28699900b623a05d4860ecfb11c77daa773fbdd4b1c33a166cfa7c7025a238c268d3748b8a9b9989043e0f29cae6a8446d99
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # The funktor dir isn't a real part of the gem, it's where things
14
+ # get generated as I'm testing the gem locally. It doesn't need to be in git.
15
+ /funktor/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.2
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jeremy@octolabs.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in funktor.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,84 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ funktor (0.2.1)
5
+ activesupport
6
+ aws-sdk-sqs (~> 1.37)
7
+ thor
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (6.1.3.2)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ addressable (2.7.0)
19
+ public_suffix (>= 2.0.2, < 5.0)
20
+ aws-eventstream (1.1.1)
21
+ aws-partitions (1.465.0)
22
+ aws-sdk-core (3.114.1)
23
+ aws-eventstream (~> 1, >= 1.0.2)
24
+ aws-partitions (~> 1, >= 1.239.0)
25
+ aws-sigv4 (~> 1.1)
26
+ jmespath (~> 1.0)
27
+ aws-sdk-sqs (1.39.0)
28
+ aws-sdk-core (~> 3, >= 3.112.0)
29
+ aws-sigv4 (~> 1.1)
30
+ aws-sigv4 (1.2.3)
31
+ aws-eventstream (~> 1, >= 1.0.2)
32
+ concurrent-ruby (1.1.8)
33
+ crack (0.4.5)
34
+ rexml
35
+ diff-lcs (1.4.4)
36
+ docile (1.3.5)
37
+ hashdiff (1.0.1)
38
+ i18n (1.8.10)
39
+ concurrent-ruby (~> 1.0)
40
+ jmespath (1.4.0)
41
+ minitest (5.14.4)
42
+ public_suffix (4.0.6)
43
+ rake (12.3.3)
44
+ rexml (3.2.4)
45
+ rspec (3.10.0)
46
+ rspec-core (~> 3.10.0)
47
+ rspec-expectations (~> 3.10.0)
48
+ rspec-mocks (~> 3.10.0)
49
+ rspec-core (3.10.1)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-expectations (3.10.1)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.10.0)
54
+ rspec-mocks (3.10.2)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.10.0)
57
+ rspec-support (3.10.2)
58
+ simplecov (0.21.2)
59
+ docile (~> 1.1)
60
+ simplecov-html (~> 0.11)
61
+ simplecov_json_formatter (~> 0.1)
62
+ simplecov-html (0.12.3)
63
+ simplecov_json_formatter (0.1.2)
64
+ thor (1.1.0)
65
+ tzinfo (2.0.4)
66
+ concurrent-ruby (~> 1.0)
67
+ webmock (3.12.2)
68
+ addressable (>= 2.3.6)
69
+ crack (>= 0.3.2)
70
+ hashdiff (>= 0.4.0, < 2.0.0)
71
+ zeitwerk (2.4.2)
72
+
73
+ PLATFORMS
74
+ ruby
75
+
76
+ DEPENDENCIES
77
+ funktor!
78
+ rake (~> 12.0)
79
+ rspec (~> 3.0)
80
+ simplecov
81
+ webmock
82
+
83
+ BUNDLED WITH
84
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Jeremy Green
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,154 @@
1
+ # Funktor
2
+
3
+ It's like [Sidekiq](https://sidekiq.org/) for [AWS Lambda](https://aws.amazon.com/lambda/).
4
+
5
+ Execute your background jobs in Lambda for nearly instant and infinite scalability. This is ideal for
6
+ applications with uneven, unpredictable, or bursty usage patterns.
7
+
8
+ Coming Soon: Funktor Pro & Funktor Enterprise
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'funktor'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install funktor
25
+
26
+ ## Initializing a new `funktor` app
27
+
28
+ Funktor uses [serverless](https://www.serverless.com/) to provision AWS resources and to deploy your
29
+ code to Lambda. You can install serverless by doing:
30
+
31
+ ```
32
+ npm install -g serverless
33
+ ```
34
+
35
+ Then you can initialize a new app by doing:
36
+
37
+
38
+ ```bash
39
+ funktor init
40
+ ```
41
+
42
+ This will create a `funktor` directory that is ready to deploy to AWS. If you've already configured
43
+ your aws tools via `~/.aws/credentials` you should be ready to deploy.
44
+
45
+ `funktor/serverless.yml` is the main file that ties everything together.
46
+
47
+ `funktor/config` contains a few files that you can use to configure your `funktor` application.
48
+
49
+ `funktor/resources` contains a few files that provision some AWS resources that are used by `funktor`.
50
+ * An SQS Queue for the "incoming jobs queue"
51
+ * A Dynamo DB table to allow queueing of jobs more than 15 minutes in the future (Funktor Pro)
52
+ * One or more SQS Queues for active jobs (currently there is only the default queue, support for additional queues is coming soon)
53
+ * An IAM User with permission to push jobs to the incoming jobs queue
54
+ * A CloudWatch dashboard to let you keep tabs on your application
55
+
56
+ `funktor/lambda_handlers` contains some scripts that receive events from Lambda, then invoke `funktor` to
57
+ do various things:
58
+ * `active_job_handler.rb` executes your jobs
59
+ * `delayed_job_scheduler.rb` (Funktor Pro) pulls delayed jobs out of DynamoDB and places them on the active job queue.
60
+ * `incoming_job_handler.rb` receives incoming jobs and pushes them to DynamoDB for delayed execution or to the active job queue as appropriate.
61
+
62
+ `funktor/function_definitions` contains details about hooking up the `lambda_handlers` to events.
63
+
64
+ `funktor/iam_permissions` contains some details about giving your lambda functions the appropriate permissions
65
+ to interact with SQS.
66
+
67
+ `funktor/workers` is where your workers will live.
68
+
69
+ `funktor/Gemfile` is the `Gemfile` that contains the gems that are needed for your workers to execute
70
+ jobs. This should be the minimal set of gems you can get away with so that cold start times remain reasonable.
71
+ This file will already contain `funktor`. (Don't remove it or `funktor` won't work!)
72
+
73
+ ## Deploying
74
+
75
+ After initialiing your app you can deploy it by `cd`ing into the `funktor` directory and using
76
+ `serverless deploy`.
77
+
78
+ ```
79
+ cd funktor
80
+ serverless deploy --verbose
81
+ ```
82
+
83
+ This will deploy to the `dev` stage. To deploy to a differnt stage you can use the `--stage` flag:
84
+
85
+ ```
86
+ serverless deploy --stage production --verbose
87
+ ```
88
+
89
+ After your app is deployed you'll see some outputs containing details about your AWS resources. The
90
+ primary ones you should look for are `IncomingJobQueueUrl`, `AccessKeyID`, and `SecretAccessKey`.
91
+ Those three pieces of info represent the primary interface to your `funktor` app from the outside world.
92
+
93
+ To push your first job to `funktor` you can make note of those values and then do something like this
94
+ in a `rails console`.
95
+
96
+ ```ruby
97
+ ENV['FUNKTOR_INCOMING_JOB_QUEUE'] = "<Your IncomingJobQueueUrl>"
98
+ ENV['AWS_ACCESS_KEY_ID'] = "<Your AccessKeyID>"
99
+ ENV['AWS_SECRET_ACCESS_KEY'] = "<Your SecretAccessKey>"
100
+ ENV['AWS_REGION'] = "<Your AWS Region>" # 'us-east-1' by default
101
+
102
+ require_relative 'funktor/workers/hello_worker'
103
+ HelloWorker.perform_async
104
+ ```
105
+
106
+ If everything went well you should see something like this:
107
+
108
+ ```ruby
109
+ => #<struct Aws::SQS::Types::SendMessageResult md5_of_message_body="...",
110
+ md5_of_message_attributes=nil, md5_of_message_system_attributes=nil,
111
+ message_id="...", sequence_number=nil>
112
+ ```
113
+
114
+ ## Writing Workers
115
+
116
+ ```ruby
117
+ class HelloWorker
118
+ include Funktor::Worker
119
+
120
+ def perform(name)
121
+ puts "hello #{name}"
122
+ end
123
+ end
124
+ ```
125
+
126
+ The arguments to your `perform` methos must be plain Ruby objects, and not complex objects like ActiveRecord
127
+ models. Funktor will dump the arguments to JSON when pushing the job onto the queue, so you need to make sure
128
+ that your arguments can be dumped to JSON and loaded back again without losing any information.
129
+
130
+ ## Calling Workers
131
+
132
+ ```ruby
133
+ HelloWorker.perform_async(name)
134
+ HelloWorker.perform_in(5.minutes, name)
135
+ ```
136
+
137
+ ## Development
138
+
139
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
140
+
141
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
142
+
143
+ ## Contributing
144
+
145
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Octo-Labs/funktor. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/funktor/blob/master/CODE_OF_CONDUCT.md).
146
+
147
+
148
+ ## License
149
+
150
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
151
+
152
+ ## Code of Conduct
153
+
154
+ Everyone interacting in the Funktor project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Octo-Labs/funktor/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "funktor"
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(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/funktor ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../lib/funktor/cli/application"
3
+
4
+ # Scratch pad:
5
+ #
6
+ # funktor init => serverless.yml Gemfile Dockerfile a few resources (default queue)
7
+ # funktor init --dir=some_dir => serverless.yml Gemfile Dockerfile a few resources (default queue)
8
+ # funktor generate work_queue --name=high_priority => resource + handler for a work queue
9
+ # funktor deploy ????
10
+ #
11
+ # funktor-pro init => additional resources + handler
12
+
13
+ Funktor::CLI::Application.start(ARGV)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/funktor/deploy/cli'
4
+
5
+ cli = Funktor::Deploy::CLI.new
6
+ cli.parse
7
+ cli.run
8
+
data/funktor.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ require 'funktor/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "funktor"
7
+ spec.version = Funktor::VERSION
8
+ spec.authors = ["Jeremy Green"]
9
+ spec.email = ["jeremy@octolabs.com"]
10
+
11
+ spec.summary = %q{Background processing in AWS Lambda.}
12
+ spec.description = %q{Background processing in AWS Lambda.}
13
+ spec.homepage = "https://github.com/Octo-Labs/funktor"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
+
17
+ #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/Octo-Labs/funktor"
21
+ #spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency 'aws-sdk-sqs', '~> 1.37'
33
+ spec.add_dependency "activesupport" # TODO - Can we build our own verison of cattr_accessor to avoid this?
34
+ spec.add_dependency "thor" # TODO - Can we build our own verison of cattr_accessor to avoid this?
35
+
36
+ spec.add_development_dependency 'simplecov'
37
+ spec.add_development_dependency 'webmock'
38
+ end