maitredee 0.8.5 → 0.9.0

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: 147139f7cd9cb60d783797c8ae02590599fbeaff495324c44efe79d653fdcca4
4
- data.tar.gz: a344ed87f9dfd5a1cfc39384ba507f1c9c8b3f990c727619439c6cb8d09c22f1
3
+ metadata.gz: d8ab48c3eedbdfd585222799791ca1b6a4a8c0e5a6ef6c24495a391b83599224
4
+ data.tar.gz: 4bb3669032410bead0eef5f87b1754f01ea916f5e0d408d19f8f72524bccf2d5
5
5
  SHA512:
6
- metadata.gz: 8b79f0f12203e87479b5326aa88537a82c8fcba7ac50a2ad8925e71da4d1bcbd2fb33192cc1cbe2ac772c9b4ad0ca3a478a753efcab4ffb69cf23cede48aa99d
7
- data.tar.gz: a9ce3f27175e860b8bb3f3840c736f05c55c10f1da62a6a4158fb743ead1aac97bd2c0d9bd97b58ecb120dcb7cb34d4e84f59d14f293abadd8bcd2a78ad01e43
6
+ metadata.gz: e61d350335b57239f0ea3334b90b24ffc2bd9fcc85eeeab741ffeb50fd4803acf679f95876512293500f707dfd1a993c957f0b59a96062732651f93889b7588f
7
+ data.tar.gz: 78952421e2d1e4bb0e7ec5bc312c552de4cc58d03880743100c518a08c0b397976afc6aca319e7db86294194470a1e6b8e9000f6c2b1a6cce68ef1b910aecb84
@@ -26,7 +26,7 @@ jobs:
26
26
  rspec:
27
27
  working_directory: ~/maitredee
28
28
  docker:
29
- - image: circleci/ruby:2.6.0
29
+ - image: circleci/ruby:2.6.1
30
30
  environment: &docker_ruby_env
31
31
  RACK_ENV: test
32
32
  RAILS_ENV: test
@@ -1 +1 @@
1
- 2.6.0
1
+ 2.6.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maitredee (0.8.5)
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.1)
37
- aws-partitions (1.129.0)
38
- aws-sdk-core (3.44.2)
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.4)
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 pubish anything through Maitredee it will be logged in the test client for test verification.
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
 
@@ -15,7 +15,7 @@ module Maitredee
15
15
  subclass::PublisherJob.service_class = subclass
16
16
  end
17
17
 
18
- # Uses ActieJob to async the publishing
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)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Maitredee
2
- VERSION = "0.8.5"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.5
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-01-09 00:00:00.000000000 Z
11
+ date: 2019-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport