firespring_dev_commands 2.2.1 → 2.2.2

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: 9efeb1471d3d8e3ce89c543f705444b4a286a8d940ee864b27ce6f9f05996a4a
4
- data.tar.gz: af6da7c5e7e973dcdde3aadacc35cd0919f51307e45bf1db7ae8726d8cb44594
3
+ metadata.gz: b60fb9f23da32fe3006bd63627788753dc822b14d16782e253ecdfe3e516ae12
4
+ data.tar.gz: 94e3b4fc79749292e56e9db5de9f170def61c64e154daa11ef66e8bdbc4049cf
5
5
  SHA512:
6
- metadata.gz: 7bafef2d282631e060fa15625d3993b915a25efa35445c22ab9ee0e5ac664eee6973c37b3126d8370ab67f12c40464407babca693db27bb55db8eb9920e4b605
7
- data.tar.gz: 697cae9f1b159dcc2c5e4c33c9235a9b0c835695819aea7557e8148f5c8145222b91bb885bab547557a38119a970aaca389acf00a0871dcfc74571961e30d59a
6
+ metadata.gz: 5a53e1b2ffd61b54eabf8ad81559054dec6fd40f9023ebf22ec27aea56cc9c3cd884cc329d0055b133da54792e77bce23ea44119fceb67e87493e8e80d5e25af
7
+ data.tar.gz: 10237fa32a8c41d9a9b9c7196d7ded272d5ec4c36ad2cb2d789956acb33ed66a70388d4368b4ac2ed2fc5024aca91381d682cb1ef9f73b226ee5a1c88a44e0bd
@@ -16,6 +16,10 @@ module Dev
16
16
  def to_report
17
17
  Dev::Audit::Report.new(
18
18
  data['advisories'].map do |_, v|
19
+ # If there are multiple advisories for the same package, v changes from an array into a hash
20
+ v = v.values if v.is_a?(Hash)
21
+
22
+ # Iterate over the advisories and turn them into report items
19
23
  v.map do |it|
20
24
  Dev::Audit::Report::Item.new(
21
25
  id: it['advisoryId'],
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.2.1'.freeze
9
+ VERSION = '2.2.2'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firespring_dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport