anticuado 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anticuado/elixir/hex.rb +1 -0
- data/lib/anticuado/javascript/npm.rb +1 -1
- data/lib/anticuado/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 100e8f2621ae014077cadc7dd777e05027fccd48
|
4
|
+
data.tar.gz: c6f53ddd1e7ab1380611c2fb9d89812ec51d778d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3632fc0b7de82cf19b38f0465a14931336caa082d57ff6d5b88aad740f8942d9f894cf4be32677da27c0f69c05ba4563ad6f8a4d1a4e7c9bfd925dab8d9207c0
|
7
|
+
data.tar.gz: 18cb2e499c481dad4295f648f58d91a5a1802434fc3879c8adf3a067ccac825602d45cc7d734681c31ac3d6afa2f82163918ec56da590209f37f691ba7887f5e
|
data/lib/anticuado/elixir/hex.rb
CHANGED
@@ -25,6 +25,7 @@ module Anticuado
|
|
25
25
|
def self.format(outdated)
|
26
26
|
array = outdated.split(/\R/).map(&:strip)
|
27
27
|
index = array.find_index("Dependency Current Latest Requirement")
|
28
|
+
index = array.find_index { |line| line.scan(/\ADependency\s+Current\s+Latest\s+Requirement\z/) != [] }
|
28
29
|
|
29
30
|
return [] if index.nil?
|
30
31
|
|
@@ -23,7 +23,7 @@ module Anticuado
|
|
23
23
|
# If target project have no outdated data, then return blank array such as `[]`
|
24
24
|
def self.format(outdated)
|
25
25
|
array = outdated.split(/\R/).map(&:strip)
|
26
|
-
index = array.find_index(
|
26
|
+
index = array.find_index { |line| line.scan(/\APackage\s+Current\s+Wanted\s+Latest\s+Location\z/) != [] }
|
27
27
|
|
28
28
|
return [] if index.nil?
|
29
29
|
|
data/lib/anticuado/version.rb
CHANGED