maitredee 0.8.5 → 0.9.0
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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.ruby-version +1 -1
- data/Gemfile.lock +5 -5
- data/README.md +1 -1
- data/lib/maitredee/active_job.rb +9 -1
- data/lib/maitredee/cli/runner.rb +5 -0
- data/lib/maitredee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8ab48c3eedbdfd585222799791ca1b6a4a8c0e5a6ef6c24495a391b83599224
|
|
4
|
+
data.tar.gz: 4bb3669032410bead0eef5f87b1754f01ea916f5e0d408d19f8f72524bccf2d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e61d350335b57239f0ea3334b90b24ffc2bd9fcc85eeeab741ffeb50fd4803acf679f95876512293500f707dfd1a993c957f0b59a96062732651f93889b7588f
|
|
7
|
+
data.tar.gz: 78952421e2d1e4bb0e7ec5bc312c552de4cc58d03880743100c518a08c0b397976afc6aca319e7db86294194470a1e6b8e9000f6c2b1a6cce68ef1b910aecb84
|
data/.circleci/config.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.6.
|
|
1
|
+
2.6.1
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
maitredee (0.
|
|
4
|
+
maitredee (0.9.0)
|
|
5
5
|
activesupport
|
|
6
6
|
aws-sdk-sns
|
|
7
7
|
aws-sdk-sqs
|
|
@@ -33,9 +33,9 @@ GEM
|
|
|
33
33
|
i18n (>= 0.7, < 2)
|
|
34
34
|
minitest (~> 5.1)
|
|
35
35
|
tzinfo (~> 1.1)
|
|
36
|
-
aws-eventstream (1.0.
|
|
37
|
-
aws-partitions (1.
|
|
38
|
-
aws-sdk-core (3.
|
|
36
|
+
aws-eventstream (1.0.2)
|
|
37
|
+
aws-partitions (1.144.0)
|
|
38
|
+
aws-sdk-core (3.46.2)
|
|
39
39
|
aws-eventstream (~> 1.0)
|
|
40
40
|
aws-partitions (~> 1.0)
|
|
41
41
|
aws-sigv4 (~> 1.0)
|
|
@@ -64,7 +64,7 @@ GEM
|
|
|
64
64
|
goodread (0.3.2)
|
|
65
65
|
colorize (~> 0.8)
|
|
66
66
|
gemoji (~> 3.0)
|
|
67
|
-
hana (1.3.
|
|
67
|
+
hana (1.3.5)
|
|
68
68
|
i18n (1.1.1)
|
|
69
69
|
concurrent-ruby (~> 1.0)
|
|
70
70
|
jmespath (1.4.0)
|
data/README.md
CHANGED
|
@@ -79,7 +79,7 @@ This is used for testing.
|
|
|
79
79
|
Maitredee.client = :test
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
When you
|
|
82
|
+
When you publish anything through Maitredee it will be logged in the test client for test verification.
|
|
83
83
|
|
|
84
84
|
You should reset the client at the beginning of every test with `Maitredee.client.reset`
|
|
85
85
|
|
data/lib/maitredee/active_job.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Maitredee
|
|
|
15
15
|
subclass::PublisherJob.service_class = subclass
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Uses
|
|
18
|
+
# Uses ActiveJob to async the publishing
|
|
19
19
|
# @example To configure the specific async job open PublisherJob
|
|
20
20
|
# class RecipePublisher < Maitredee::Publisher
|
|
21
21
|
# class PublisherJob
|
|
@@ -29,6 +29,14 @@ module Maitredee
|
|
|
29
29
|
self::PublisherJob.perform_later(*args)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
# Like `call_later`, but performs at a given time
|
|
33
|
+
# @example Configuring a time to perform the job
|
|
34
|
+
# RecipePublisher.call_later_at(Date.tomorrow.noon, Recipe.find(1))
|
|
35
|
+
#
|
|
36
|
+
def call_later_at(at, *args)
|
|
37
|
+
self::PublisherJob.set(wait_until: at).perform_later(*args)
|
|
38
|
+
end
|
|
39
|
+
|
|
32
40
|
private
|
|
33
41
|
|
|
34
42
|
def inherited(subclass)
|
data/lib/maitredee/cli/runner.rb
CHANGED
|
@@ -50,6 +50,11 @@ module Maitredee
|
|
|
50
50
|
file = Tempfile.new(['maitredee-to-shoryuken', '.yml'])
|
|
51
51
|
|
|
52
52
|
result.deep_symbolize_keys!
|
|
53
|
+
|
|
54
|
+
if result[:rails]
|
|
55
|
+
load_rails
|
|
56
|
+
end
|
|
57
|
+
|
|
53
58
|
if result[:subscribers]
|
|
54
59
|
subscribers = result.delete(:subscribers)
|
|
55
60
|
result[:queues] = subscribers.map(&:constantize).map(&:queue_resource_name)
|
data/lib/maitredee/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maitredee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Plated Devs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|