derelict 0.4.3.travis.121 → 0.4.3.travis.123
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/derelict/parser/box_list.rb +2 -2
- data/spec/derelict/parser/box_list_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDE2MDUxMDczNGU4MzM0M2I4YjBlZTRiMGI0ZWEzYjk1ZjZjNmQyMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2EyZGEyZTRkNzZlZmYzNzMyNGMxYjNlYTc3MmE1MTkxMDdiM2ZlZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDgzYTQ2OGY3NjY4Mzg2N2RmZGY3OTZmNzkzMGU5MjBiMWRmZTllMDk2MTQ1
|
10
|
+
NmMzYjc2NTI3MzE4ZDViYWYwYWI0MDA1NWIwOTVkNzQzYWZiZDQzZmQwZWZk
|
11
|
+
ZTZlYzQwNDM1YjU3YTk5MDc4NjJlNjk2ZDFhZjE3Y2VhNjc4ODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjc3ODAzYjFjMWEyMjRkMDRhZjg2ZDM3NmM2MjljOGUyNGFlY2NiNzNjMjE0
|
14
|
+
ZGE0OWMwMzM5MzZiOGY1ZDk0M2ZjOTAyNmZmNjc1OTBiM2MwMTFiYTUzZmNi
|
15
|
+
OTE4ZDJjNmEyNjgyNDUyNTM5Yzc4OTVlZDRiMGFmMGZlNTNmMjE=
|
@@ -18,8 +18,8 @@ module Derelict
|
|
18
18
|
# 1. Box name, as listed in the output
|
19
19
|
# 2. Name of the provider for that box
|
20
20
|
PARSE_BOX = %r[
|
21
|
-
^(
|
22
|
-
\
|
21
|
+
^(.*?) # Box name starts at the start of the line
|
22
|
+
\ +\( # Provider is separated by spaces and open-parenthesis
|
23
23
|
(.*) # Provider name
|
24
24
|
\)$ # Ends with close-parenthesis and end-of-line
|
25
25
|
]x # Ignore whitespace to allow these comments
|
@@ -19,21 +19,21 @@ describe Derelict::Parser::BoxList do
|
|
19
19
|
context "with valid output" do
|
20
20
|
let(:output) {
|
21
21
|
<<-END.gsub /^ +/, ""
|
22
|
-
|
23
|
-
|
22
|
+
foobar (provider_one)
|
23
|
+
baz (provider_two)
|
24
24
|
END
|
25
25
|
}
|
26
26
|
|
27
|
-
let(:
|
28
|
-
let(:
|
29
|
-
it { should eq Set[
|
27
|
+
let(:foobar) { Derelict::Box.new "foobar", "provider_one" }
|
28
|
+
let(:baz) { Derelict::Box.new "baz", "provider_two" }
|
29
|
+
it { should eq Set[foobar, baz] }
|
30
30
|
end
|
31
31
|
|
32
32
|
context "with invalid output" do
|
33
33
|
let(:output) {
|
34
34
|
<<-END.gsub /^ +/, ""
|
35
|
-
|
36
|
-
|
35
|
+
foobar (provider_one) lolwut
|
36
|
+
baz with no brackets
|
37
37
|
END
|
38
38
|
}
|
39
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derelict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.3.travis.
|
4
|
+
version: 0.4.3.travis.123
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Feehan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log4r
|