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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2982ac627b45a58939dff654237280b6edb07d0d5868ebff97d58cb06393847e
4
- data.tar.gz: '09f7c5943268424c73125ce1c936547c721bf5369de92fbe4ac1e02353d2ce08'
3
+ metadata.gz: f1409421a79c426cb82404b0c910dedb0c5ec2dc733304e5f907f92067cfb208
4
+ data.tar.gz: 138353eac33ffcbbe8a80ce4a8202485792e4609122409478bc5dc9fa324650d
5
5
  SHA512:
6
- metadata.gz: 27baab095f5369dde0e0b52f6fdcee6978f507f69826d3d97fd1a21d764dc7bee3d44f1052287b16304908ec1c28adcfce413498caa2d0dd0d8fc163fac13b44
7
- data.tar.gz: b99c733c5dcf6cf37f455ece71f549a60a97f23e9142b78a438d9a26e7d59948d64ba1e5735520dff60384b1da765e6c9cb790b170a47661f94f5446f0f37f11
6
+ metadata.gz: 3f248fc4722407b75d81d533c52b368a8a12fceaf10ba9cd7d103c10a103d0722013910eaecdc824cd5076a0fd073fefa6c08020bd97a5a5d9948fb696091416
7
+ data.tar.gz: 56ca2998ed2b6e73b50d691da2894593dbf31f2092cc16db5c26cb7aea46ebb71995660ee75945daaf5a32e355fe953d3d141b4612ab87e56744ce70e4cbcc65
@@ -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
- pin npm.outdated_packages.map(&:name)
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"
@@ -1,3 +1,3 @@
1
1
  module Importmap
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importmap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson