molinillo 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/molinillo/errors.rb +1 -1
- data/lib/molinillo/gem_metadata.rb +1 -1
- data/spec/errors_spec.rb +25 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9236a5dbc46018bc0f27a22e51d675808034c0f
|
4
|
+
data.tar.gz: fc9a01753517f46df9ced17dd489b4329d812fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75238ffd8561de2d08d4965b167193ea40e83305892d35d228a105166740f4f18da1a02d4d844be5f13b20ab0f900d9bdd6c54bc56c238339646365d45f2b8c
|
7
|
+
data.tar.gz: f39575f18399b6e67fc98ee2efda18e4578f4cfd53c1b29366e17857031812afaaf2e4ff91eb6a1d424e4f0d010f207a311e4404d2c4fc3a118308913c8f54df
|
data/lib/molinillo/errors.rb
CHANGED
@@ -26,7 +26,7 @@ module Molinillo
|
|
26
26
|
def message
|
27
27
|
sources = required_by.map { |r| "`#{r}`" }.join(' and ')
|
28
28
|
message = "Unable to find a specification for `#{dependency}`"
|
29
|
-
message
|
29
|
+
message += " depended upon by #{sources}" unless sources.empty?
|
30
30
|
message
|
31
31
|
end
|
32
32
|
end
|
data/spec/errors_spec.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.expand_path('../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
module Molinillo
|
4
|
+
describe NoSuchDependencyError do
|
5
|
+
let(:dependency) { VersionKit::Dependency.new('foo', '>= 1.0') }
|
6
|
+
let(:required_by) { [] }
|
7
|
+
|
8
|
+
subject { described_class.new(dependency, required_by) }
|
9
|
+
|
10
|
+
describe '#message' do
|
11
|
+
it 'says it is unable to find the spec' do
|
12
|
+
expect(subject.message).to eq('Unable to find a specification for `foo (>= 1.0.0)`')
|
13
|
+
end
|
14
|
+
|
15
|
+
context 'when #required_by is not empty' do
|
16
|
+
let(:required_by) { %w(spec-1 spec-2) }
|
17
|
+
|
18
|
+
it 'includes the source names' do
|
19
|
+
expect(subject.message).to eq(
|
20
|
+
'Unable to find a specification for `foo (>= 1.0.0)` depended upon by `spec-1` and `spec-2`')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: molinillo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel E. Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/molinillo/resolver.rb
|
58
58
|
- lib/molinillo/state.rb
|
59
59
|
- spec/dependency_graph_spec.rb
|
60
|
+
- spec/errors_spec.rb
|
60
61
|
- spec/resolver_integration_specs/index_from_rubygems.rb
|
61
62
|
- spec/resolver_spec.rb
|
62
63
|
- spec/spec_helper.rb
|
@@ -84,12 +85,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
87
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.6.0
|
88
89
|
signing_key:
|
89
90
|
specification_version: 4
|
90
91
|
summary: Provides support for dependency resolution
|
91
92
|
test_files:
|
92
93
|
- spec/dependency_graph_spec.rb
|
94
|
+
- spec/errors_spec.rb
|
93
95
|
- spec/resolver_integration_specs/index_from_rubygems.rb
|
94
96
|
- spec/resolver_spec.rb
|
95
97
|
- spec/spec_helper/index.rb
|