isomorfeus-i18n 2.0.13 → 2.0.14

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: ea585a5bea7705cbbe044ced0b6d36d2c5abcea25ce7d769b9cd6f23c24c2cbc
4
- data.tar.gz: f348a005aa131e9fe8ccf2c79ddf8360be8afe29bcff99ee397a716229838aba
3
+ metadata.gz: d605567bda1c6c15752e586e466070e8d66223bae3e798862a968c600cf20bcf
4
+ data.tar.gz: 81752f5ea8b565641e431545aa04aa7639610f2b1124bab1355a10bf209eb83f
5
5
  SHA512:
6
- metadata.gz: 6a6270eef401a5b9876ef8d8bebac278866715accc7bc5e0ab22c1e72171670145e911d2ec008c3ffd568e93a251ec5c80ca9b2f55437c79fb67f3ba63b4445c
7
- data.tar.gz: 6e58bf7de6ae186ec8f70fcd68b2de0a582e8d48981c76a3642a3dca42a9d74882b7d76239b7a5713e0df3a59855da2f1192915138e68d2492411508c3556553
6
+ metadata.gz: 6632f0a848dd398a0860417710f1f2d13ce1c5771969654aabcb9b34edd31ce634a01f52d278cf59174d145be89834a6474a02bca8f6065a6bd726ebfad61b01
7
+ data.tar.gz: b7aabeb918ab0c193210163c9e964a1cc8c517c3fb5ff6db38c3885a93b333aa8998562c66d015746fd7c4bf537bb9c9f6f6433aebeb1f4f49257d8000f3eb3e
@@ -18,13 +18,7 @@ module Isomorfeus
18
18
 
19
19
  def init_from_server
20
20
  Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', :init, Isomorfeus.negotiated_locale).then do |agent|
21
- if agent.processed
22
- agent.result
23
- else
24
- agent.processed = true
25
- if agent.response.key?(:error)
26
- Isomorfeus.raise_error(message: agent.response[:error])
27
- end
21
+ agent.process do
28
22
  @initializing = false
29
23
  Isomorfeus.store.dispatch(type: 'I18N_LOAD', data: agent.response[:data])
30
24
  @initialized = true
@@ -34,13 +28,7 @@ module Isomorfeus
34
28
 
35
29
  def reload_from_server
36
30
  Isomorfeus::Transport.promise_send_path('Isomorfeus::I18n::Handler::LocaleHandler', :init, Isomorfeus.negotiated_locale).then do |agent|
37
- if agent.processed
38
- agent.result
39
- else
40
- agent.processed = true
41
- if agent.response.key?(:error)
42
- Isomorfeus.raise_error(message: agent.response[:error])
43
- end
31
+ agent.process do
44
32
  Isomorfeus.store.dispatch(type: 'I18N_STATE', set_state: agent.response[:data])
45
33
  end
46
34
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module I18n
3
- VERSION = '2.0.13'
3
+ VERSION = '2.0.14'
4
4
  end
5
5
  end
@@ -112,13 +112,7 @@ module LucidTranslation
112
112
  end
113
113
 
114
114
  def _handle_i18n_response(agent, domain)
115
- if agent.processed
116
- agent.result
117
- else
118
- agent.processed = true
119
- if agent.response.key?(:error)
120
- Isomorfeus.raise_error(message: agent.response[:error])
121
- end
115
+ agent.process do
122
116
  if on_browser?
123
117
  Isomorfeus.store.collect_and_defer_dispatch(type: 'I18N_LOAD', data: { domain => agent.response[domain] })
124
118
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 10.6.24
117
+ version: 10.6.25
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 10.6.24
124
+ version: 10.6.25
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: isomorfeus-redux
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +142,42 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 2.0.13
145
+ version: 2.0.14
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 2.0.13
152
+ version: 2.0.14
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: isomorfeus-data
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 2.0.13
159
+ version: 2.0.14
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 2.0.13
166
+ version: 2.0.14
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: isomorfeus
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 2.0.13
173
+ version: 2.0.14
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 2.0.13
180
+ version: 2.0.14
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rake
183
183
  requirement: !ruby/object:Gem::Requirement