molinillo 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/molinillo/dependency_graph.rb +1 -1
- data/lib/molinillo/gem_metadata.rb +1 -1
- data/spec/resolver_spec.rb +0 -2
- data/spec/spec_helper/index.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59433914f71f36bf1b8bde50830f4c15741ad08a
|
4
|
+
data.tar.gz: c2dd0eb40a09bfc4dd730be7f9fafdd509983fa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea0313dc11f91b8b7a56bd577d2e635a51a0716ebf01447125cc663d3210fd79cd17633c209987472d5543b08e8a1d65e0e79e02f2f3604a0ea035d9d261708
|
7
|
+
data.tar.gz: 977b820e1f351a16186196ffa40bb57280d8c205fee7c30e3f186080473c6fbceedc889ac9546a8cd678b95f3b6aae1a7f7a1c38b194b9006bec5042246e1472
|
@@ -61,7 +61,7 @@ module Molinillo
|
|
61
61
|
hash[name] = vertex.dup.tap { |v| v.graph = self }
|
62
62
|
end
|
63
63
|
end
|
64
|
-
@root_vertices = Hash[vertices.select { |n, _v| other.root_vertices[n] }]
|
64
|
+
@root_vertices = Hash[@vertices.select { |n, _v| other.root_vertices[n] }]
|
65
65
|
@edges = other.edges.map do |edge|
|
66
66
|
Edge.new(
|
67
67
|
vertex_named(edge.origin.name),
|
data/spec/resolver_spec.rb
CHANGED
@@ -58,7 +58,6 @@ module Molinillo
|
|
58
58
|
end
|
59
59
|
|
60
60
|
describe Resolver do
|
61
|
-
|
62
61
|
describe 'dependency resolution' do
|
63
62
|
Dir.glob(FIXTURE_CASE_DIR + '**/*.json').map do |fixture|
|
64
63
|
test_case = TestCase.new(fixture)
|
@@ -108,6 +107,5 @@ module Molinillo
|
|
108
107
|
end.message.should.match /required by `user-specified dependency`/
|
109
108
|
end
|
110
109
|
end
|
111
|
-
|
112
110
|
end
|
113
111
|
end
|
data/spec/spec_helper/index.rb
CHANGED
@@ -23,10 +23,13 @@ module Molinillo
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def search_for(dependency)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
@search_for ||= {}
|
27
|
+
@search_for[dependency] ||= begin
|
28
|
+
pre_release = dependency_pre_release?(dependency)
|
29
|
+
specs[dependency.name].select do |spec|
|
30
|
+
(pre_release ? true : !spec.version.pre_release?) &&
|
31
|
+
dependency.satisfied_by?(spec.version)
|
32
|
+
end
|
30
33
|
end
|
31
34
|
end
|
32
35
|
|
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.2.
|
4
|
+
version: 0.2.2
|
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: 2015-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.4.
|
87
|
+
rubygems_version: 2.4.6
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Provides support for dependency resolution
|