stimulus-rails 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,12 @@ require "rails/generators/named_base"
3
3
  class StimulusGenerator < Rails::Generators::NamedBase # :nodoc:
4
4
  source_root File.expand_path("templates", __dir__)
5
5
 
6
+ class_option :skip_manifest, type: :boolean, default: false, desc: "Don't update the stimulus manifest"
7
+
6
8
  def copy_view_files
7
9
  @attribute = stimulus_attribute_value(controller_name)
8
10
  template "controller.js", "app/javascript/controllers/#{controller_name}_controller.js"
9
- rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist?
11
+ rails_command "stimulus:manifest:update" unless Rails.root.join("config/importmap.rb").exist? || options[:skip_manifest]
10
12
  end
11
13
 
12
14
  private
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.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.2.1
4
+ version: 1.2.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: 2022-11-30 00:00:00.000000000 Z
13
+ date: 2023-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.3.25
79
+ rubygems_version: 3.4.10
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: A modest JavaScript framework for the HTML you already have.