parallel_workforce 3.0.0 → 4.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00bb452ed8179ae83eb70606d23616f2bc8b0eb5b0ead9d04a5895e622149cbe
|
4
|
+
data.tar.gz: d9e9876a7f91010ee421921a0ff01aa97ab18ce7703900eb4371347803d137cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb174cf36984a1028e9ab6faffabe400be1969f49ce5f9b75e3c5271f6821b7f5c9164a2f50930fc3baf44ec6af8080fd9cc3436c3dba13ca65127447e82b08
|
7
|
+
data.tar.gz: 86bbd5676b72aa9b8905d58ddd31a9fdae313d024e9433b62df3a8fac174188ef3f25e3f7c239e6496b2113b8e1593d3e8910eafea6d417dcb7f2b969a439918
|
@@ -11,12 +11,13 @@ module ParallelWorkforce
|
|
11
11
|
server_revision: server_revision,
|
12
12
|
serialized_actor_args: serialized_actor_args,
|
13
13
|
time_zone_name: Time.zone.name,
|
14
|
+
locale: I18n.locale&.to_s,
|
14
15
|
)
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
19
|
def perform(args)
|
19
|
-
|
20
|
+
invoke_performer_with_time_zone_name_and_locale(args)
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -11,12 +11,13 @@ module ParallelWorkforce
|
|
11
11
|
server_revision: server_revision,
|
12
12
|
serialized_actor_args: serialized_actor_args,
|
13
13
|
time_zone_name: Time.zone.name,
|
14
|
+
locale: I18n.locale&.to_s,
|
14
15
|
)
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
19
|
def perform(args)
|
19
|
-
|
20
|
+
invoke_performer_with_time_zone_name_and_locale(args)
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
@@ -47,11 +47,13 @@ module ParallelWorkforce
|
|
47
47
|
ParallelWorkforce::Job::Util::Performer.new(**args).perform
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
50
|
+
def invoke_performer_with_time_zone_name_and_locale(args)
|
51
51
|
args.transform_keys!(&:to_sym)
|
52
52
|
|
53
53
|
Time.use_zone(args.delete(:time_zone_name)) do
|
54
|
-
|
54
|
+
I18n.with_locale(args.delete(:locale)) do
|
55
|
+
invoke_performer(args)
|
56
|
+
end
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_workforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Pearce
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|