moirai 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/moirai/translation_helper.rb +3 -3
- data/lib/moirai/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5a4c92d52a38c7cbae4d8216b9421d15f6b2db58328ef8f8df5b46da0c97785
|
4
|
+
data.tar.gz: c23ab52e4a50ee7478abdf41cee44fe04daa7760c1f69179cc7195ca58f70ead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1afbdd4d152ddc16ce221e2918092feb2a0e2437af4bce78163b5b2fc9973ebe504b8f42650ffebe56b982f3f646c0602cd9b50c68e17b48c08552b7eed26fd8
|
7
|
+
data.tar.gz: 78dfa1fafe07d6a51ee10d3afe111767d3ede63cb254b408c44745369aa5a27c5e84922f613e4b7ccdfe8610aa9f7894fe6d07f8f833404c8d0a40a1b90da5bd
|
data/CHANGELOG.md
CHANGED
@@ -4,8 +4,8 @@ module ActionView::Helpers::TranslationHelper # rubocop:disable Lint/ConstantDef
|
|
4
4
|
def translate(key, **)
|
5
5
|
value = original_translate(key, **)
|
6
6
|
|
7
|
-
is_missing_translation = value.include?('class="translation_missing"')
|
8
|
-
if
|
7
|
+
is_missing_translation = value.is_a?(String) && value.include?('class="translation_missing"')
|
8
|
+
if is_missing_translation
|
9
9
|
value = extract_inner_content(value)
|
10
10
|
end
|
11
11
|
|
@@ -25,7 +25,7 @@ module ActionView::Helpers::TranslationHelper # rubocop:disable Lint/ConstantDef
|
|
25
25
|
alias_method :t, :translate
|
26
26
|
|
27
27
|
def moirai_edit_enabled?
|
28
|
-
Moirai.enable_inline_editing.call(params: params
|
28
|
+
Moirai.enable_inline_editing.call(params: defined?(params) ? params : {})
|
29
29
|
end
|
30
30
|
|
31
31
|
private
|
data/lib/moirai/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moirai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Rodi
|
8
8
|
- Oliver Anthony
|
9
9
|
- Daniel Bengl
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
13
|
date: 2024-11-26 00:00:00.000000000 Z
|
@@ -98,7 +98,7 @@ metadata:
|
|
98
98
|
changelog_uri: https://github.com/renuo/moirai/CHANGELOG.md
|
99
99
|
steep_types: sig
|
100
100
|
rubygems_mfa_required: 'true'
|
101
|
-
post_install_message:
|
101
|
+
post_install_message:
|
102
102
|
rdoc_options: []
|
103
103
|
require_paths:
|
104
104
|
- lib
|
@@ -113,8 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
117
|
-
signing_key:
|
116
|
+
rubygems_version: 3.4.7
|
117
|
+
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Manage translation strings in real time
|
120
120
|
test_files: []
|