readmeExtractor 0.1.9 → 0.1.11

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: 277a597f59affa4f71db45dc9ee9b5f5d649ff82b56324749d0ed89f09b77529
4
- data.tar.gz: 2fe98a527e23a70f75a1e55c79f135ce1d08353c8f760183f69809c4cd09e53b
3
+ metadata.gz: bb6aa69d95a3f9d4df6aab03668ec2c034870b36032dc97dcec4ab19a3307f2d
4
+ data.tar.gz: 97b1afad0bc95e8e98eb471b601c82d2a01832fd11bdca240462bddc16be7cc9
5
5
  SHA512:
6
- metadata.gz: 274f312ef9a573faa7cb34e3cca7c492bc46fa13791b088d5f5503ef495b5d7f757f5fb59ff1da33ac6a27982c45c310f4aaaa94800a03e7a578b4cb1085f218
7
- data.tar.gz: 246f6edfd269e792a256d7a31c8b04f1e38d98ea8baea6274bf7315b67f9b3d43fc975f02c81800620ec2101572eaba1591e77f4798844c0171b3474d93a403a
6
+ metadata.gz: 967c259a09e87795f9355380b4ead0647ed6a220a4e13efbc724859c70a062ef5405cd551ff2650cc5e00e1e95beebb160dc1161279a8aff95d043610b1b9d5e
7
+ data.tar.gz: e42d0a9b96a6b577327e77f5235bee4e3d8439ac78c5c87fb9cf5a8b912fc657e8a5b71f51fad95c3aa5cfab2b074633fb8de6857bb40aedf61367e9afed97cd
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ReadmeExtractor
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.11'
5
5
  end
@@ -28,7 +28,9 @@ class ReadmeExtractor
28
28
  gems = {}
29
29
  gem_paths.each do |gem_path|
30
30
  basename = File.basename gem_path
31
+
31
32
  match = basename.match(/(?<name>.*?)-(?<version>\d+(?:\.\d+)*)(?:-(?<platform>[^.]+))?.gem/)
33
+
32
34
  unless match && match[:name] && match[:version]
33
35
  puts "#{basename} does not match the expected format."
34
36
  next
@@ -40,6 +42,8 @@ class ReadmeExtractor
40
42
  if Gem::Version.new(version) > Gem::Version.new(gems[name][:version])
41
43
  gems[name] = { version:, gem_path: }
42
44
  end
45
+ rescue Encoding::CompatibilityError => e
46
+ puts "Encoding::CompatibilityError #{e.message}"
43
47
  end
44
48
  gems
45
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readmeExtractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor C