solve 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -2
- data/lib/solve/constraint.rb +2 -2
- data/lib/solve/ruby_solver.rb +11 -2
- data/lib/solve/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2479b663bdd02ece7185186812184b09d492f83a
|
4
|
+
data.tar.gz: 827ae48a741ad73b497fc1cba7cc569dba27df92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bd7ce5fb6ac7f1fd6abcfbb14bcccb0de57d8aaa13e59485538352e8c38a6442a04e750c6ebc4cdfd91be8bc6b1a8ddb74f92a07c9619cd828713eafae0ba9f
|
7
|
+
data.tar.gz: 68563e6af71ecab95483b3b1a9e9a8629e46ff731ca5a6e806733d1d57e2c6b1c4cf165a6e73d082d645625a45b8701dfa0262d8f17d4e33db1474a7c9ca7c2f
|
data/.travis.yml
CHANGED
@@ -1,17 +1,29 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
rvm:
|
4
|
+
- 2.1
|
5
|
+
|
1
6
|
before_install:
|
2
7
|
- sudo apt-get update
|
3
8
|
- sudo apt-get install libgecode-dev
|
9
|
+
- gem install bundler --no-ri --no-rdoc
|
10
|
+
|
4
11
|
script: "bundle exec thor spec"
|
5
|
-
language: ruby
|
6
12
|
env: USE_SYSTEM_GECODE=1
|
7
13
|
bundler_args: --without dev
|
8
14
|
|
15
|
+
# prevent PR branches from running travis twice
|
16
|
+
branches:
|
17
|
+
only:
|
18
|
+
- master
|
19
|
+
|
9
20
|
matrix:
|
10
21
|
include:
|
11
22
|
- rvm: 1.9.3
|
12
23
|
- rvm: 2.0.0
|
13
|
-
- rvm: 2.1.0
|
14
24
|
- rvm: jruby-19mode
|
15
25
|
- rvm: 2.1
|
16
26
|
gemfile: NoGecode.gemfile
|
17
27
|
script: "bundle exec thor nogecode_spec"
|
28
|
+
|
29
|
+
|
data/lib/solve/constraint.rb
CHANGED
@@ -195,11 +195,11 @@ module Solve
|
|
195
195
|
# Returns true or false if the given version would be satisfied by
|
196
196
|
# the version constraint.
|
197
197
|
#
|
198
|
-
# @param [Version, #to_s] target
|
198
|
+
# @param [Semverse::Version, #to_s] target
|
199
199
|
#
|
200
200
|
# @return [Boolean]
|
201
201
|
def satisfies?(target)
|
202
|
-
target = Version.coerce(target)
|
202
|
+
target = Semverse::Version.coerce(target)
|
203
203
|
|
204
204
|
return false if !version.zero? && greedy_match?(target)
|
205
205
|
|
data/lib/solve/ruby_solver.rb
CHANGED
@@ -44,6 +44,7 @@ module Solve
|
|
44
44
|
@demands_array = demands
|
45
45
|
@timeout_ms = self.class.timeout
|
46
46
|
|
47
|
+
@ui = options[:ui] # could be nil, but that's okay
|
47
48
|
@dependency_source = options[:dependency_source] || 'user-specified dependency'
|
48
49
|
|
49
50
|
@molinillo_graph = Molinillo::DependencyGraph.new
|
@@ -69,6 +70,8 @@ module Solve
|
|
69
70
|
# and the demands have a solution, but the solution contains a cyclic
|
70
71
|
# dependency
|
71
72
|
def resolve(options = {})
|
73
|
+
@ui = options[:ui] if options[:ui]
|
74
|
+
|
72
75
|
solved_graph = resolve_with_error_wrapping
|
73
76
|
|
74
77
|
solution = solved_graph.map(&:payload)
|
@@ -103,12 +106,18 @@ module Solve
|
|
103
106
|
# Callback required by Molinillo, called when the solve starts
|
104
107
|
# @return nil
|
105
108
|
def before_resolution
|
106
|
-
|
109
|
+
@ui.say('Starting dependency resolution') if @ui
|
107
110
|
end
|
108
111
|
|
109
112
|
# Callback required by Molinillo, called when the solve is complete.
|
110
113
|
# @return nil
|
111
114
|
def after_resolution
|
115
|
+
@ui.say('Finished dependency resolution') if @ui
|
116
|
+
end
|
117
|
+
|
118
|
+
# Callback required by Molinillo, called when resolving every progress_rate
|
119
|
+
# @return nil
|
120
|
+
def indicate_progress
|
112
121
|
nil
|
113
122
|
end
|
114
123
|
|
@@ -117,7 +126,7 @@ module Solve
|
|
117
126
|
def debug(current_resolver_depth)
|
118
127
|
# debug info will be returned if you call yield here, but it seems to be
|
119
128
|
# broken in current Molinillo
|
120
|
-
|
129
|
+
@ui.say(yield) if @ui
|
121
130
|
end
|
122
131
|
|
123
132
|
# Callback required by Molinillo
|
data/lib/solve/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: semverse
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.5.0
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: A Ruby version constraint solver implementing Semantic Versioning 2.0.0-rc.1
|
@@ -179,4 +179,3 @@ test_files:
|
|
179
179
|
- spec/unit/solve/ruby_solver_spec.rb
|
180
180
|
- spec/unit/solve/solver/serializer_spec.rb
|
181
181
|
- spec/unit/solve_spec.rb
|
182
|
-
has_rdoc:
|