spina 2.3.1 → 2.3.2

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: 7a23df7e3712f2819910093a7765551cb329e928be6f83d40434b04e117c32d0
4
- data.tar.gz: b4925d0b6f8412c27953cedc1cd82b3122b9b5829462471462fc864aab02c1c2
3
+ metadata.gz: ffabe76e2a9ea5c40de7afe20d8ef0d30b8790833e5c40fb7c5da1907cf1fe17
4
+ data.tar.gz: 956e03b0dcfb82cd62be40a2d1fb824b523c990dfa8e22d3bd34c618a64dba7e
5
5
  SHA512:
6
- metadata.gz: 2fc53639cb5db565a00622bf3d026682f678fd0df5fa8840e4c3d6b7d4409f1705457d4aa7cafc1d9561d620c17a98ece911e15eff20afa3bb4313b7416cd77f
7
- data.tar.gz: 1f8a3a9c3beaf9d92c6f42da372191a0f50dbdd66aeb4637895ff7dc642a1be7527e9f65bb7b45c72c87d4336c351cefa80e9a637553314ecd7e2e4d297cb196
6
+ metadata.gz: 0e875cfcea973f999e87e598c047f5cfe5c4f52ac869099b1a33e712aaedd1ff62bb741f85f64ba0e9281fdd12a16cdc551c3e521734a4c56f0a4dd7fc9f4452
7
+ data.tar.gz: 907d025a80b3a40346f9da4fc6dad23673681c9937549db9c62ef17d3c2fa87c6666ee80827423e41cae054529230b2d6d06f6dae007df7b6abccc4da55d065b
@@ -2,7 +2,7 @@ module Spina::SpinaHelper
2
2
 
3
3
  def spina_importmap_tags
4
4
  safe_join [
5
- javascript_inline_importmap_tag(Spina.config.importmap.paths),
5
+ javascript_inline_importmap_tag(Spina.config.importmap),
6
6
  javascript_importmap_shim_tag,
7
7
  javascript_include_tag("spina/libraries/trix"),
8
8
  javascript_import_module_tag("application")
data/lib/spina.rb CHANGED
@@ -51,8 +51,7 @@ module Spina
51
51
  self.queues = ActiveSupport::InheritableOptions.new
52
52
 
53
53
  # An importmap specifically meant for Spina
54
- self.importmap = ActiveSupport::OrderedOptions.new
55
- self.importmap.paths = Importmap::Paths.new
54
+ self.importmap = Importmap::Map.new
56
55
 
57
56
  # Tailwind purging
58
57
  # Spina will by default purge all unused Tailwind classes by scanning
data/lib/spina/engine.rb CHANGED
@@ -40,13 +40,13 @@ module Spina
40
40
  end
41
41
 
42
42
  initializer "spina.importmap" do
43
- Spina.config.importmap.paths.tap do |paths|
43
+ Spina.config.importmap.draw do
44
44
  # Stimulus & Turbo
45
- paths.asset "@hotwired/stimulus", path: "stimulus.js"
46
- paths.asset "@hotwired/stimulus-autoloader", path: "stimulus-autoloader.js"
47
- paths.asset "@hotwired/turbo-rails", path: "turbo.js"
45
+ pin "@hotwired/stimulus", to: "stimulus.js"
46
+ pin "@hotwired/stimulus-autoloader", to: "stimulus-autoloader.js"
47
+ pin "@hotwired/turbo-rails", to: "turbo.js"
48
48
 
49
- paths.assets_in Spina::Engine.root.join("app/assets/javascripts/spina"), append_base_path: true
49
+ pin_all_from Spina::Engine.root.join("app/assets/javascripts/spina"), append_base_path: true
50
50
  end
51
51
  end
52
52
 
data/lib/spina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spina
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
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.1
4
+ version: 2.3.2
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-13 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -182,44 +182,44 @@ dependencies:
182
182
  name: importmap-rails
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.1.1
187
+ version: 0.2.2
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.1.1
194
+ version: 0.2.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: turbo-rails
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.7.0
201
+ version: 0.7.2
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.7.0
208
+ version: 0.7.2
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: stimulus-rails
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.3.0
215
+ version: 0.3.3
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 0.3.0
222
+ version: 0.3.3
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: babosa
225
225
  requirement: !ruby/object:Gem::Requirement