async-job 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/job/coder.rb +2 -2
- data/lib/async/job/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -2
- metadata.gz.sig +0 -0
- data/lib/async/job/coder/json.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ffa0a39944dc1f82127f38c80719276cdfdd82ec88e646bc692eb1d911a6fec
|
4
|
+
data.tar.gz: ec1c86e09371653676a74c5c3a9d2da4e4d8043ebe0bfb76080dc514ea8ab00d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b66c463d4fe746da427746b9fe22e32e47b6564884b7ab09887ef7af4c67966cd1320c06c8a5895031dc63b22e569f04c3a92a84fb10db759e9c2ae6bb06701
|
7
|
+
data.tar.gz: 07360d202ae1f6860e6d63fabc55d7fa35e80f13cb58214e0282a13410b975d5b0e206ba0346cdf4a984fc5ef2f8c10d356d8229263390b696427a483a1c787f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/async/job/coder.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
# Released under the MIT License.
|
4
4
|
# Copyright, 2024, by Samuel Williams.
|
5
5
|
|
6
|
-
|
6
|
+
require 'json'
|
7
7
|
|
8
8
|
module Async
|
9
9
|
module Job
|
10
10
|
module Coder
|
11
|
-
DEFAULT = JSON
|
11
|
+
DEFAULT = JSON
|
12
12
|
|
13
13
|
# Type-cast for time values. See <https://bugs.ruby-lang.org/issues/20298> for background.
|
14
14
|
# @parameter value [Time || Integer || String || nil]
|
data/lib/async/job/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -86,7 +86,6 @@ files:
|
|
86
86
|
- lib/async/job/buffer.rb
|
87
87
|
- lib/async/job/builder.rb
|
88
88
|
- lib/async/job/coder.rb
|
89
|
-
- lib/async/job/coder/json.rb
|
90
89
|
- lib/async/job/coder/marshal.rb
|
91
90
|
- lib/async/job/coder/message_pack.rb
|
92
91
|
- lib/async/job/generic.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/async/job/coder/json.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Released under the MIT License.
|
4
|
-
# Copyright, 2024, by Samuel Williams.
|
5
|
-
|
6
|
-
require 'json'
|
7
|
-
|
8
|
-
module Async
|
9
|
-
module Job
|
10
|
-
module Coder
|
11
|
-
class JSON
|
12
|
-
def initialize
|
13
|
-
end
|
14
|
-
|
15
|
-
def dump(job)
|
16
|
-
::JSON.dump(job)
|
17
|
-
end
|
18
|
-
|
19
|
-
def load(data)
|
20
|
-
::JSON.parse(data, symbolize_names: true)
|
21
|
-
end
|
22
|
-
|
23
|
-
DEFAULT = self.new
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|