foobara-resque-scheduler-connector 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/resque_scheduler_connector.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2b4e8c40e05514d6de9f98df912a5f03901d76a13de49dc96f4eedbe02cc9f3
|
4
|
+
data.tar.gz: 0d4de4a799684cca7afa6bcb9d5866b52ac02955c96bcdfddde6bf745e8f5e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a565aab37fdf87e4a6765323e04c6cf177846043741cce8c793f2da93070b662dc688a6cae8d0c43a5e9929669be6abba113ccaf953df24dc516762cf1a4e314
|
7
|
+
data.tar.gz: e4fce152df00784d8f945adad68a488f202a34df6293a43d6ed0c3055065314643a0d79b186dfd0938776ac4e23ecc8786c427d13073b18710a8f3f31c2bcfd6
|
data/CHANGELOG.md
CHANGED
@@ -82,7 +82,13 @@ module Foobara
|
|
82
82
|
h[:description] = description if description
|
83
83
|
|
84
84
|
if inputs
|
85
|
-
|
85
|
+
# TODO: it would be nice to use a constructed type where all entities are converted to their primary key
|
86
|
+
# types so that we could validate inputs before stuffing them into Redis. But for now we will just
|
87
|
+
# stick stuff in there raw because otherwise if we used inputs_type then primary key values would be
|
88
|
+
# cast to thunks and that would explode without a transaction.
|
89
|
+
serializer_class = CommandConnectors::Serializers::EntitiesToPrimaryKeysSerializer
|
90
|
+
serializer = serializer_class.new(detached_to_primary_key: true)
|
91
|
+
h[:args][:inputs] = serializer.serialize(inputs)
|
86
92
|
end
|
87
93
|
|
88
94
|
connector_name = resque_connector.name
|