frozen_rails 0.0.6 → 0.0.7

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: abfb64658cf3eb104b953a8d190c82634ee962c5a8544e0584165252faf5cd3e
4
- data.tar.gz: aa118f15dc15ffac611e4fd2e71c871812d483a23b40ee58e74e4fd3ea4f07cd
3
+ metadata.gz: 79009959a35c4871ccbb2848610e9d79f5403eba5f03364822ced61d5f22cc48
4
+ data.tar.gz: 9f590dcde282590241cc28fe84f0bc1030bd2163e204915be7a84d5f62ed4555
5
5
  SHA512:
6
- metadata.gz: db3cd433980b66bc6b213baf6c9eee08e4ce3753c3a325b91b333b7a0d7a962f1a7fcbae5913578b8a5eb9e16bc03536c9b4fe01759a45dfc38a18176904418a
7
- data.tar.gz: 443cfd39ae00fa7d3814a1f7ea88403321bcb521c085e188b0ad6d87788af0a71d79fa2c4057c4481273a95dad29f93600233309d968ee28b225ebf21c7bb4b2
6
+ metadata.gz: d7c120056fdfcd623249e6005551a1b3b4c847238285c956b6c98064566df5532de01ffe85d2f300ed2e2edae2748600af140b92e850f3d4836c6dd3abe4907d
7
+ data.tar.gz: 26dcf155f28dfdf23a85107d310a22f9d1f131a45bb4bb7b0674a5fe59ae1f0424d4592513978359bed24708d34dc370c0bf6b4255dc82e98e74c24ea55ba40e
@@ -1,3 +1,3 @@
1
1
  module FrozenRails # :nodoc:
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -17,7 +17,12 @@
17
17
  <link rel="icon" href="/icon.png" type="image/png">
18
18
  <link rel="icon" href="/icon.svg" type="image/svg+xml">
19
19
  <link rel="apple-touch-icon" href="/icon.png">
20
- <%= stylesheet_link_tag "application" %>
20
+ <%# Use propshaft in development and precompiled_assets in production. Very brittle. %>
21
+ <% if Rails.env.development? %>
22
+ <%= stylesheet_link_tag :app %>
23
+ <% else %>
24
+ <%= stylesheet_link_tag "application" %>
25
+ <% end %>
21
26
  <%= javascript_include_tag "application", type: "module", defer: true %>
22
27
  </head>
23
28
 
@@ -29,11 +29,12 @@ class ComponentGenerator < Rails::Generators::NamedBase
29
29
  template "jasmine_spec.js.tt", File.join("test/components", class_path, "#{file_name}_component_spec.js")
30
30
  end
31
31
 
32
- def fix_module_nesting_via_rubocop_because_it_was_impossible_to_get_module_namespacing_to_work_as_expected
33
- in_root do
34
- system("bash", "-c", 'bin/rubocop --only Style/ClassAndModuleChildren,Layout/IndentationWidth,Layout/CommentIndentation --autocorrect-all --force-exclusion --config <(echo "Style/ClassAndModuleChildren: { EnforcedStyle: nested }")')
35
- end
36
- end
32
+ # Needs to only apply to files with a git diff. Otherwise, very annoying.
33
+ # def fix_module_nesting_via_rubocop_because_it_was_impossible_to_get_module_namespacing_to_work_as_expected
34
+ # in_root do
35
+ # system("bash", "-c", 'bin/rubocop --only Style/ClassAndModuleChildren,Layout/IndentationWidth,Layout/CommentIndentation --autocorrect-all --force-exclusion --config <(echo "Style/ClassAndModuleChildren: { EnforcedStyle: nested }")')
36
+ # end
37
+ # end
37
38
 
38
39
  private
39
40
 
@@ -131,6 +131,8 @@ YAML4
131
131
  config.view_component.generate.preview_path = "test/components"
132
132
  config.view_component.generate.locale = true
133
133
  config.asset_path = "/assets"
134
+ # Use propshaft in development and precompiled_assets in production. Very brittle.
135
+ config.assets.paths << Rails.root.join("app/assets") if Rails.env.development?
134
136
  RUBY
135
137
  end
136
138
 
@@ -168,7 +170,7 @@ YAML4
168
170
 
169
171
  def copy_demo_component
170
172
  copy_directory "demo_component", "app/components"
171
- copy_directory "demo_component_test", "tests/components"
173
+ copy_directory "demo_component_test", "test/components"
172
174
  end
173
175
  end
174
176
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frozen_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaus Weidinger