moirai 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47104e0b041ca51bf1ea9211f52cb8ccd362d5458903a734a6596189ed8da6d3
4
- data.tar.gz: 1a183a9d886321f9930d921068741a78c358ea81846fe4355a7d1271aac315af
3
+ metadata.gz: 775bc4dc3ad8a1021e5f9fc135e911f15347a169763a37785df5f88c79c7f2ec
4
+ data.tar.gz: b06e0bb4358f53307ff4be4455edce37c2438161670adfb92169b071efa805cf
5
5
  SHA512:
6
- metadata.gz: 6d42da4c494dd4e9272014b54771dbc60297d019489ae44da09416820fc0f68a892508f991a8709a05f61bad09c4a77b5a5b6717d44d2605c0fb02b6990a2b39
7
- data.tar.gz: f81cab05487087ecb4efa1b6c4b82b2e4ea3667d1bcb5a0e8654cb56c89e9e5e106685fbc912a208ec3be4d4d9c599c04d88ba01f86f3b4fc4538a09cb0d2400
6
+ metadata.gz: 5399d555d3e9c7cd53e9388a366d8653b4fbec5289cc1ee9fda529150a2d09269e3af8945eae6fb8327169263bfe8fe7bdf8df8ff914f3fb0899a12835e0e240
7
+ data.tar.gz: 4040556f71c127529bb4b30f6342d8cdf13add2d6b2cc9f98eb704a46ead8e3490243c0aca8c1dc1756bd3445643d076c6244b5b32ef16c0554445d015feb7e2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.5
2
+
3
+ * Fixes issue when inline editing is disabled. ([@nicogaldamez][])
4
+
1
5
  ## 0.4.4
2
6
 
3
7
  * Allow to configure the root_path of moirai
@@ -62,3 +66,5 @@ move in here the conditions you had previously defined in the helper.
62
66
  [@oliveranthony17]: https://github.com/oliveranthony17
63
67
 
64
68
  [@CuddlyBunion341]: https://github.com/CuddlyBunion341
69
+
70
+ [@nicogaldamez]: https://github.com/nicogaldamez
@@ -3,7 +3,7 @@ module Moirai
3
3
  attr_accessor :root_path
4
4
 
5
5
  def initialize
6
- @root_path = '/moirai'
6
+ @root_path = "/moirai"
7
7
  end
8
8
  end
9
9
 
@@ -25,6 +25,8 @@ module ActionView::Helpers::TranslationHelper # rubocop:disable Lint/ConstantDef
25
25
  alias_method :t, :translate
26
26
 
27
27
  def moirai_edit_enabled?
28
+ return false unless Moirai.enable_inline_editing.present?
29
+
28
30
  Moirai.enable_inline_editing.call(params: defined?(params) ? (params || {}) : {})
29
31
  end
30
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moirai
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moirai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-12-12 00:00:00.000000000 Z
13
+ date: 2025-01-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.5.22
119
+ rubygems_version: 3.3.27
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Manage translation strings in real time