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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aac1d186cbe00eb9659705c4c35c8cfc3b6f4e84
4
- data.tar.gz: 3ea34b9aa3e68233ee0744442f136eeec3972e08
3
+ metadata.gz: 59433914f71f36bf1b8bde50830f4c15741ad08a
4
+ data.tar.gz: c2dd0eb40a09bfc4dd730be7f9fafdd509983fa8
5
5
  SHA512:
6
- metadata.gz: 250f701b7bf421d1e964fe6051f15652f4a2ab4611763b070732b51eef770739ef892c7df461845c859c85e4b4c2e10595caa0eabf3082c9d6c7f84541c856dc
7
- data.tar.gz: 84858314e130d50eabf2fabe9da871003d8c75633e55cb35713968c8ac2fdfab8a8a21b1957e6ae89c53df80bb006e5a1039a685fa8f35ec9d80b8dd63b4aa75
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),
@@ -1,3 +1,3 @@
1
1
  module Molinillo
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -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
@@ -23,10 +23,13 @@ module Molinillo
23
23
  end
24
24
 
25
25
  def search_for(dependency)
26
- pre_release = dependency_pre_release?(dependency)
27
- specs[dependency.name].select do |spec|
28
- (pre_release ? true : !spec.version.pre_release?) &&
29
- dependency.satisfied_by?(spec.version)
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.1
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-02-21 00:00:00.000000000 Z
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.5
87
+ rubygems_version: 2.4.6
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Provides support for dependency resolution