stimulus-rails 1.0.0 → 1.0.2

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: 36db05dc612c8667658d3890d285dd464a134aff6cfaf2170154a9d029ab9202
4
- data.tar.gz: cd111c34efb2614658a7cb076378ab7517b81ac21ceca7bec9e54b51525e148b
3
+ metadata.gz: 23f5108a2b5f7377a6148df9c993a7a637b82a34e3a13fa5e2aacca4412306eb
4
+ data.tar.gz: 5a7076d26e257566a2c17f60f0c19ad72623f648cf8d6390ca24cbec498f2b64
5
5
  SHA512:
6
- metadata.gz: 21a6c69a253e569e1ddf6eed89c265ce66e01910e7536474204aa25d1568b5606b5d6c4d565348f78978f4b9898bfae7d5a9289dd5dd94e18c6d0bc54221c6b3
7
- data.tar.gz: 9a33a50c99c607915049c85cfa74f1ea2864456d685be780e867c127d4c24de13dc1f9ba44d194086cf683adb6df589aee284fd7f7fa4b377fd91d9a5bc535a1
6
+ metadata.gz: f45d9def4599c3b2b872b65125f2d0164d7ab3065f5fc0d179fe90d2370840bffd4056c890d2f6f6c5099ccccc72ae6b75b0c09705e32f4656366e37ff4e0c8c
7
+ data.tar.gz: 2d463a499ede333ea3a7ceae20d6049f2ee703f35d2c3fe8acab90fa56f37f41bf190c55ec5a169c0393afd34344716aa7a436713aa0a887f1376b7a3165a2a5
@@ -6,7 +6,7 @@ class StimulusGenerator < Rails::Generators::NamedBase # :nodoc:
6
6
  def copy_view_files
7
7
  @attribute = stimulus_attribute_value(controller_name)
8
8
  template "controller.js", "app/javascript/controllers/#{controller_name}_controller.js"
9
- rails_command "stimulus:manifest:update" if Rails.root.join("package.json").exist?
9
+ rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist?
10
10
  end
11
11
 
12
12
  private
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-12-14 00:00:00.000000000 Z
13
+ date: 2021-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties