iron-cms 0.16.0 → 0.16.1

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: 41a7997fe4c0ef674f5911df87d2f987b0b279b0686c7387b6fad582725e6829
4
- data.tar.gz: dba2202a13aaeb1e16aff5294d03e91ed9adbda8d531ef69fa9bb5365a70aaee
3
+ metadata.gz: bb7869fda3b54d6d01a68d88308c0b958709d4875da820646ca523623a78cce5
4
+ data.tar.gz: 108a5025a605c9cf7ccd3296c72b3565c8a69fee07d59139db064510aecdd581
5
5
  SHA512:
6
- metadata.gz: db4d8aea62d74f936d53b466966e64990a7b1712c30fc86427e25535a8b631dfdd39d942a82573dc58e5a862add0a6e42ea09fb7b365a5b35919b1c9ad959618
7
- data.tar.gz: 77dbdc5182e3935f751337f7a598ae2478901842585bc68385b58206eda8311d8bc3c6b63f11f5a84bd4c5cd54b0611125fd0faa279f44c2cda060e14adc8af6
6
+ metadata.gz: 5d6bad5f973d173ac571fe0cdeb976f282fee23f2407dde15c2b66f6b5875f1b2812e91dc0436871adc5183f044ed926fe2172835d3c06d17c53425825c575d4
7
+ data.tar.gz: 9a8f935b36a195dac33234696888f8736d293e46432442a1ca61fdb28fe460c6115e23bbfd21d7deff1925b4d79a21d2e150b8aa7be36d3357c83e265802bdd5
@@ -1,6 +1,6 @@
1
1
  // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
2
2
  import "@hotwired/turbo-rails";
3
- import "controllers";
3
+ import "iron/controllers";
4
4
 
5
5
  import * as ActiveStorage from "@rails/activestorage";
6
6
  import "lexxy";
@@ -1,4 +1,4 @@
1
1
  // Import and register all your controllers from the importmap via controllers/**/*_controller
2
- import { application } from "controllers/application";
2
+ import { application } from "iron/controllers/application";
3
3
  import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading";
4
- eagerLoadControllersFrom("controllers", application);
4
+ eagerLoadControllersFrom("iron/controllers", application);
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus";
2
- import { Lexorank } from "lib/lexorank";
2
+ import { Lexorank } from "iron/lib/lexorank";
3
3
 
4
4
  export default class extends Controller {
5
5
  static targets = ["item", "handle", "rank", "dragImage"];
@@ -7,8 +7,7 @@ module Iron
7
7
  included do
8
8
  has_many :search_records, dependent: :destroy
9
9
 
10
- after_create_commit :reindex
11
- after_update_commit :reindex
10
+ after_commit :reindex, on: %i[create update]
12
11
 
13
12
  scope :search, ->(query, locale: nil) {
14
13
  parsed = Search::Query.new(query)
data/config/importmap.rb CHANGED
@@ -5,6 +5,6 @@ pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
5
5
  pin "@rails/activestorage", to: "activestorage.esm.js"
6
6
  pin "lexxy", to: "lexxy.js"
7
7
 
8
- pin_all_from Iron::Engine.root.join("app/javascript/iron/lib"), under: "lib", to: "iron/lib"
9
- pin_all_from Iron::Engine.root.join("app/javascript/iron/controllers"), under: "controllers", to: "iron/controllers"
8
+ pin_all_from Iron::Engine.root.join("app/javascript/iron/lib"), under: "iron/lib", to: "iron/lib"
9
+ pin_all_from Iron::Engine.root.join("app/javascript/iron/controllers"), under: "iron/controllers", to: "iron/controllers"
10
10
  pin "@tailwindplus/elements", to: "@tailwindplus--elements.js" # @1.0.18
data/lib/iron/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Iron
2
- VERSION = "0.16.0"
2
+ VERSION = "0.16.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Massimo De Marchi