funktor 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dea8b34c6e2cfd3ff2d8d85aaaef9875b7e051e270203f5db2951ee7ec12694
4
- data.tar.gz: 68cbf6f504addd239757d34ad30be2d8fda169243191be1be043289b317a8797
3
+ metadata.gz: 16ad166a922c31ac7de1008d48fe34824203b0d325e7faae2f7ede140fc0f836
4
+ data.tar.gz: fafbd5ca0858ecb87c2c9e87c8efa52accc9262f922d6f3f1d4b311b3c8c470b
5
5
  SHA512:
6
- metadata.gz: 1a5284c2ee798e99301a9319b72d17c94a8625fa47d0fc8ad6b219add728d252115f8a4af4a3a1144ddfdf09ea8857bfa0034546628bcb14d184729f6c366b33
7
- data.tar.gz: 5894ce676884bc96e131dfa827c1e1e74d47f83d0597211254e1d9b59063c96766213e7cf3585e0eff68eed185e200d4c80555a89faf0c2c1f95d1421b5c929c
6
+ metadata.gz: b40e4deee38ed584b93c863150d2d6c45dfc3aea1ac3ed0d7aa4d249c5661b527f252cf1b700545f54e80f98bf6158345c01b218f175eef117ce31626c5f5b21
7
+ data.tar.gz: 240839bae2964df499664ec8c21a44d3c8c4cf46d3d6df5cb798af95ba3b454deee6a41d5b4b0a3d71fc8c04e36bdfdb0d787f6168e71ef1cb516370e1c0d369
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- funktor (0.2.9)
4
+ funktor (0.2.10)
5
5
  activesupport
6
6
  aws-sdk-sqs (~> 1.37)
7
7
  thor
@@ -1,4 +1,7 @@
1
- require_relative '../config/boot'
1
+ # For this handler we don't need to know about your app, or any of the other gems,
2
+ # so instead of doing `require_relative '../config/boog'` we just manually require
3
+ # the one gem that we do need.
4
+ require 'funktor'
2
5
 
3
6
  $handler = Funktor::IncomingJobHandler.new
4
7
 
data/lib/funktor/job.rb CHANGED
@@ -43,7 +43,7 @@ module Funktor
43
43
  end
44
44
 
45
45
  def execute
46
- worker_class.new.perform(worker_params)
46
+ worker_class.new.perform(*worker_params)
47
47
  end
48
48
 
49
49
  def worker_class
@@ -19,7 +19,7 @@ module Funktor
19
19
  "Timestamp": Time.now.strftime('%s%3N').to_i,
20
20
  "CloudWatchMetrics": [
21
21
  {
22
- "Namespace": ENV['FUNKTOR_APP_NAME'], # TODO - We should get this from config or someting
22
+ "Namespace": ENV['FUNKTOR_APP_NAME'],
23
23
  "Dimensions": [["WorkerClassName"]],
24
24
  "Metrics": [ # CPU, Memory, Duration, etc...
25
25
  {
@@ -57,7 +57,7 @@ module Funktor
57
57
 
58
58
  class InlineJobPusherMiddleware
59
59
  def call(worker, payload)
60
- worker.new.perform(payload[:worker_params])
60
+ worker.new.perform(*payload[:worker_params])
61
61
  end
62
62
  end
63
63
 
@@ -1,3 +1,3 @@
1
1
  module Funktor
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funktor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-29 00:00:00.000000000 Z
11
+ date: 2021-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sqs