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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7695360a1a7fde0dacb5aa1644ffbfd1b6570a5
4
- data.tar.gz: 420a4e1ef5d3d57ed04d7eafe9a51d959e184efb
3
+ metadata.gz: 100e8f2621ae014077cadc7dd777e05027fccd48
4
+ data.tar.gz: c6f53ddd1e7ab1380611c2fb9d89812ec51d778d
5
5
  SHA512:
6
- metadata.gz: bc1d1dcedcdce25576a277cafb45357eef62ac6d14fa82f30b232a8435602f760fa06d78e86cd484dd6e2c293206f468dbd623180b2bd06ec416522ca773d77d
7
- data.tar.gz: 7825c15876b92f63637d9c2a9a32e3e91b9095e2e2c1bd9a1efe3ced3191319b00cc67ab237349abb8dc22ca166d6b4275e0bdc6ca64ba064acdcbf718b5fc72
6
+ metadata.gz: 3632fc0b7de82cf19b38f0465a14931336caa082d57ff6d5b88aad740f8942d9f894cf4be32677da27c0f69c05ba4563ad6f8a4d1a4e7c9bfd925dab8d9207c0
7
+ data.tar.gz: 18cb2e499c481dad4295f648f58d91a5a1802434fc3879c8adf3a067ccac825602d45cc7d734681c31ac3d6afa2f82163918ec56da590209f37f691ba7887f5e
@@ -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("Package Current Wanted Latest Location")
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
 
@@ -1,3 +1,3 @@
1
1
  module Anticuado
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anticuado
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO