rails-blocks-cli 0.1.2 → 0.1.3
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 +3 -3
- 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: 78febd1a26563e29b3f204eba4637045f7b3d13f1ab71c24087ca3af18f6fcf7
|
|
4
|
+
data.tar.gz: '03350359aec7aaeb541df9fd8e8517d5db982a66830809223bbb713fc5b17119'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 450da6b723c24f6ad1b06e32509be34b414adc528963c3e7c951195d10869e0f00c82d4e75ebb4f18a546fc86361393bb7bd10378485baa93d40a69a6d8fb692
|
|
7
|
+
data.tar.gz: fc0de1f135151d6b9e9745b1c0842b116d54241d98a05a203d787b25dea6d0834d6461c5aa9145d0530865abf638159756f1dd906262d5db2bf7031d47ccc665
|
data/lib/rails_blocks/cli.rb
CHANGED
|
@@ -283,8 +283,8 @@ module RailsBlocks
|
|
|
283
283
|
download(response["url"], auth: true)
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
-
def stimulus_package_data
|
|
287
|
-
type
|
|
286
|
+
def stimulus_package_data(type: nil)
|
|
287
|
+
type ||= component_filter == :pro ? "pro" : "free"
|
|
288
288
|
if type == "free"
|
|
289
289
|
stimulus_artifact = registry["stimulus_controllers"]
|
|
290
290
|
return download(stimulus_artifact["package_url"]) if stimulus_artifact&.dig("package_url")
|
|
@@ -297,7 +297,7 @@ module RailsBlocks
|
|
|
297
297
|
if component["stimulus_package_url"]
|
|
298
298
|
download(component["stimulus_package_url"])
|
|
299
299
|
else
|
|
300
|
-
stimulus_package_data
|
|
300
|
+
stimulus_package_data(type: component["pro"] ? "pro" : "free")
|
|
301
301
|
end
|
|
302
302
|
end
|
|
303
303
|
|