transdeps 1.1.0 → 1.2.0

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: 424fd5c08dbbe5e2be8c78fe735f42b11f6cf5f4e9815ccdcb2563da0fc35716
4
- data.tar.gz: '09227ca9a21522f29ab1123593e51940c0fef41ff7419bc0a7d80c6a049a7775'
3
+ metadata.gz: 8262157d0b0a0b173d4193454c1d0234c1a9248b244a69232f448d4e939b83c1
4
+ data.tar.gz: 4e9fa54fb1e26c717782f8f47f25e47bf5b9c7ada57e929365cde34849180fd5
5
5
  SHA512:
6
- metadata.gz: a061b7a670c4ada708de3ae02157a0cf3fd2bd892155d888a0b4aa240bc8368f1725f1f0acdccd6c0a49fe087667c2cf2716ade05a5752c2864b37ab6202699f
7
- data.tar.gz: 9011b3d7012d3b6874507a36cb6ee7750c479ad4946ab59ff7689300ceb74ba34ac308d627aae18d410df1914c71c29453a9410431f28fc1d2cb096a31bbe17f
6
+ metadata.gz: 6309eea5c8cc859f4e142915bd67ded97a462d1e02a7821bea0f3e74a59e43494b1016be3ecb6ebf3a115c0f4de84b820f44fdb12976c448cbcf545974048100
7
+ data.tar.gz: fa3bd0dc70f45c8edb73b057898e27824c466f3807da5bc367996dd3755e717246cf7c3fdc98570cd76129dc1f5d94a530230922c59249a6fa0ba98a24b94c01
@@ -1,7 +1,7 @@
1
1
  module Transdeps
2
2
  class Specification < Struct.new(:name, :version, :project_path)
3
3
  def self.from_lock(lock, path='')
4
- match = lock.match(/^(?<name>[\w\-]+) \((?<version>.*)\)/)
4
+ match = lock.match(/^(?<name>[^\s]+) \((?<version>.*)\)/)
5
5
  new(match[:name], match[:version], path)
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module Transdeps
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -23,6 +23,13 @@ describe Transdeps::Specification do
23
23
  expect(spec.name).to eq 'rake_lib'
24
24
  expect(spec.version).to eq '10.0.0'
25
25
  end
26
+
27
+ it 'works for names with dots' do
28
+ lock = 'http_parser.rb (0.6.0)'
29
+ spec = Transdeps::Specification.from_lock(lock)
30
+ expect(spec.name).to eq 'http_parser.rb'
31
+ expect(spec.version).to eq '0.6.0'
32
+ end
26
33
  end
27
34
 
28
35
  describe 'match-y-ness' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transdeps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-14 00:00:00.000000000 Z
11
+ date: 2019-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler