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: 2e38b7ae0d29c7bef029f3188bfaa9e425ce7c0927a3785b01dc760f81c089ca
4
- data.tar.gz: 4f29cb1e4de7497342d822f528597a42b3462feb8f0ebcab9eddbed2528e1224
3
+ metadata.gz: 00bb452ed8179ae83eb70606d23616f2bc8b0eb5b0ead9d04a5895e622149cbe
4
+ data.tar.gz: d9e9876a7f91010ee421921a0ff01aa97ab18ce7703900eb4371347803d137cb
5
5
  SHA512:
6
- metadata.gz: d8e78436dadff0af8d50c3b7400f4633374c85abaa790a8148866c4e3b2c2620f4ffa001b6fac0f7ed0257658ad2a836995cc63bb2c48f8a2f6cfb768976baaa
7
- data.tar.gz: 242fa4f95c27ca8f9a32b97954d7e5d86022dc44815b8d459023df45a4965a23a0c0f199e5d471993943762c5d5e0e6ad27d8f747cdf6ec6c11bbe3ca45a50b8
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
- invoke_performer_with_time_zone_name(args)
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
- invoke_performer_with_time_zone_name(args)
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 invoke_performer_with_time_zone_name(args)
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
- invoke_performer(args)
54
+ I18n.with_locale(args.delete(:locale)) do
55
+ invoke_performer(args)
56
+ end
55
57
  end
56
58
  end
57
59
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelWorkforce
2
- VERSION = "3.0.0".freeze
2
+ VERSION = "4.0.0".freeze
3
3
  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: 3.0.0
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: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler