bobot 3.0.1 → 3.0.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4243e6fe0959fe5be8e9f7f3f64b7a73df0bc672
|
|
4
|
+
data.tar.gz: 4d63329d52c8732e103cd8019f5600def9cc99a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5819b30952a09f40fe0d0f9c569866c75cbc1ead328057d2be8223870faea1d0ae97f79fb7f01cb46cd579ac48a63582dd61c2c76d02577326dacbccd43c112b
|
|
7
|
+
data.tar.gz: 9e5accdc641392ae7fff0aa8d90ccc1fbb2844a801af4b3c091df5e8d355258bd0b294ecc698ad531958207a10603db51488d3a15e214fc7daffd6f219a6eed8
|
data/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
module Bobot
|
|
2
2
|
class CommanderJob < ApplicationJob
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
queue_as do
|
|
5
|
+
if Bobot.config.commander_queue_name.present?
|
|
6
|
+
Bobot.config.commander_queue_name
|
|
7
|
+
else
|
|
8
|
+
:default
|
|
9
|
+
end
|
|
10
|
+
end
|
|
4
11
|
|
|
5
12
|
def perform(payload:)
|
|
6
13
|
Bobot::Commander.trigger(payload)
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
module Bobot
|
|
2
2
|
class DeliverJob < ApplicationJob
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
queue_as do
|
|
5
|
+
if Bobot.config.commander_queue_name.present?
|
|
6
|
+
Bobot.config.commander_queue_name
|
|
7
|
+
else
|
|
8
|
+
:default
|
|
9
|
+
end
|
|
10
|
+
end
|
|
4
11
|
|
|
5
12
|
def perform(target_facebook_uid:, access_token:, payload_template:)
|
|
6
13
|
Bobot::Commander.deliver(
|
data/lib/bobot/configuration.rb
CHANGED
data/lib/bobot/version.rb
CHANGED
|
@@ -6,11 +6,12 @@ if bobot_config.present?
|
|
|
6
6
|
raise "Bobot: #{bobot_config_path} required an array key :pages (cf. https://github.com/navidemad/bobot)"
|
|
7
7
|
end
|
|
8
8
|
Bobot.configure do |config|
|
|
9
|
-
config.app_id
|
|
10
|
-
config.app_secret
|
|
11
|
-
config.verify_token
|
|
12
|
-
config.domains
|
|
13
|
-
config.async
|
|
9
|
+
config.app_id = bobot_config["app_id"],
|
|
10
|
+
config.app_secret = bobot_config["app_secret"],
|
|
11
|
+
config.verify_token = bobot_config["verify_token"],
|
|
12
|
+
config.domains = bobot_config["domains"],
|
|
13
|
+
config.async = bobot_config["async"],
|
|
14
|
+
config.commander_queue_name = bobot_config["commander_queue_name"],
|
|
14
15
|
bobot_config["pages"].each do |page|
|
|
15
16
|
config.pages << Bobot::Page.new(
|
|
16
17
|
slug: page["slug"],
|