workarea-testing 3.5.9 → 3.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/workarea/test_case.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c37c0fd97d46b8ce77212f444fcfea448ef16286e79750294d1f9a5706a279c5
|
4
|
+
data.tar.gz: 5c372e1c987e9ffb7bb0ea8103f1037d0ce970a7c8b5e72fdac19483e9baa8a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e60d0c2924f827116125dfe03f2df2599d9472d6b97aeb5cc93ce17bed3e1478586eb7d0ed3ff0f53c8084087818e839c9f47215bac5a08f90e3e584e64aa8
|
7
|
+
data.tar.gz: 5db6307d7bfd00a91b8e9f4706d854da17a5772b6816ea115239eecd9aa970fe1715092890f67ec0c9bcb571f990f6c8b8b9f022cbca2a9993864c1a8227e593
|
data/lib/workarea/test_case.rb
CHANGED
@@ -129,10 +129,11 @@ module Workarea
|
|
129
129
|
delegate :t, to: :I18n
|
130
130
|
end
|
131
131
|
|
132
|
-
def set_locales(available:, default:, current: nil)
|
132
|
+
def set_locales(available:, default:, current: nil, fallbacks: nil)
|
133
133
|
Rails.application.config.i18n.available_locales = I18n.available_locales = available
|
134
134
|
Rails.application.config.i18n.default_locale = I18n.default_locale = default
|
135
135
|
I18n.locale = current || default
|
136
|
+
I18n.fallbacks = fallbacks if I18n.respond_to?(:fallbacks=)
|
136
137
|
end
|
137
138
|
|
138
139
|
def save_locales
|
@@ -142,6 +143,7 @@ module Workarea
|
|
142
143
|
@current_i18n_available_locales = I18n.available_locales
|
143
144
|
@current_i18n_default_locale = I18n.default_locale
|
144
145
|
@current_i18n_locale = I18n.default_locale
|
146
|
+
@current_i18n_fallbacks = I18n.try(:fallbacks)
|
145
147
|
end
|
146
148
|
|
147
149
|
def restore_locales
|
@@ -151,6 +153,7 @@ module Workarea
|
|
151
153
|
I18n.available_locales = @current_i18n_available_locales
|
152
154
|
I18n.default_locale = @current_i18n_default_locale
|
153
155
|
I18n.locale = @current_i18n_locale
|
156
|
+
I18n.fallbacks = @current_i18n_fallbacks if I18n.respond_to?(:fallbacks=)
|
154
157
|
end
|
155
158
|
end
|
156
159
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.5.
|
19
|
+
version: 3.5.10
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.5.
|
26
|
+
version: 3.5.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|