importmap-rails 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/importmap/commands.rb +6 -4
- data/lib/importmap/version.rb +1 -1
- 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: f1409421a79c426cb82404b0c910dedb0c5ec2dc733304e5f907f92067cfb208
|
4
|
+
data.tar.gz: 138353eac33ffcbbe8a80ce4a8202485792e4609122409478bc5dc9fa324650d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f248fc4722407b75d81d533c52b368a8a12fceaf10ba9cd7d103c10a103d0722013910eaecdc824cd5076a0fd073fefa6c08020bd97a5a5d9948fb696091416
|
7
|
+
data.tar.gz: 56ca2998ed2b6e73b50d691da2894593dbf31f2092cc16db5c26cb7aea46ebb71995660ee75945daaf5a32e355fe953d3d141b4612ab87e56744ce70e4cbcc65
|
data/lib/importmap/commands.rb
CHANGED
@@ -75,9 +75,7 @@ class Importmap::Commands < Thor
|
|
75
75
|
|
76
76
|
desc "outdated", "Check for outdated packages"
|
77
77
|
def outdated
|
78
|
-
outdated_packages = npm.outdated_packages
|
79
|
-
|
80
|
-
if outdated_packages.any?
|
78
|
+
if (outdated_packages = npm.outdated_packages).any?
|
81
79
|
table = [["Package", "Current", "Latest"]]
|
82
80
|
outdated_packages.each { |p| table << [p.name, p.current_version, p.latest_version || p.error] }
|
83
81
|
|
@@ -93,7 +91,11 @@ class Importmap::Commands < Thor
|
|
93
91
|
|
94
92
|
desc "update", "Update outdated package pins"
|
95
93
|
def update
|
96
|
-
|
94
|
+
if (outdated_packages = npm.outdated_packages).any?
|
95
|
+
pin outdated_packages.map(&:name)
|
96
|
+
else
|
97
|
+
puts "No outdated packages found"
|
98
|
+
end
|
97
99
|
end
|
98
100
|
|
99
101
|
desc "packages", "Print out packages with version numbers"
|
data/lib/importmap/version.rb
CHANGED