spina 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd1efa7f8c1d3d9f796412e6347c64b9c2aa78b54f2e38ff334cc282c80ceb04
4
- data.tar.gz: '03548044ee38d9b41e4b4d3d0b3f40e8e638553dd81510effe8433166433fa34'
3
+ metadata.gz: c97beac4ca46c39f812ae453d8dc2c2c55e7074af2e10e96975db7dd0e7e9c74
4
+ data.tar.gz: 821c60141f3e68320c21a8f7e0c972bc042c98bd5e0c67aa8c1bd2fe2929ea36
5
5
  SHA512:
6
- metadata.gz: 32215eda6430a3bc72b920822abf2294b9007dacbb6f47ed26d5f05c085c960ee1e5cce7b95b98396fa878997efcb3253cae2c84137b334194cf3e670da9911e
7
- data.tar.gz: 2a1085efb67f8ddd215ad73bfea758c0494ea7b5df87dadef76c13cdf5a2a8c3e5cc6b9fb7d5e574e9bd7f5198c62ff6a4d3bda418872ead7bdfe2fd2eb263e9
6
+ metadata.gz: f867838a13bf13a8092306dad90b0ac6186b05a11443f2a7d0bc8f21b7133cd4dc6d883785da430b9eab93a5447835eec3b2c02f7dbb177bea959e51927ddb64
7
+ data.tar.gz: f836d9d8be8706319f1bedaa58c15ba89a663066c2cd9eb00954d62588038a77559ddf309e9aca90438ac667557f4fb3f27682a5894e119336d35b0636cc1df7
@@ -1,11 +1,12 @@
1
1
  module Spina::SpinaHelper
2
2
 
3
- def spina_importmap_tags
3
+ def spina_importmap_tags(entry_point = "application")
4
4
  safe_join [
5
- javascript_inline_importmap_tag(Spina.config.importmap),
5
+ javascript_inline_importmap_tag(Spina.config.importmap.to_json(resolver: self)),
6
+ javascript_importmap_module_preload_tags(Spina.config.importmap),
6
7
  javascript_importmap_shim_tag,
7
8
  javascript_include_tag("spina/libraries/trix"),
8
- javascript_import_module_tag("application")
9
+ javascript_import_module_tag(entry_point)
9
10
  ], "\n"
10
11
  end
11
12
 
data/lib/spina/engine.rb CHANGED
@@ -46,7 +46,11 @@ module Spina
46
46
  pin "@hotwired/stimulus-autoloader", to: "stimulus-autoloader.js"
47
47
  pin "@hotwired/turbo-rails", to: "turbo.js"
48
48
 
49
- pin_all_from Spina::Engine.root.join("app/assets/javascripts/spina"), append_base_path: true
49
+ # Spina entrypoint
50
+ pin "application", to: "spina/application.js"
51
+
52
+ pin_all_from Spina::Engine.root.join("app/assets/javascripts/spina/controllers"), under: "controllers", to: "spina/controllers"
53
+ pin_all_from Spina::Engine.root.join("app/assets/javascripts/spina/libraries"), under: "libraries", to: "spina/libraries"
50
54
  end
51
55
  end
52
56
 
data/lib/spina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spina
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Jetten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-16 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - '='
186
186
  - !ruby/object:Gem::Version
187
- version: 0.2.2
187
+ version: 0.2.7
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: 0.2.2
194
+ version: 0.2.7
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: turbo-rails
197
197
  requirement: !ruby/object:Gem::Requirement