readmeExtractor 0.1.5 → 0.1.7

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: 823094bbac5bf3a47db84fa9cf040fa57d402f6eca2dc15dd7747f49e1c1d58a
4
- data.tar.gz: bdc5e081d1b8e644bd57651a45a180fbd7501aac20b39b2f89c1e7e0c7269225
3
+ metadata.gz: bc1712186a6f16c61dda8e8d7964e7d5ee2e885911eb11fd1b39b81dfdc06702
4
+ data.tar.gz: 1daa3c17795b367a226bbc9fcb195692136d8426174c824f2dcfbf97f7afbb5b
5
5
  SHA512:
6
- metadata.gz: 28f41764d1ba5abc1dd81f0d5d04a8428997173a2715385c0c97bc5c71fe96211eb4e8a9655a12f9b192cd0581c1b004b2af323daaf50b85ba511d266b031970
7
- data.tar.gz: '09ac706a7b3ee6c5b7a4073942d848b2e7bb07d215ca95adea1e8458e920d6dabb46fd45986b52ec333bf38268c7d3d0b8de8d9d51a2229b8d3d952d59752772'
6
+ metadata.gz: d5b85355fdc20d13374d42a6a2214d0e2e6936c5c0d43c65aa975652956a99a53a1b94eb3f937eaa510659ad334f597807b70f7d999ad2c2dcf1f8580cd97142
7
+ data.tar.gz: c756836ca976a3a19d98278c3ca9fb7334618f5f06893e2bfa322f9de985f18a5731e33c96294a73045c88ce8869d33f4953be7ddf182d295c1e8fc7afa9c1a2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ReadmeExtractor
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.7'
5
5
  end
@@ -28,7 +28,7 @@ class ReadmeExtractor
28
28
  gems = {}
29
29
  gem_paths.each do |gem_path|
30
30
  basename = File.basename gem_path
31
- match = basename.match(/(?<name>.*?)-(?<version>\d+(?:\.\d+)*)(?:-?(?<platform>[^.]+))?.gem/)
31
+ match = basename.match(/(?<name>.*?)-(?<version>\d+(?:\.\d+)*)((?:-|\.)?(?<platform>[^.]+))?.gem/)
32
32
  raise GemFileNameError, "#{basename} does not match the expected format." unless match && match[:name] && match[:version]
33
33
 
34
34
  name = match[:name]
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor C