foobara-resque-scheduler-connector 0.0.1 → 0.0.3

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
  SHA256:
3
- metadata.gz: 6b4b654f0c0edfc32910e7ae2d7bcc1688811be044cebbc4ebd1613501efb988
4
- data.tar.gz: a6db4cd78a059d1373dd96d4033466721a82ddf4881dd6dba8eb124eead2263a
3
+ metadata.gz: 20d96e0b6140c372417ce0cc2e742efb357be7771a5c163c061486d305524d0d
4
+ data.tar.gz: 355c28c5cd2e0edb72f5d38b700484767efea3282313a5b1b08cf1ce942a8a9a
5
5
  SHA512:
6
- metadata.gz: b18116c37cad5f3feecaa82793086892cd7973c9139c32e0ce44dc6d4bb8de7007e14a855e0213cb4da42f32c109700fe20d3fa534f5f0c579bbc534a7e1b763
7
- data.tar.gz: f5b908183c3067b04f946d524403427061d768e1568de4bf5e457a00a6b3f750e2d6872e1250c4ab721b4938e76d291bbb418abffc6b319027af92d6cc4a9132
6
+ metadata.gz: 0ce184ab823ecee2cba18c7c35174c84f2b47c99b560487850d4d2683d7b54c5f28ad742e67fb0b4d35fe3a8bfc8fb1d1b7f799c2db0fa482561b3a5c8fa0ca2
7
+ data.tar.gz: 54b952ad20d5f8d9af47929d15de0202abad7e291764ade809eb36464baf9e6c32aadc2e4fbee810fcc45611337222fcb7d76017cbb5917fc553f91e65c3767f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.3] - 2025-01-04
2
+
3
+ - Bump Ruby to 3.4.1
4
+
5
+ ## [0.0.2] - 2024-12-12
6
+
7
+ - Store records as primary keys when stashing away inputs in Redis
8
+
1
9
  ## [0.0.1] - 2024-12-12
2
10
 
3
11
  - Release as a gem
@@ -82,7 +82,13 @@ module Foobara
82
82
  h[:description] = description if description
83
83
 
84
84
  if inputs
85
- h[:args][:inputs] = command_class.inputs_type.process_value!(inputs)
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
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-resque-scheduler-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
10
+ date: 2025-01-04 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foobara
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
- description:
42
40
  email:
43
41
  - azimux@gmail.com
44
42
  executables: []
@@ -60,7 +58,6 @@ metadata:
60
58
  source_code_uri: https://github.com/foobara/resque-scheduler-connector
61
59
  changelog_uri: https://github.com/foobara/resque-scheduler-connector/blob/main/CHANGELOG.md
62
60
  rubygems_mfa_required: 'true'
63
- post_install_message:
64
61
  rdoc_options: []
65
62
  require_paths:
66
63
  - lib
@@ -68,15 +65,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - ">="
70
67
  - !ruby/object:Gem::Version
71
- version: 3.2.2
68
+ version: 3.4.0
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
70
  requirements:
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
73
  version: '0'
77
74
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
75
+ rubygems_version: 3.6.2
80
76
  specification_version: 4
81
77
  summary: Connects Foobara commands to resque-scheduler
82
78
  test_files: []