rails-blocks-cli 0.1.3 → 0.1.4
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 +4 -4
- data/lib/rails_blocks/cli.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 968eedc1f9c0ab74b6eea46839b1cc3fd797cbbad8e9e435fd941a9583ed80a6
|
|
4
|
+
data.tar.gz: 2d4eeeeec278e666cdf0dfac50b0e8dc48ebf2907c09b53b189106511b83c95c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f1340ade753c2ddbcf80a6722cb077b20205306f79f9d790188dd52d81b178e31f49e9d6f8968c23ec0f39384dab7b32fd4d5a20c5172816c8442b370d42bad
|
|
7
|
+
data.tar.gz: e47e078588bf254704e7e59714429c87162f966f1adcaa8ff161bd2808f58b70a46da1e7853864e51cc22b2014a9fb9bfd6730b3c432f16edf758dbcba69adbd
|
data/lib/rails_blocks/cli.rb
CHANGED
|
@@ -109,6 +109,7 @@ module RailsBlocks
|
|
|
109
109
|
abort "Usage: rails-blocks install COMPONENT [--as erb_template|view_component|partial] [--path PATH] [--stimulus-path PATH] [--dry-run] [--force]" if slug.to_s.empty?
|
|
110
110
|
|
|
111
111
|
component = find_component(slug)
|
|
112
|
+
installation_prerequisite_notice
|
|
112
113
|
install_component(component, implementation, dry_run: dry_run)
|
|
113
114
|
end
|
|
114
115
|
|
|
@@ -116,6 +117,8 @@ module RailsBlocks
|
|
|
116
117
|
selected_components = components.select { |component| include_component?(component) }
|
|
117
118
|
abort "No components matched the selected filters." if selected_components.empty?
|
|
118
119
|
|
|
120
|
+
installation_prerequisite_notice
|
|
121
|
+
|
|
119
122
|
failures = []
|
|
120
123
|
|
|
121
124
|
selected_components.each do |component|
|
|
@@ -361,6 +364,13 @@ module RailsBlocks
|
|
|
361
364
|
puts " Markdown: #{markdown_docs_url(component)}"
|
|
362
365
|
end
|
|
363
366
|
|
|
367
|
+
def installation_prerequisite_notice
|
|
368
|
+
return if ENV["RAILS_BLOCKS_HIDE_INSTALL_NOTICE"] == "1"
|
|
369
|
+
|
|
370
|
+
puts muted("Before installing components, make sure your app has completed the setup steps: https://railsblocks.com/docs/installation")
|
|
371
|
+
puts
|
|
372
|
+
end
|
|
373
|
+
|
|
364
374
|
def web_docs_url(component)
|
|
365
375
|
component["docs_url"] || "https://railsblocks.com/docs/#{component['slug'].tr('_', '-')}"
|
|
366
376
|
end
|