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 +4 -4
- data/lib/transdeps/specification.rb +1 -1
- data/lib/transdeps/version.rb +1 -1
- data/spec/transdeps/specification_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8262157d0b0a0b173d4193454c1d0234c1a9248b244a69232f448d4e939b83c1
|
4
|
+
data.tar.gz: 4e9fa54fb1e26c717782f8f47f25e47bf5b9c7ada57e929365cde34849180fd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>[
|
4
|
+
match = lock.match(/^(?<name>[^\s]+) \((?<version>.*)\)/)
|
5
5
|
new(match[:name], match[:version], path)
|
6
6
|
end
|
7
7
|
|
data/lib/transdeps/version.rb
CHANGED
@@ -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.
|
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:
|
11
|
+
date: 2019-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|